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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001057/0.001057, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001315/0.001315, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.064/3.064, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004018, allocations: 11.28 kB / 0.9021 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3669, allocations: 159.6 MB / 1.058 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003875/0.3708, allocations: 2.087 MB / 1.06 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002717/0.3736, allocations: 1.456 MB / 1.061 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003311/0.374, allocations: 7.938 kB / 1.061 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.3751, allocations: 299 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005627/0.3757, allocations: 175.4 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.3764, allocations: 223.9 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006242/0.377, allocations: 346.7 kB / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.3773, allocations: 56.89 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.3776, allocations: 139.3 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.3779, allocations: 147.3 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.378, allocations: 8 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.3782, allocations: 55.91 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.3783, allocations: 119.6 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.3785, allocations: 89.45 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.379, allocations: 375.3 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.379, allocations: 3.938 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.379, allocations: 0 / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.816e-05/0.379, allocations: 4 kB / 1.063 GB, free: 15.71 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.001346/0.3804, allocations: 0.7483 MB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3804, allocations: 12.02 kB / 1.064 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.3806, allocations: 63.19 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006799/0.3813, allocations: 415.9 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.3813, allocations: 12.14 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.3814, allocations: 12 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.3817, allocations: 138.3 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3817, allocations: 0 / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.3817, allocations: 8 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3817, allocations: 3.984 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.3819, allocations: 72.45 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009843/0.3829, allocations: 0.5783 MB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.3832, allocations: 126.7 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3833, allocations: 48.83 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.3834, allocations: 0 / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.3836, allocations: 115.3 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.3836, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005098/0.3841, allocations: 236.8 kB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.3842, allocations: 81.11 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007838/0.385, allocations: 0.6759 MB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.385, allocations: 29.7 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.3853, allocations: 260.4 kB / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.3853, allocations: 43.48 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.3853, allocations: 4 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3855, allocations: 374.8 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.3857, allocations: 71.97 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.3858, allocations: 122.6 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.386, allocations: 74.42 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.386, allocations: 0 / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004275/0.3864, allocations: 268.9 kB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3865, allocations: 8 kB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3865, allocations: 0 / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3865, allocations: 0 / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.3867, allocations: 43.88 kB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.3867, allocations: 7.984 kB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.3869, allocations: 27.89 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.3869, allocations: 8 kB / 1.068 GB, free: 10.82 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 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002336/0.3872, allocations: 211.5 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-05/0.3872, allocations: 55.34 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.414e-05/0.3873, allocations: 57.05 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.3874, allocations: 0 / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.3874, allocations: 3.953 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3874, allocations: 3.984 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.3877, allocations: 377.3 kB / 1.069 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3877, allocations: 0 / 1.069 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.722e-05/0.3878, allocations: 7.938 kB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3878, allocations: 4 kB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.3878, allocations: 0 / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3878, allocations: 0 / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3878, allocations: 3.984 kB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.3882, allocations: 229.5 kB / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3883, allocations: 136.4 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/0.3884, allocations: 11.98 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3885, allocations: 8 kB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.177e-05/0.3885, allocations: 19.97 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.3886, allocations: 11.98 kB / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005187/0.3891, allocations: 463 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.422e-06/0.3891, allocations: 0 / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003268/0.3894, allocations: 71.8 kB / 1.07 GB, free: 9.082 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001121/0.3906, allocations: 431.8 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000365/0.3909, allocations: 151.9 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.391, allocations: 0 / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.3911, allocations: 56.91 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.3916, allocations: 96.02 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.393, allocations: 0.9185 MB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.3936, allocations: 0.8691 MB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001569/0.3937, allocations: 46.94 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.154e-05/0.3938, allocations: 27.42 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.3938, allocations: 0 / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of Templates: time 0.009408/0.4032, allocations: 3.972 MB / 1.076 GB, free: 2.672 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