Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007061/0.007061, allocations: 95.98 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 196.8 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.733/2.733, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2654, allocations: 159.1 MB / 1.22 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002001/0.2674, allocations: 0.8556 MB / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2685, allocations: 0.874 MB / 1.221 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.758e-05/0.2686, allocations: 4 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.833e-05/0.2687, allocations: 7.875 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.2688, allocations: 27.72 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.269, allocations: 35.94 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.2691, allocations: 111.7 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2693, allocations: 37.08 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.2694, allocations: 59.77 kB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.687e-05/0.2695, allocations: 47.77 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.2695, allocations: 12 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.663e-05/0.2696, allocations: 8 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.2696, allocations: 31.89 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.2697, allocations: 47.73 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.2698, allocations: 119.4 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.2698, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2698, allocations: 4 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2699, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006619/0.2705, allocations: 442.8 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2706, allocations: 15.97 kB / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.2706, allocations: 34.75 kB / 1.222 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.2706, allocations: 20.78 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.2711, allocations: 256.3 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.2712, allocations: 4.375 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.2712, allocations: 12.38 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.2715, allocations: 124.4 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2715, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.2715, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2715, allocations: 4 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002865/0.2718, allocations: 67.94 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006038/0.2724, allocations: 0.4971 MB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.2727, allocations: 115.8 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.2729, allocations: 54.59 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.2729, allocations: 8.062 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.2729, allocations: 34.5 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.273, allocations: 3.938 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0005896/0.2735, allocations: 161.5 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.2736, allocations: 106.8 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.2737, allocations: 145.1 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.2738, allocations: 29.95 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.856e-05/0.2738, allocations: 112.2 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.2739, allocations: 27.78 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-05/0.2739, allocations: 29.7 kB / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.274, allocations: 330.7 kB / 1.225 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.2742, allocations: 39.97 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2744, allocations: 85.11 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.2747, allocations: 86.75 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2747, allocations: 3.938 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003706/0.2751, allocations: 145.5 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2751, allocations: 4 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2751, allocations: 4 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2751, allocations: 3.984 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.2753, allocations: 15.98 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2753, allocations: 4 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.2754, allocations: 19.98 kB / 1.225 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.2754, allocations: 4.062 kB / 1.225 GB, free: 8.941 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.726e-05/0.2755, allocations: 122.3 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.32e-05/0.2756, allocations: 19.91 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/0.2759, allocations: 89.83 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2759, allocations: 4 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2759, allocations: 4 kB / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2759, allocations: 0 / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.2762, allocations: 197.6 kB / 1.225 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2762, allocations: 7.938 kB / 1.225 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2763, allocations: 23.91 kB / 1.225 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.2763, allocations: 0 / 1.225 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.2764, allocations: 0 / 1.225 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2764, allocations: 7.938 kB / 1.225 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2764, allocations: 0 / 1.225 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.2768, allocations: 377.9 kB / 1.226 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.2768, allocations: 92.95 kB / 1.226 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.2769, allocations: 4 kB / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.2771, allocations: 15.98 kB / 1.226 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.2772, allocations: 23.95 kB / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.2772, allocations: 11.94 kB / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.174e-05/0.2773, allocations: 109.9 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2773, allocations: 0 / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003294/0.2776, allocations: 16 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007576/0.2784, allocations: 0.9023 MB / 1.227 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003642/0.2787, allocations: 99.86 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2788, allocations: 0 / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.2789, allocations: 51.91 kB / 1.227 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.2794, allocations: 17.81 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.2815, allocations: 1.809 MB / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.2817, allocations: 0.7006 MB / 1.23 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.34e-05/0.2818, allocations: 20.62 kB / 1.23 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.514e-05/0.2819, allocations: 35.42 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of SimCode: time 3.8e-07/0.2819, allocations: 0 / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.2989, allocations: 2.721 MB / 1.232 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.187/7.486, allocations: 6.328 kB / 1.232 GB, free: 1.316 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches