Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001458/0.001458, allocations: 196.4 kB / 16.14 MB, free: 6.648 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.95/2.95, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.77 kB / 0.9114 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3749, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.004113/0.3791, allocations: 2.233 MB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001988/0.3811, allocations: 1.358 MB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.3812, allocations: 0 / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005938/0.3818, allocations: 179.7 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.3821, allocations: 119.5 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.3825, allocations: 130.9 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.3828, allocations: 219.1 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.3829, allocations: 40.67 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.3831, allocations: 87.5 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.3832, allocations: 99.44 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.24e-05/0.3833, allocations: 12 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3834, allocations: 47.95 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.3835, allocations: 87.67 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.3836, allocations: 130.9 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003908/0.384, allocations: 338.6 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.384, allocations: 0 / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3841, allocations: 0 / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3841, allocations: 0 / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000974/0.385, allocations: 0.6803 MB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3851, allocations: 12.03 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.3852, allocations: 48.36 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.3856, allocations: 348.3 kB / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3856, allocations: 12.25 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3857, allocations: 11.94 kB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.3859, allocations: 73.66 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3859, allocations: 0 / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.3859, allocations: 4 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3859, allocations: 0 / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.386, allocations: 47.91 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.3867, allocations: 448.5 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.387, allocations: 66.67 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.879e-05/0.387, allocations: 32.95 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3871, allocations: 3.938 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.3872, allocations: 79.31 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.3872, allocations: 0 / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0003278/0.3876, allocations: 141.1 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.3876, allocations: 59.34 kB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.3882, allocations: 0.5333 MB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.3882, allocations: 29.7 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.3884, allocations: 216 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.3884, allocations: 27.72 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.477e-05/0.3885, allocations: 37.7 kB / 1.075 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001943/0.3887, allocations: 354.8 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.3888, allocations: 51.88 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.3889, allocations: 86.48 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.3891, allocations: 81.7 kB / 1.076 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3891, allocations: 0 / 1.076 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003303/0.3894, allocations: 197 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3895, allocations: 5.562 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3895, allocations: 0 / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3895, allocations: 4 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.3896, allocations: 27.98 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.3896, allocations: 0 / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.3898, allocations: 15.98 kB / 1.076 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.3898, allocations: 4 kB / 1.076 GB, free: 1.875 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.TWat.tab.nextTimeEvent,$whenCondition1,TWat.tab.nextTimeEventScaled,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEvent,assWatTem.hys.y,$PRE.assWatTem.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 0.0002651/0.3901, allocations: 186.5 kB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.3901, allocations: 43.42 kB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.3902, allocations: 43.8 kB / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3902, allocations: 3.938 kB / 1.076 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3902, allocations: 4 kB / 1.076 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3902, allocations: 4 kB / 1.076 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.3905, allocations: 293.5 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3905, allocations: 0 / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.032e-05/0.3905, allocations: 4 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3906, allocations: 3.938 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3906, allocations: 7.984 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3906, allocations: 3.938 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3906, allocations: 0 / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.3908, allocations: 160.7 kB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-05/0.3909, allocations: 112.6 kB / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.391, allocations: 8.062 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.379e-05/0.3911, allocations: 11.92 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.3911, allocations: 11.98 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.3911, allocations: 0 / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003779/0.3915, allocations: 362.8 kB / 1.077 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3915, allocations: 0 / 1.077 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000263/0.3918, allocations: 51.89 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (TWat.tab.nextTimeEventScaled,assWatTem.hys.y,TWat.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009713/0.3928, allocations: 415.9 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.393, allocations: 91.89 kB / 1.078 GB, free: 148 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3931, allocations: 4 kB / 1.078 GB, free: 144 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.431e-05/0.3931, allocations: 24 kB / 1.078 GB, free: 120 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.3935, allocations: 55.86 kB / 1.078 GB, free: 64 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.3945, allocations: 0.724 MB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.395, allocations: 0.8102 MB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.646e-05/0.3951, allocations: 33.53 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.3952, allocations: 19.42 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3952, allocations: 0 / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.006596/0.4018, allocations: 2.717 MB / 1.082 GB, free: 11.72 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches