Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.388/1.388, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 188.1 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.4 MB / 0.5775 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008349/0.0008348, allocations: 100.4 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003442, allocations: 9.625 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1657/0.3763, allocations: 137.9 MB / 1.035 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/0.3766, allocations: 91.94 kB / 1.035 GB, free: 5.715 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03565/0.4123, allocations: 13.62 MB / 1.048 GB, free: 7.973 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.595e-06/0.4123, allocations: 0 / 1.048 GB, free: 7.973 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.154e-05/0.4124, allocations: 15.98 kB / 1.048 GB, free: 7.957 MB / 0.698 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.001269/0.4136, allocations: 0.7913 MB / 1.049 GB, free: 7.105 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4137, allocations: 12.03 kB / 1.049 GB, free: 7.094 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4138, allocations: 55.25 kB / 1.049 GB, free: 7.039 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007755/0.4146, allocations: 427.9 kB / 1.049 GB, free: 6.578 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.4146, allocations: 8.125 kB / 1.049 GB, free: 6.57 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.4147, allocations: 12 kB / 1.049 GB, free: 6.559 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.415, allocations: 143.8 kB / 1.05 GB, free: 6.41 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.415, allocations: 7.984 kB / 1.05 GB, free: 6.402 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.415, allocations: 4 kB / 1.05 GB, free: 6.398 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.415, allocations: 4 kB / 1.05 GB, free: 6.395 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.4152, allocations: 72.52 kB / 1.05 GB, free: 6.324 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009498/0.4162, allocations: 0.5871 MB / 1.05 GB, free: 5.688 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.4165, allocations: 126.7 kB / 1.05 GB, free: 5.555 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.4165, allocations: 8 kB / 1.05 GB, free: 5.547 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.4167, allocations: 115.5 kB / 1.05 GB, free: 5.422 MB / 0.698 GB Notification: Performance of pre-optimization done (n=13): time 2.104e-06/0.4168, allocations: 3.938 kB / 1.05 GB, free: 5.418 MB / 0.698 GB Notification: Performance of matching and sorting (n=13): time 0.0005006/0.4173, allocations: 247.9 kB / 1.051 GB, free: 5.172 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.4173, allocations: 81.11 kB / 1.051 GB, free: 5.074 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006855/0.418, allocations: 0.5971 MB / 1.051 GB, free: 4.473 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.4181, allocations: 41.62 kB / 1.051 GB, free: 4.426 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.4183, allocations: 268.3 kB / 1.052 GB, free: 4.156 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.4183, allocations: 35.55 kB / 1.052 GB, free: 4.121 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.4183, allocations: 4 kB / 1.052 GB, free: 4.117 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4185, allocations: 370.8 kB / 1.052 GB, free: 3.746 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.4186, allocations: 79.97 kB / 1.052 GB, free: 3.668 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.4188, allocations: 131.4 kB / 1.052 GB, free: 3.523 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.419, allocations: 92.19 kB / 1.052 GB, free: 3.434 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.419, allocations: 4 kB / 1.052 GB, free: 3.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004469/0.4195, allocations: 296.3 kB / 1.053 GB, free: 3.137 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.4195, allocations: 4 kB / 1.053 GB, free: 3.133 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4195, allocations: 3.953 kB / 1.053 GB, free: 3.129 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.4195, allocations: 4 kB / 1.053 GB, free: 3.125 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.4197, allocations: 39.98 kB / 1.053 GB, free: 3.086 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4197, allocations: 4 kB / 1.053 GB, free: 3.082 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.4199, allocations: 15.98 kB / 1.053 GB, free: 3.066 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.4199, allocations: 12 kB / 1.053 GB, free: 3.055 MB / 0.698 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.runSig,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,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.0002348/0.4202, allocations: 215.5 kB / 1.053 GB, free: 2.836 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-05/0.4202, allocations: 55.25 kB / 1.053 GB, free: 2.781 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003931/0.4206, allocations: 218.6 kB / 1.053 GB, free: 2.559 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4207, allocations: 7.938 kB / 1.053 GB, free: 2.551 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4207, allocations: 4 kB / 1.053 GB, free: 2.547 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4207, allocations: 0 / 1.053 GB, free: 2.547 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.421, allocations: 381.3 kB / 1.054 GB, free: 2.125 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.421, allocations: 0 / 1.054 GB, free: 2.125 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.594e-05/0.4211, allocations: 8 kB / 1.054 GB, free: 2.117 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4211, allocations: 0 / 1.054 GB, free: 2.117 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.4211, allocations: 11.98 kB / 1.054 GB, free: 2.105 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4211, allocations: 0 / 1.054 GB, free: 2.105 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4211, allocations: 7.953 kB / 1.054 GB, free: 2.098 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.4215, allocations: 229.5 kB / 1.054 GB, free: 1.855 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.4216, allocations: 140.4 kB / 1.054 GB, free: 1.699 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.4217, allocations: 11.92 kB / 1.054 GB, free: 1.688 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.4218, allocations: 12 kB / 1.054 GB, free: 1.676 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.4219, allocations: 27.92 kB / 1.054 GB, free: 1.648 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.4219, allocations: 7.984 kB / 1.054 GB, free: 1.641 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004958/0.4224, allocations: 463 kB / 1.054 GB, free: 1.195 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4224, allocations: 0 / 1.054 GB, free: 1.195 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000343/0.4228, allocations: 75.94 kB / 1.055 GB, free: 1.121 MB / 0.698 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.runSig,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.001004/0.4238, allocations: 456.8 kB / 1.055 GB, free: 0.8164 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004119/0.4242, allocations: 163.8 kB / 1.055 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4242, allocations: 7.938 kB / 1.055 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.4244, allocations: 59.92 kB / 1.055 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.4248, allocations: 84.09 kB / 1.055 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3631/0.788, allocations: 0.9319 MB / 1.056 GB, free: 147.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.7884, allocations: 0.8688 MB / 1.057 GB, free: 146.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002538/0.7887, allocations: 49.94 kB / 1.057 GB, free: 146.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.862e-05/0.7888, allocations: 31.22 kB / 1.057 GB, free: 146.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.313e-06/0.7888, allocations: 0 / 1.057 GB, free: 146.4 MB / 0.698 GB Notification: Performance of Templates: time 0.009971/0.7987, allocations: 4.433 MB / 1.061 GB, free: 146.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches