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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001484/0.001484, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.00178/0.00178, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.467/1.467, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.434/2.434, allocations: 390.2 MB / 0.6643 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 63.91 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8311/0.8334, allocations: 140.4 MB / 0.9491 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00464/0.8381, allocations: 2.513 MB / 0.9515 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002877/0.841, allocations: 1.534 MB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.8415, allocations: 6.562 kB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.8427, allocations: 318.7 kB / 0.9534 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007018/0.8434, allocations: 201.8 kB / 0.9535 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009136/0.8444, allocations: 244.2 kB / 0.9538 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007214/0.8451, allocations: 400.8 kB / 0.9542 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.8453, allocations: 64.3 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.8457, allocations: 160.8 kB / 0.9544 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.846, allocations: 179.2 kB / 0.9545 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.613e-05/0.8461, allocations: 22.12 kB / 0.9546 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.8464, allocations: 73.03 kB / 0.9546 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.8466, allocations: 133.9 kB / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.8468, allocations: 187.5 kB / 0.9549 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007038/0.8475, allocations: 499.9 kB / 0.9554 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8475, allocations: 0 / 0.9554 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.725e-06/0.8475, allocations: 1.188 kB / 0.9554 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.117e-05/0.8476, allocations: 3.938 kB / 0.9554 GB, free: 4.355 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.001529/0.8491, allocations: 0.8285 MB / 0.9562 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.8492, allocations: 9.188 kB / 0.9562 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.8493, allocations: 59.41 kB / 0.9563 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006889/0.85, allocations: 439.6 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.8501, allocations: 9.094 kB / 0.9567 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.8501, allocations: 10.97 kB / 0.9567 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.8504, allocations: 138.1 kB / 0.9569 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.8505, allocations: 4 kB / 0.9569 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.8505, allocations: 9.609 kB / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.8505, allocations: 6.031 kB / 0.9569 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.8507, allocations: 64.22 kB / 0.957 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.8518, allocations: 0.5758 MB / 0.9575 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.8521, allocations: 123.6 kB / 0.9576 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.8523, allocations: 46.06 kB / 0.9577 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.8523, allocations: 10.83 kB / 0.9577 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.8526, allocations: 115.9 kB / 0.9578 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 2.184e-06/0.8526, allocations: 0 / 0.9578 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0006585/0.8533, allocations: 230 kB / 0.958 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.8533, allocations: 78.92 kB / 0.9581 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009844/0.8543, allocations: 0.6891 MB / 0.9588 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.8544, allocations: 33.05 kB / 0.9588 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.8546, allocations: 267.5 kB / 0.9591 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.8546, allocations: 30.23 kB / 0.9591 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.8548, allocations: 63.06 kB / 0.9591 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.8549, allocations: 371 kB / 0.9595 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.8551, allocations: 75.31 kB / 0.9596 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.8553, allocations: 132.9 kB / 0.9597 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.8555, allocations: 126.7 kB / 0.9598 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.8556, allocations: 5.031 kB / 0.9598 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000585/0.8561, allocations: 266.8 kB / 0.9601 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.8562, allocations: 5.719 kB / 0.9601 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.8562, allocations: 64 / 0.9601 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.8562, allocations: 6.562 kB / 0.9601 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.8564, allocations: 38.33 kB / 0.9601 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.8564, allocations: 6.328 kB / 0.9601 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.8567, allocations: 21.33 kB / 0.9601 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.8567, allocations: 10.38 kB / 0.9602 GB, free: 0.6719 MB / 0.7169 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.0002685/0.857, allocations: 210.4 kB / 0.9604 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.234e-05/0.8571, allocations: 61.25 kB / 0.9604 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.8572, allocations: 60.8 kB / 0.9605 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.8572, allocations: 2.344 kB / 0.9605 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.8572, allocations: 0 / 0.9605 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.8572, allocations: 0 / 0.9605 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.8576, allocations: 362.3 kB / 0.9608 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.8576, allocations: 3.938 kB / 0.9608 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.343e-05/0.8576, allocations: 15.3 kB / 0.9608 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.8576, allocations: 1.062 kB / 0.9608 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.8577, allocations: 1.094 kB / 0.9608 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.8577, allocations: 1.094 kB / 0.9608 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.8577, allocations: 3.938 kB / 0.9608 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.8581, allocations: 228.1 kB / 0.9611 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.8582, allocations: 129 kB / 0.9612 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.697e-05/0.8583, allocations: 10.61 kB / 0.9612 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.8584, allocations: 17.36 kB / 0.9612 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.781e-05/0.8585, allocations: 11.67 kB / 0.9612 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.8585, allocations: 9 kB / 0.9612 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006837/0.8592, allocations: 470.6 kB / 0.9617 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8592, allocations: 0 / 0.9617 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003938/0.8596, allocations: 67.64 kB / 0.9617 GB, free: 15.51 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.001144/0.8608, allocations: 429.9 kB / 0.9622 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004278/0.8612, allocations: 155 kB / 0.9623 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8613, allocations: 4.062 kB / 0.9623 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.8614, allocations: 61.08 kB / 0.9624 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.862, allocations: 104 kB / 0.9625 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.8636, allocations: 0.9503 MB / 0.9634 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.8642, allocations: 0.8636 MB / 0.9642 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001852/0.8644, allocations: 41.95 kB / 0.9643 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.209e-05/0.8645, allocations: 38.61 kB / 0.9643 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.8645, allocations: 0 / 0.9643 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of Templates: time 0.01238/0.8769, allocations: 4.255 MB / 0.9685 GB, free: 11.6 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/jenkins/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