Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.16/2.16, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 180.8 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009087/0.0009087, allocations: 102.7 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.885e-05, allocations: 8 kB / 1.067 GB, free: 185.8 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3049, allocations: 142.4 MB / 1.206 GB, free: 44.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8577/1.163, allocations: 155.3 MB / 1.358 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/1.163, allocations: 91.14 kB / 1.358 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03217/1.195, allocations: 14 MB / 1.371 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/1.195, allocations: 0 / 1.371 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.818e-05/1.195, allocations: 15.44 kB / 1.371 GB, free: 32.97 MB / 0.8386 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.0007979/1.196, allocations: 0.6917 MB / 1.372 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/1.196, allocations: 11.62 kB / 1.372 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.175e-05/1.196, allocations: 58.53 kB / 1.372 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006231/1.197, allocations: 440.7 kB / 1.373 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/1.197, allocations: 2.391 kB / 1.373 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/1.197, allocations: 7.875 kB / 1.373 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001303/1.197, allocations: 62.77 kB / 1.373 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/1.197, allocations: 132.8 kB / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/1.197, allocations: 0 / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/1.197, allocations: 3.969 kB / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/1.197, allocations: 0 / 1.373 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007755/1.198, allocations: 0.5583 MB / 1.373 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/1.198, allocations: 106.5 kB / 1.373 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.773e-05/1.198, allocations: 43.95 kB / 1.373 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/1.198, allocations: 4.156 kB / 1.373 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/1.199, allocations: 122.2 kB / 1.374 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/1.199, allocations: 0 / 1.374 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13): time 0.0003019/1.199, allocations: 181.8 kB / 1.374 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.199, allocations: 84.73 kB / 1.374 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/1.199, allocations: 0.5757 MB / 1.374 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/1.199, allocations: 28.58 kB / 1.374 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/1.2, allocations: 264.1 kB / 1.375 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/1.2, allocations: 32.64 kB / 1.375 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/1.2, allocations: 4 kB / 1.375 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001457/1.2, allocations: 369.9 kB / 1.375 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.691e-05/1.2, allocations: 74.48 kB / 1.375 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/1.2, allocations: 125.6 kB / 1.375 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/1.2, allocations: 88.09 kB / 1.375 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.2, allocations: 0 / 1.375 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003795/1.201, allocations: 280.1 kB / 1.376 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/1.201, allocations: 6.188 kB / 1.376 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/1.201, allocations: 3.953 kB / 1.376 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/1.201, allocations: 3.875 kB / 1.376 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/1.201, allocations: 40.08 kB / 1.376 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/1.201, allocations: 0 / 1.376 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/1.201, allocations: 30.28 kB / 1.376 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-05/1.201, allocations: 7.781 kB / 1.376 GB, free: 30.84 MB / 0.8386 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 9.928e-05/1.201, allocations: 113.3 kB / 1.376 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/1.201, allocations: 54.28 kB / 1.376 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/1.202, allocations: 201.2 kB / 1.376 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/1.202, allocations: 4 kB / 1.376 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.202, allocations: 7.984 kB / 1.376 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/1.202, allocations: 5.25 kB / 1.376 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/1.202, allocations: 349.7 kB / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/1.202, allocations: 0 / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.617e-05/1.202, allocations: 9.625 kB / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/1.202, allocations: 3.75 kB / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/1.202, allocations: 6.344 kB / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.202, allocations: 0 / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.202, allocations: 0 / 1.376 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/1.202, allocations: 225.3 kB / 1.377 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.038e-05/1.202, allocations: 144.3 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/1.203, allocations: 3.844 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/1.203, allocations: 10.86 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.275e-05/1.203, allocations: 21.11 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/1.203, allocations: 7.812 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003936/1.203, allocations: 442.5 kB / 1.377 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.203, allocations: 0 / 1.377 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003147/1.203, allocations: 79.8 kB / 1.377 GB, free: 30.12 MB / 0.8386 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.0009036/1.204, allocations: 398.8 kB / 1.378 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002406/1.205, allocations: 145.2 kB / 1.378 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.205, allocations: 0 / 1.378 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.651e-05/1.205, allocations: 55.22 kB / 1.378 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/1.205, allocations: 91.25 kB / 1.378 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008021/1.206, allocations: 0.5899 MB / 1.378 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/1.206, allocations: 0.8812 MB / 1.379 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000135/1.207, allocations: 46.03 kB / 1.379 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/1.207, allocations: 32.61 kB / 1.379 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of SimCode: time 1.001e-06/1.207, allocations: 0 / 1.379 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.007788/1.214, allocations: 4.024 MB / 1.383 GB, free: 27.14 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches