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 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.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.001124/0.001124, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.582/1.582, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.973/2.973, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.06 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3532, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004056/0.3573, allocations: 2.464 MB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002529/0.3598, allocations: 1.576 MB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.36, allocations: 3.938 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009887/0.3611, allocations: 315.2 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004608/0.3615, allocations: 227.1 kB / 1.073 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006392/0.3622, allocations: 258.3 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.3626, allocations: 394.7 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.3628, allocations: 69 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.363, allocations: 163.2 kB / 1.074 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.3632, allocations: 159.3 kB / 1.074 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.3632, allocations: 16 kB / 1.074 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.3634, allocations: 79.94 kB / 1.074 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.3636, allocations: 131.5 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.3638, allocations: 190.6 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.3643, allocations: 498.1 kB / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3643, allocations: 0 / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3643, allocations: 4 kB / 1.075 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.15e-05/0.3644, allocations: 0 / 1.075 GB, free: 3.93 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.001162/0.3655, allocations: 0.8335 MB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3656, allocations: 8.031 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.795e-05/0.3657, allocations: 56.28 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.3662, allocations: 432.9 kB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.3662, allocations: 19.88 kB / 1.076 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.3663, allocations: 12 kB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.3666, allocations: 136.2 kB / 1.076 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3666, allocations: 0 / 1.076 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.3666, allocations: 11.94 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3666, allocations: 7.922 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.3668, allocations: 67.95 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009097/0.3677, allocations: 0.5744 MB / 1.077 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.3681, allocations: 130.7 kB / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.3682, allocations: 44.84 kB / 1.077 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.3683, allocations: 7.984 kB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.3685, allocations: 103.4 kB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.3685, allocations: 0 / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005604/0.3691, allocations: 240.9 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.3692, allocations: 89.09 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007834/0.37, allocations: 0.6759 MB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.37, allocations: 33.7 kB / 1.078 GB, free: 256 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.3703, allocations: 268.5 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.3703, allocations: 31.61 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.3704, allocations: 53.7 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3706, allocations: 370.8 kB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3708, allocations: 79.91 kB / 1.079 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.371, allocations: 117.8 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.3712, allocations: 137.1 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.3712, allocations: 3.938 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004637/0.3717, allocations: 283.9 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3717, allocations: 5.875 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3718, allocations: 0 / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3718, allocations: 4 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3719, allocations: 31.92 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.372, allocations: 4 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3721, allocations: 23.83 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.3722, allocations: 12.06 kB / 1.079 GB, free: 14.8 MB / 0.8419 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.0002204/0.3724, allocations: 215.5 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.735e-05/0.3725, allocations: 55.28 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.305e-05/0.3726, allocations: 57.05 kB / 1.08 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3726, allocations: 4 kB / 1.08 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3726, allocations: 0 / 1.08 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3726, allocations: 3.984 kB / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.3729, allocations: 373.3 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.373, allocations: 3.938 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.373, allocations: 16 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.373, allocations: 0 / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.373, allocations: 3.938 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.373, allocations: 4 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.373, allocations: 3.984 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.3734, allocations: 208.4 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.3735, allocations: 140.3 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.3736, allocations: 8 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3737, allocations: 11.98 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.359e-05/0.3738, allocations: 15.98 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.3738, allocations: 11.98 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005629/0.3744, allocations: 467 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3744, allocations: 0 / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003383/0.3747, allocations: 64 kB / 1.081 GB, free: 13.08 MB / 0.8419 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.001019/0.3758, allocations: 437.6 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000378/0.3762, allocations: 159.8 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3762, allocations: 0 / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.3763, allocations: 59.91 kB / 1.082 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.3768, allocations: 96.11 kB / 1.082 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.3781, allocations: 0.8368 MB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.3787, allocations: 0.8611 MB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001507/0.3788, allocations: 58.92 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.3789, allocations: 31.42 kB / 1.083 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of SimCode: time 1.814e-06/0.3789, allocations: 0 / 1.083 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of Templates: time 0.009742/0.3887, allocations: 4.353 MB / 1.088 GB, free: 6.359 MB / 0.8419 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