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.406/1.406, allocations: 249.3 MB / 261.8 MB, free: 5.898 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.0009397/0.0009398, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.2 MB / 0.572 GB, free: 10.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.0008205/0.0008204, allocations: 94.45 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.732e-05/2.741e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1534, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5641/0.7175, allocations: 137.8 MB / 1.026 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.7179, allocations: 98.11 kB / 1.026 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03471/0.7526, allocations: 13.58 MB / 1.04 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7526, allocations: 0 / 1.04 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.465e-05/0.7527, allocations: 12 kB / 1.04 GB, free: 1.277 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.0008452/0.7535, allocations: 0.6832 MB / 1.04 GB, free: 0.5625 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.7536, allocations: 8.031 kB / 1.04 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.968e-05/0.7537, allocations: 59.25 kB / 1.041 GB, free: 0.4961 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006725/0.7543, allocations: 412.4 kB / 1.041 GB, free: 92 kB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.7544, allocations: 10.69 kB / 1.041 GB, free: 84 kB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.7544, allocations: 15.05 kB / 1.041 GB, free: 72 kB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.7547, allocations: 137.4 kB / 1.041 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.7547, allocations: 4 kB / 1.041 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.7547, allocations: 6.5 kB / 1.041 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.7548, allocations: 0 / 1.041 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.7549, allocations: 66.73 kB / 1.041 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008412/0.7557, allocations: 0.5966 MB / 1.042 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.756, allocations: 116.9 kB / 1.042 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.07e-05/0.7561, allocations: 46.56 kB / 1.042 GB, free: 15.25 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.7561, allocations: 3.938 kB / 1.042 GB, free: 15.25 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.7563, allocations: 120.1 kB / 1.042 GB, free: 15.14 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.7563, allocations: 0 / 1.042 GB, free: 15.14 MB / 0.6667 GB Notification: Performance of matching and sorting (n=13): time 0.0003378/0.7566, allocations: 193 kB / 1.042 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.7567, allocations: 77.11 kB / 1.042 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000656/0.7573, allocations: 0.599 MB / 1.043 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.7574, allocations: 33.27 kB / 1.043 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.7575, allocations: 262.5 kB / 1.043 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.7576, allocations: 39.11 kB / 1.043 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.7576, allocations: 7.25 kB / 1.043 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7577, allocations: 372 kB / 1.044 GB, free: 13.85 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.7579, allocations: 72.11 kB / 1.044 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.758, allocations: 130.6 kB / 1.044 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.7582, allocations: 90.27 kB / 1.044 GB, free: 13.63 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7582, allocations: 4 kB / 1.044 GB, free: 13.63 MB / 0.6667 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003963/0.7586, allocations: 276.9 kB / 1.044 GB, free: 13.41 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.7586, allocations: 7.953 kB / 1.044 GB, free: 13.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.7586, allocations: 0 / 1.044 GB, free: 13.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.7587, allocations: 4 kB / 1.044 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.7588, allocations: 31.48 kB / 1.044 GB, free: 13.37 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.7588, allocations: 7.984 kB / 1.044 GB, free: 13.36 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.759, allocations: 34.45 kB / 1.044 GB, free: 13.33 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.7591, allocations: 15.06 kB / 1.044 GB, free: 13.32 MB / 0.6667 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.099e-05/0.7592, allocations: 117.2 kB / 1.044 GB, free: 13.2 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-05/0.7592, allocations: 51.34 kB / 1.044 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.7596, allocations: 221.2 kB / 1.045 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.7596, allocations: 0 / 1.045 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.7596, allocations: 0 / 1.045 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.7596, allocations: 8 kB / 1.045 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003147/0.76, allocations: 382.3 kB / 1.045 GB, free: 12.61 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.76, allocations: 4 kB / 1.045 GB, free: 12.6 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.807e-05/0.76, allocations: 11.98 kB / 1.045 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.76, allocations: 0 / 1.045 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.7601, allocations: 7.938 kB / 1.045 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.7601, allocations: 7.891 kB / 1.045 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7601, allocations: 0 / 1.045 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.7604, allocations: 230.6 kB / 1.045 GB, free: 12.37 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.7605, allocations: 136.2 kB / 1.045 GB, free: 12.22 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/0.7606, allocations: 3.688 kB / 1.045 GB, free: 12.22 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.7607, allocations: 18.67 kB / 1.045 GB, free: 12.2 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.247e-05/0.7608, allocations: 23.73 kB / 1.045 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.7608, allocations: 4 kB / 1.045 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004647/0.7613, allocations: 456.4 kB / 1.046 GB, free: 11.84 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7613, allocations: 4 kB / 1.046 GB, free: 11.84 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003183/0.7616, allocations: 77.94 kB / 1.046 GB, free: 11.77 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.0009284/0.7625, allocations: 420.2 kB / 1.046 GB, free: 11.45 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.7628, allocations: 157.4 kB / 1.046 GB, free: 11.34 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.7629, allocations: 0 / 1.046 GB, free: 11.34 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.763, allocations: 59.36 kB / 1.046 GB, free: 11.3 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.7634, allocations: 80.94 kB / 1.047 GB, free: 11.24 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009283/0.7643, allocations: 0.6032 MB / 1.047 GB, free: 10.68 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.7648, allocations: 0.8743 MB / 1.048 GB, free: 9.797 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001357/0.7649, allocations: 46.05 kB / 1.048 GB, free: 9.754 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.765, allocations: 27.42 kB / 1.048 GB, free: 9.727 MB / 0.6667 GB Notification: Performance of SimCode: time 2.3e-07/0.765, allocations: 0 / 1.048 GB, free: 9.727 MB / 0.6667 GB Notification: Performance of Templates: time 0.008816/0.7738, allocations: 4.535 MB / 1.052 GB, free: 5.227 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