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.414/1.414, allocations: 249.5 MB / 257 MB, free: 6.926 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.001172/0.001172, allocations: 180.8 kB / 316.3 MB, free: 3.242 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.444/1.444, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008539/0.0008539, allocations: 106 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.942e-05/1.93e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1645, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5685/0.733, allocations: 138.1 MB / 1.02 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.7333, allocations: 95.23 kB / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0348/0.7681, allocations: 13.45 MB / 1.033 GB, free: 4.305 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7682, allocations: 0 / 1.033 GB, free: 4.305 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.563e-05/0.7682, allocations: 12 kB / 1.033 GB, free: 4.293 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.0008747/0.7691, allocations: 0.6805 MB / 1.034 GB, free: 3.582 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.7692, allocations: 8.031 kB / 1.034 GB, free: 3.574 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.903e-05/0.7693, allocations: 63.19 kB / 1.034 GB, free: 3.512 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.7699, allocations: 412.9 kB / 1.034 GB, free: 3.109 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.7699, allocations: 4 kB / 1.034 GB, free: 3.105 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.7699, allocations: 12 kB / 1.034 GB, free: 3.094 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001514/0.7701, allocations: 68.48 kB / 1.035 GB, free: 3.051 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.7703, allocations: 121.3 kB / 1.035 GB, free: 2.945 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.7703, allocations: 0 / 1.035 GB, free: 2.945 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.7704, allocations: 3.625 kB / 1.035 GB, free: 2.945 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.7704, allocations: 4 kB / 1.035 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007982/0.7712, allocations: 0.5626 MB / 1.035 GB, free: 2.445 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.7714, allocations: 104.9 kB / 1.035 GB, free: 2.367 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.755e-05/0.7714, allocations: 55.53 kB / 1.035 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.7715, allocations: 224 / 1.035 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.7716, allocations: 115.3 kB / 1.035 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.7717, allocations: 0 / 1.035 GB, free: 2.219 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13): time 0.0003006/0.772, allocations: 177.6 kB / 1.036 GB, free: 2.066 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.772, allocations: 77.11 kB / 1.036 GB, free: 1.973 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006274/0.7727, allocations: 0.5706 MB / 1.036 GB, free: 1.523 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.7727, allocations: 33.7 kB / 1.036 GB, free: 1.484 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.7729, allocations: 265.4 kB / 1.037 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.7729, allocations: 31.05 kB / 1.037 GB, free: 1.32 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.251e-05/0.7729, allocations: 0 / 1.037 GB, free: 1.32 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.7731, allocations: 371.5 kB / 1.037 GB, free: 0.9727 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.7732, allocations: 80.05 kB / 1.037 GB, free: 0.9219 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.7733, allocations: 123.9 kB / 1.037 GB, free: 0.8164 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.7735, allocations: 81.64 kB / 1.037 GB, free: 0.7656 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7735, allocations: 3.938 kB / 1.037 GB, free: 0.7617 MB / 0.6511 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000354/0.7738, allocations: 259.8 kB / 1.037 GB, free: 0.5508 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.7739, allocations: 10.19 kB / 1.037 GB, free: 0.543 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.7739, allocations: 0 / 1.037 GB, free: 0.543 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.7739, allocations: 3.953 kB / 1.037 GB, free: 0.5391 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.7741, allocations: 43.23 kB / 1.038 GB, free: 0.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.7741, allocations: 4 kB / 1.038 GB, free: 0.4961 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.7743, allocations: 27.88 kB / 1.038 GB, free: 480 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.7743, allocations: 15.97 kB / 1.038 GB, free: 464 kB / 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 9.04e-05/0.7744, allocations: 114.1 kB / 1.038 GB, free: 348 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.952e-05/0.7745, allocations: 55.34 kB / 1.038 GB, free: 292 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003037/0.7748, allocations: 198.1 kB / 1.038 GB, free: 132 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.7748, allocations: 0 / 1.038 GB, free: 132 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.7748, allocations: 3.953 kB / 1.038 GB, free: 128 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.7748, allocations: 3.984 kB / 1.038 GB, free: 124 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.7751, allocations: 351.4 kB / 1.038 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.7751, allocations: 0 / 1.038 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.025e-05/0.7752, allocations: 11.98 kB / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.902e-06/0.7752, allocations: 4 kB / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.7752, allocations: 3.438 kB / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7752, allocations: 0 / 1.038 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7752, allocations: 7.938 kB / 1.038 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.7755, allocations: 220 kB / 1.039 GB, free: 15.58 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.7757, allocations: 141.9 kB / 1.039 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.237e-05/0.7757, allocations: 0 / 1.039 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.7758, allocations: 11.98 kB / 1.039 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/0.7759, allocations: 23.28 kB / 1.039 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.7759, allocations: 8 kB / 1.039 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004089/0.7764, allocations: 430.7 kB / 1.039 GB, free: 15.07 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7764, allocations: 0 / 1.039 GB, free: 15.07 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003134/0.7767, allocations: 63.94 kB / 1.039 GB, free: 15.01 MB / 0.6667 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.0008107/0.7775, allocations: 403.4 kB / 1.04 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.7778, allocations: 142.8 kB / 1.04 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7778, allocations: 0 / 1.04 GB, free: 14.6 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 9.336e-05/0.7779, allocations: 60.12 kB / 1.04 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.7783, allocations: 79.66 kB / 1.04 GB, free: 14.5 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000916/0.7793, allocations: 0.5858 MB / 1.04 GB, free: 13.96 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.7797, allocations: 0.875 MB / 1.041 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001421/0.7799, allocations: 54.03 kB / 1.041 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.786e-05/0.78, allocations: 31.42 kB / 1.041 GB, free: 12.99 MB / 0.6667 GB Notification: Performance of SimCode: time 3.81e-07/0.78, allocations: 0 / 1.041 GB, free: 12.99 MB / 0.6667 GB Notification: Performance of Templates: time 0.008176/0.7881, allocations: 3.887 MB / 1.045 GB, free: 9.137 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