Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00806/0.008061, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001787/0.001787, allocations: 185.4 kB / 16.67 MB, free: 5.977 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.893/2.893, allocations: 461.9 MB / 0.7347 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 67.89 kB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3624, allocations: 157.4 MB / 1.208 GB, free: 9.73 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004235/0.3667, allocations: 2.469 MB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002383/0.3691, allocations: 1.564 MB / 1.212 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.3692, allocations: 7.938 kB / 1.212 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009321/0.3702, allocations: 323 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004331/0.3707, allocations: 217.3 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006376/0.3713, allocations: 265.6 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004273/0.3717, allocations: 394.7 kB / 1.213 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.3719, allocations: 80.55 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.3721, allocations: 167.2 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.3723, allocations: 163.3 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.3724, allocations: 20 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.3726, allocations: 79.89 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3727, allocations: 131.5 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.3729, allocations: 190.6 kB / 1.214 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.3734, allocations: 0.4942 MB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3734, allocations: 0 / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3735, allocations: 0 / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.373e-06/0.3735, allocations: 0 / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001225/0.3747, allocations: 0.8336 MB / 1.215 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3747, allocations: 8.625 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.934e-05/0.3748, allocations: 64.12 kB / 1.215 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005368/0.3754, allocations: 432.8 kB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.3754, allocations: 11.92 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.3754, allocations: 12 kB / 1.215 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.3757, allocations: 139.3 kB / 1.216 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3757, allocations: 3.984 kB / 1.216 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.3758, allocations: 4 kB / 1.216 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3758, allocations: 7.938 kB / 1.216 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.376, allocations: 67.91 kB / 1.216 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008445/0.3768, allocations: 0.5667 MB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.3771, allocations: 126.7 kB / 1.216 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.3772, allocations: 48.84 kB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3773, allocations: 0 / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.3775, allocations: 121.7 kB / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.3775, allocations: 0 / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.0004956/0.378, allocations: 233 kB / 1.217 GB, free: 348 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.3781, allocations: 77.11 kB / 1.217 GB, free: 252 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007341/0.3788, allocations: 0.6876 MB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.3789, allocations: 29.7 kB / 1.217 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.3791, allocations: 268.3 kB / 1.218 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.631e-05/0.3791, allocations: 43.47 kB / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/0.3792, allocations: 61.61 kB / 1.218 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3794, allocations: 370.8 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.3795, allocations: 71.97 kB / 1.218 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.3797, allocations: 121 kB / 1.218 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.38, allocations: 133 kB / 1.218 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.38, allocations: 3.938 kB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004251/0.3804, allocations: 264.9 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.3804, allocations: 8 kB / 1.219 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3805, allocations: 0 / 1.219 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3805, allocations: 0 / 1.219 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.3807, allocations: 43.91 kB / 1.219 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3807, allocations: 4.062 kB / 1.219 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.3808, allocations: 19.89 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.3809, allocations: 12 kB / 1.219 GB, free: 14.07 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: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002283/0.3811, allocations: 211.5 kB / 1.219 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.3812, allocations: 59.19 kB / 1.219 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.3813, allocations: 61.05 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3813, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3813, allocations: 4 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.3813, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.3817, allocations: 369.4 kB / 1.219 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3817, allocations: 3.938 kB / 1.22 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/0.3817, allocations: 11.98 kB / 1.22 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.3818, allocations: 0 / 1.22 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.3818, allocations: 7.938 kB / 1.22 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3818, allocations: 0 / 1.22 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3818, allocations: 0 / 1.22 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000365/0.3822, allocations: 230.8 kB / 1.22 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3823, allocations: 128.4 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.982e-05/0.3823, allocations: 4 kB / 1.22 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.3825, allocations: 15.98 kB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.3825, allocations: 19.95 kB / 1.22 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.3826, allocations: 11.98 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005091/0.3831, allocations: 467 kB / 1.22 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3831, allocations: 0 / 1.22 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003084/0.3834, allocations: 71.94 kB / 1.22 GB, free: 12.33 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001012/0.3844, allocations: 422.7 kB / 1.221 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003721/0.3848, allocations: 154.1 kB / 1.221 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3848, allocations: 0 / 1.221 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.3849, allocations: 55.92 kB / 1.221 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.3854, allocations: 95.81 kB / 1.221 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.3867, allocations: 0.842 MB / 1.222 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.3872, allocations: 0.8572 MB / 1.223 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001223/0.3873, allocations: 50.95 kB / 1.223 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.624e-05/0.3874, allocations: 27.42 kB / 1.223 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of SimCode: time 1.613e-06/0.3874, allocations: 4 kB / 1.223 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of Templates: time 0.01007/0.3975, allocations: 4.471 MB / 1.227 GB, free: 5.512 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches