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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008336/0.0008335, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 172.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003525, allocations: 19.94 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6418/0.6421, allocations: 142.4 MB / 0.9557 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002651/0.6448, allocations: 2.14 MB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002099/0.647, allocations: 1.532 MB / 0.9593 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.6471, allocations: 2.75 kB / 0.9593 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008129/0.648, allocations: 311.6 kB / 0.9596 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003674/0.6483, allocations: 191.6 kB / 0.9598 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.6489, allocations: 254.1 kB / 0.96 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003672/0.6493, allocations: 365.4 kB / 0.9604 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.6495, allocations: 66.22 kB / 0.9604 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.6497, allocations: 135.8 kB / 0.9606 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.6498, allocations: 158.5 kB / 0.9607 GB, free: 4 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.6499, allocations: 6.875 kB / 0.9607 GB, free: 4 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.65, allocations: 70.25 kB / 0.9608 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.6502, allocations: 114.5 kB / 0.9609 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.6503, allocations: 210 kB / 0.9611 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003469/0.6507, allocations: 365.9 kB / 0.9614 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.6507, allocations: 0 / 0.9614 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.404e-06/0.6507, allocations: 0 / 0.9614 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.074e-06/0.6507, allocations: 9.062 kB / 0.9615 GB, free: 3.473 MB / 0.7169 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.0009322/0.6516, allocations: 0.7496 MB / 0.9622 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.6517, allocations: 9 kB / 0.9622 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.526e-05/0.6518, allocations: 62.77 kB / 0.9623 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004924/0.6523, allocations: 444.3 kB / 0.9627 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.6523, allocations: 11.75 kB / 0.9627 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.6523, allocations: 12.19 kB / 0.9627 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.6526, allocations: 142.3 kB / 0.9628 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.6526, allocations: 0 / 0.9628 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.6526, allocations: 1.344 kB / 0.9628 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.6527, allocations: 6.344 kB / 0.9628 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.6528, allocations: 71.14 kB / 0.9629 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007686/0.6536, allocations: 0.5756 MB / 0.9635 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.6539, allocations: 131.5 kB / 0.9636 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.654, allocations: 47.05 kB / 0.9636 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.654, allocations: 6 kB / 0.9637 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.6543, allocations: 105.5 kB / 0.9638 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.6543, allocations: 4 kB / 0.9638 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004954/0.6548, allocations: 240.3 kB / 0.964 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.6548, allocations: 78.17 kB / 0.9641 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007307/0.6556, allocations: 0.6853 MB / 0.9647 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.6556, allocations: 36.53 kB / 0.9648 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.6558, allocations: 263.7 kB / 0.965 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.6558, allocations: 33.48 kB / 0.965 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.6558, allocations: 32.7 kB / 0.9651 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.14e-05/0.6559, allocations: 374.3 kB / 0.9654 GB, free: 236 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.6561, allocations: 73.28 kB / 0.9655 GB, free: 204 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.6562, allocations: 122.1 kB / 0.9656 GB, free: 112 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.6565, allocations: 138.9 kB / 0.9658 GB, free: 28 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6565, allocations: 5.031 kB / 0.9658 GB, free: 24 kB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000475/0.657, allocations: 264.9 kB / 0.966 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.657, allocations: 4.812 kB / 0.966 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.657, allocations: 1.156 kB / 0.966 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.657, allocations: 1.875 kB / 0.966 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.6572, allocations: 38.38 kB / 0.9661 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.6572, allocations: 1.844 kB / 0.9661 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/0.6574, allocations: 33.58 kB / 0.9661 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.6574, allocations: 10.66 kB / 0.9661 GB, free: 15.85 MB / 0.7325 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 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.6577, allocations: 202.2 kB / 0.9663 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.6577, allocations: 60.44 kB / 0.9664 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.6578, allocations: 58.14 kB / 0.9664 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6578, allocations: 1.156 kB / 0.9664 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.6579, allocations: 8.938 kB / 0.9664 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.6579, allocations: 0 / 0.9664 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.6583, allocations: 370.4 kB / 0.9668 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.6583, allocations: 7.938 kB / 0.9668 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-05/0.6583, allocations: 11.14 kB / 0.9668 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.6583, allocations: 0 / 0.9668 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.6583, allocations: 1.781 kB / 0.9668 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.6583, allocations: 0.9062 kB / 0.9668 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6584, allocations: 1 kB / 0.9668 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.6587, allocations: 226.5 kB / 0.967 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.6589, allocations: 136.7 kB / 0.9671 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/0.6589, allocations: 7.094 kB / 0.9671 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.6591, allocations: 16.58 kB / 0.9672 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.6591, allocations: 19.41 kB / 0.9672 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.6592, allocations: 9.062 kB / 0.9672 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005461/0.6597, allocations: 465.7 kB / 0.9676 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.743e-06/0.6597, allocations: 4 kB / 0.9676 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003316/0.6601, allocations: 68.38 kB / 0.9677 GB, free: 14.68 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.6611, allocations: 430.3 kB / 0.9681 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003672/0.6615, allocations: 154.4 kB / 0.9683 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6615, allocations: 0 / 0.9683 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.6617, allocations: 64.94 kB / 0.9683 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.6623, allocations: 90.23 kB / 0.9684 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.6637, allocations: 1.022 MB / 0.9694 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.6642, allocations: 0.8599 MB / 0.9702 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.6643, allocations: 26.75 kB / 0.9703 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.6643, allocations: 0 / 0.9703 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of Templates: time 0.01031/0.6746, allocations: 5.722 MB / 0.9759 GB, free: 9.848 MB / 0.7325 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches