Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.727/2.727, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003687, allocations: 12 kB / 0.8708 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8456/0.846, allocations: 153.7 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003132/0.8491, allocations: 2.07 MB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002309/0.8515, allocations: 1.41 MB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.8516, allocations: 7.938 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008008/0.8525, allocations: 295.1 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003424/0.8528, allocations: 179.5 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.8534, allocations: 221.1 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000302/0.8538, allocations: 243.5 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.8539, allocations: 56.91 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.8542, allocations: 143.4 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.8543, allocations: 139.4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.8544, allocations: 4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.8545, allocations: 55.84 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.8546, allocations: 111.6 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.8548, allocations: 101.4 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003895/0.8552, allocations: 365.1 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.8552, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8552, allocations: 4 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.8552, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 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.00112/0.8563, allocations: 0.7715 MB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.8564, allocations: 15.98 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.858e-05/0.8565, allocations: 55.25 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006262/0.8571, allocations: 400 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.8571, allocations: 8.188 kB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.8572, allocations: 15.94 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.8575, allocations: 141 kB / 1.027 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.8575, allocations: 8 kB / 1.027 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.8575, allocations: 11.92 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.8575, allocations: 0 / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.8577, allocations: 64.53 kB / 1.027 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.8588, allocations: 0.5899 MB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.8592, allocations: 126.7 kB / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.8592, allocations: 0 / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.8594, allocations: 111.3 kB / 1.028 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.8594, allocations: 0 / 1.028 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0005689/0.86, allocations: 236.8 kB / 1.029 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.8601, allocations: 85.06 kB / 1.029 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006992/0.8608, allocations: 0.6759 MB / 1.029 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.8608, allocations: 29.7 kB / 1.029 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.861, allocations: 260.3 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.988e-05/0.8611, allocations: 47.53 kB / 1.03 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.8611, allocations: 4 kB / 1.03 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.8612, allocations: 370.8 kB / 1.03 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.8614, allocations: 71.97 kB / 1.03 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.8616, allocations: 117.1 kB / 1.03 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.8617, allocations: 82.38 kB / 1.03 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8617, allocations: 4 kB / 1.03 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004931/0.8622, allocations: 261 kB / 1.03 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.8623, allocations: 4 kB / 1.03 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.8623, allocations: 4 kB / 1.03 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.8623, allocations: 3.984 kB / 1.03 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.8625, allocations: 36.05 kB / 1.031 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.8626, allocations: 4 kB / 1.031 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.8627, allocations: 39.81 kB / 1.031 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.8628, allocations: 4 kB / 1.031 GB, free: 6.844 MB / 0.7794 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.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,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.0002202/0.863, allocations: 207.5 kB / 1.031 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.858e-05/0.8631, allocations: 55.47 kB / 1.031 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.8632, allocations: 57.05 kB / 1.031 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.8632, allocations: 11.94 kB / 1.031 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.8632, allocations: 0 / 1.031 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.8632, allocations: 3.984 kB / 1.031 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.8636, allocations: 365.4 kB / 1.031 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.8636, allocations: 3.984 kB / 1.031 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.858e-05/0.8637, allocations: 11.94 kB / 1.031 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.8637, allocations: 0 / 1.031 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.8637, allocations: 8 kB / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8637, allocations: 0 / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8637, allocations: 0 / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.864, allocations: 224.8 kB / 1.031 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.8642, allocations: 132.4 kB / 1.032 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.211e-05/0.8642, allocations: 8 kB / 1.032 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.8644, allocations: 11.98 kB / 1.032 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.8644, allocations: 19.97 kB / 1.032 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.8644, allocations: 8 kB / 1.032 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004786/0.8649, allocations: 471 kB / 1.032 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.493e-06/0.8649, allocations: 0 / 1.032 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003079/0.8653, allocations: 75.78 kB / 1.032 GB, free: 5.102 MB / 0.7794 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.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * 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.001022/0.8663, allocations: 429.8 kB / 1.033 GB, free: 4.84 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003401/0.8666, allocations: 151.9 kB / 1.033 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.8666, allocations: 128 / 1.033 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.8668, allocations: 59.92 kB / 1.033 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.8672, allocations: 89.66 kB / 1.033 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.8684, allocations: 0.9146 MB / 1.034 GB, free: 3.602 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.8689, allocations: 0.873 MB / 1.035 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001337/0.869, allocations: 54.92 kB / 1.035 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.8691, allocations: 35.42 kB / 1.035 GB, free: 2.617 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8691, allocations: 0 / 1.035 GB, free: 2.617 MB / 0.7794 GB Notification: Performance of Templates: time 0.00953/0.8787, allocations: 3.949 MB / 1.039 GB, free: 14.71 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches