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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.172/1.172, allocations: 249.4 MB / 256.7 MB, free: 7.016 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 184.8 kB / 316 MB, free: 3.555 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.003/1.003, allocations: 205.1 MB / 0.5667 GB, free: 15.7 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.0007963/0.0007963, allocations: 98.12 kB / 0.671 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.823e-06/6.863e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1412, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3994/0.5406, allocations: 138.2 MB / 1.019 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.5409, allocations: 82.7 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03146/0.5724, allocations: 13.09 MB / 1.032 GB, free: 5.656 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.734e-05/0.5725, allocations: 12 kB / 1.032 GB, free: 5.645 MB / 0.6511 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.0007575/0.5732, allocations: 0.684 MB / 1.033 GB, free: 4.93 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.5733, allocations: 8.031 kB / 1.033 GB, free: 4.922 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.581e-05/0.5734, allocations: 55.25 kB / 1.033 GB, free: 4.867 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.5739, allocations: 417.2 kB / 1.033 GB, free: 4.461 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.574, allocations: 15.89 kB / 1.034 GB, free: 4.445 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.574, allocations: 8 kB / 1.034 GB, free: 4.438 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001355/0.5741, allocations: 64.86 kB / 1.034 GB, free: 4.398 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.5743, allocations: 125.8 kB / 1.034 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.5744, allocations: 4 kB / 1.034 GB, free: 4.285 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.5744, allocations: 0 / 1.034 GB, free: 4.285 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.5744, allocations: 0 / 1.034 GB, free: 4.285 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006994/0.5751, allocations: 0.5607 MB / 1.034 GB, free: 3.793 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.5753, allocations: 113.7 kB / 1.034 GB, free: 3.703 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.081e-05/0.5753, allocations: 44.61 kB / 1.034 GB, free: 3.672 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5754, allocations: 4.219 kB / 1.034 GB, free: 3.668 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.5755, allocations: 103.5 kB / 1.034 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.5755, allocations: 0 / 1.034 GB, free: 3.57 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13): time 0.0002807/0.5758, allocations: 158.8 kB / 1.035 GB, free: 3.434 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.5758, allocations: 85.11 kB / 1.035 GB, free: 3.332 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005811/0.5764, allocations: 0.5732 MB / 1.035 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.5765, allocations: 33.33 kB / 1.035 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/0.5766, allocations: 155.4 kB / 1.035 GB, free: 2.711 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.5766, allocations: 27.12 kB / 1.035 GB, free: 2.688 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/0.5766, allocations: 0 / 1.035 GB, free: 2.688 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.5767, allocations: 374.4 kB / 1.036 GB, free: 2.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.5768, allocations: 72.17 kB / 1.036 GB, free: 2.293 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.577, allocations: 134.5 kB / 1.036 GB, free: 2.18 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.5771, allocations: 76.09 kB / 1.036 GB, free: 2.133 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5771, allocations: 0 / 1.036 GB, free: 2.133 MB / 0.6511 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003426/0.5775, allocations: 268.8 kB / 1.036 GB, free: 1.914 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.5775, allocations: 8 kB / 1.036 GB, free: 1.906 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.5775, allocations: 4.062 kB / 1.036 GB, free: 1.902 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.5775, allocations: 0 / 1.036 GB, free: 1.902 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.5777, allocations: 31.98 kB / 1.036 GB, free: 1.871 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.5777, allocations: 7.922 kB / 1.036 GB, free: 1.863 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.5779, allocations: 27.83 kB / 1.036 GB, free: 1.836 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.5779, allocations: 7.812 kB / 1.036 GB, free: 1.832 MB / 0.6511 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 () * 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 8.751e-05/0.578, allocations: 121.8 kB / 1.037 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.578, allocations: 55.25 kB / 1.037 GB, free: 1.656 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.5783, allocations: 183.2 kB / 1.037 GB, free: 1.504 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.5784, allocations: 0 / 1.037 GB, free: 1.504 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.5784, allocations: 4 kB / 1.037 GB, free: 1.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.5784, allocations: 3.984 kB / 1.037 GB, free: 1.496 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.5787, allocations: 349 kB / 1.037 GB, free: 1.184 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5787, allocations: 0 / 1.037 GB, free: 1.184 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.857e-05/0.5787, allocations: 19.11 kB / 1.037 GB, free: 1.168 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.5788, allocations: 4 kB / 1.037 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.5788, allocations: 0 / 1.037 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5788, allocations: 0 / 1.037 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5788, allocations: 0 / 1.037 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002349/0.579, allocations: 206.2 kB / 1.037 GB, free: 0.9727 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.5792, allocations: 142.6 kB / 1.038 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/0.5792, allocations: 6.609 kB / 1.038 GB, free: 0.8164 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.5794, allocations: 16 kB / 1.038 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.5794, allocations: 14.97 kB / 1.038 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.5794, allocations: 15.92 kB / 1.038 GB, free: 0.7734 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003858/0.5798, allocations: 429.1 kB / 1.038 GB, free: 468 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003015/0.5801, allocations: 67.48 kB / 1.038 GB, free: 404 kB / 0.6511 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) * 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.0006521/0.5808, allocations: 356.3 kB / 1.038 GB, free: 128 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.5811, allocations: 149.3 kB / 1.039 GB, free: 20 kB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5811, allocations: 0 / 1.039 GB, free: 20 kB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 9.677e-05/0.5812, allocations: 60.28 kB / 1.039 GB, free: 15.97 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.5816, allocations: 78.05 kB / 1.039 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009309/0.5825, allocations: 0.5873 MB / 1.039 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004832/0.583, allocations: 0.9047 MB / 1.04 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of SimCode: time 2.3e-07/0.583, allocations: 0 / 1.04 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of Templates: time 0.007874/0.5909, allocations: 3.845 MB / 1.044 GB, free: 10.66 MB / 0.6667 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