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.001025/0.001025, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009676/0.009676, allocations: 170.8 kB / 16.27 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.557/1.557, allocations: 223.3 MB / 240.3 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.853/2.853, allocations: 462.7 MB / 0.7364 GB, free: 280 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 13.47 kB / 0.9028 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.359, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003205/0.3623, allocations: 2.164 MB / 1.061 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002491/0.3648, allocations: 1.522 MB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.365, allocations: 7.938 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.3662, allocations: 303.5 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000488/0.3667, allocations: 195.3 kB / 1.063 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008372/0.3676, allocations: 243 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005346/0.3681, allocations: 366.7 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.3684, allocations: 72.97 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.3686, allocations: 139.2 kB / 1.064 GB, free: 484 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.3689, allocations: 151.2 kB / 1.064 GB, free: 332 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.3689, allocations: 8 kB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.3691, allocations: 59.95 kB / 1.064 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.3693, allocations: 119.5 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002417/0.3696, allocations: 204.3 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.3701, allocations: 478 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3701, allocations: 4 kB / 1.065 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3701, allocations: 0 / 1.065 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3701, allocations: 3.938 kB / 1.065 GB, free: 15.46 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001146/0.3713, allocations: 0.7532 MB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3713, allocations: 12.03 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.3714, allocations: 64.17 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.3721, allocations: 432.8 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.3721, allocations: 11.94 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.3721, allocations: 12 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.3725, allocations: 149.3 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3725, allocations: 0 / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.3726, allocations: 0 / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.3726, allocations: 7.938 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.3728, allocations: 75.95 kB / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.374, allocations: 0.5744 MB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.3744, allocations: 126.7 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.3745, allocations: 48.83 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.3746, allocations: 0 / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.3749, allocations: 117.9 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.773e-06/0.3749, allocations: 4 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005612/0.3755, allocations: 237 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.3755, allocations: 77.11 kB / 1.067 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008177/0.3764, allocations: 0.6838 MB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.3764, allocations: 25.7 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.3767, allocations: 268.2 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.172e-05/0.3767, allocations: 35.61 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.3768, allocations: 33.7 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000211/0.377, allocations: 370.8 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.3772, allocations: 71.97 kB / 1.069 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.3774, allocations: 121.9 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.3777, allocations: 136 kB / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.976e-06/0.3777, allocations: 3.938 kB / 1.069 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004767/0.3782, allocations: 272.7 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.3782, allocations: 4 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3783, allocations: 4 kB / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.3783, allocations: 0 / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.3785, allocations: 39.91 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.3785, allocations: 4.062 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.3787, allocations: 27.92 kB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.3787, allocations: 4 kB / 1.069 GB, free: 10.44 MB / 0.8262 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.0002409/0.379, allocations: 211.5 kB / 1.069 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.3791, allocations: 63.12 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.3792, allocations: 57.05 kB / 1.069 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3792, allocations: 8 kB / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3792, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3792, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003816/0.3796, allocations: 373.4 kB / 1.07 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3796, allocations: 7.984 kB / 1.07 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.735e-05/0.3796, allocations: 15.97 kB / 1.07 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3796, allocations: 0 / 1.07 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.3797, allocations: 4 kB / 1.07 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3797, allocations: 0 / 1.07 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3797, allocations: 0 / 1.07 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.38, allocations: 224.3 kB / 1.07 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.3802, allocations: 136.4 kB / 1.07 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.3803, allocations: 0 / 1.07 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.3804, allocations: 19.98 kB / 1.07 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.3805, allocations: 19.97 kB / 1.07 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3805, allocations: 8 kB / 1.07 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005291/0.381, allocations: 467 kB / 1.071 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.381, allocations: 0 / 1.071 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003166/0.3814, allocations: 63.91 kB / 1.071 GB, free: 8.699 MB / 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: 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.001108/0.3825, allocations: 436.5 kB / 1.071 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003593/0.3828, allocations: 153.8 kB / 1.071 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3829, allocations: 0 / 1.071 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.383, allocations: 68.08 kB / 1.071 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.3835, allocations: 90.33 kB / 1.071 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3849, allocations: 0.9654 MB / 1.072 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.3853, allocations: 0.8652 MB / 1.073 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001334/0.3855, allocations: 54.91 kB / 1.073 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.3855, allocations: 27.42 kB / 1.073 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3855, allocations: 0 / 1.073 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of Templates: time 0.008905/0.3944, allocations: 4.059 MB / 1.077 GB, free: 2.141 MB / 0.8262 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