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.001535/0.001535, allocations: 103 kB / 16.36 MB, free: 6.336 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.001735/0.001735, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.2/2.2, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 68.75 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3297, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005553/0.3353, allocations: 2.455 MB / 0.9535 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003532/0.3389, allocations: 1.573 MB / 0.9551 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.3392, allocations: 4 kB / 0.9551 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.3405, allocations: 335.2 kB / 0.9554 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006487/0.3411, allocations: 211.1 kB / 0.9556 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009661/0.3421, allocations: 267.2 kB / 0.9558 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005963/0.3427, allocations: 382.8 kB / 0.9562 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.343, allocations: 76.7 kB / 0.9563 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.3433, allocations: 155.3 kB / 0.9564 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.3436, allocations: 171.2 kB / 0.9566 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.3436, allocations: 19.94 kB / 0.9566 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.3439, allocations: 79.97 kB / 0.9567 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.3441, allocations: 131.5 kB / 0.9568 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000246/0.3444, allocations: 190.6 kB / 0.957 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000763/0.3452, allocations: 0.4903 MB / 0.9575 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3452, allocations: 3.984 kB / 0.9575 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3452, allocations: 0 / 0.9575 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.3452, allocations: 0 / 0.9575 GB, free: 1.496 MB / 0.7325 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.001676/0.3469, allocations: 0.8374 MB / 0.9583 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3469, allocations: 12.03 kB / 0.9583 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.3471, allocations: 60.19 kB / 0.9584 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.3479, allocations: 424.9 kB / 0.9588 GB, free: 80 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.3479, allocations: 15.88 kB / 0.9588 GB, free: 64 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.348, allocations: 15.98 kB / 0.9588 GB, free: 48 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004477/0.3484, allocations: 141.6 kB / 0.9589 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3485, allocations: 0 / 0.9589 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.3485, allocations: 8 kB / 0.9589 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.3485, allocations: 3.938 kB / 0.9589 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.3488, allocations: 67.97 kB / 0.959 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.35, allocations: 0.5743 MB / 0.9596 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.3505, allocations: 130.7 kB / 0.9597 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.3506, allocations: 48.84 kB / 0.9597 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.3507, allocations: 0 / 0.9597 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003271/0.351, allocations: 107.3 kB / 0.9598 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=13): time 2.074e-06/0.351, allocations: 0 / 0.9598 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13): time 0.0007538/0.3518, allocations: 244.5 kB / 0.9601 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/0.3519, allocations: 77.11 kB / 0.9601 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.353, allocations: 0.6876 MB / 0.9608 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.767e-05/0.3531, allocations: 29.7 kB / 0.9608 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.3534, allocations: 268.2 kB / 0.9611 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.3535, allocations: 35.59 kB / 0.9611 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.3536, allocations: 49.7 kB / 0.9612 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002265/0.3539, allocations: 378.8 kB / 0.9615 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.3541, allocations: 67.97 kB / 0.9616 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.3544, allocations: 128.6 kB / 0.9617 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.3548, allocations: 134.4 kB / 0.9619 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3548, allocations: 7.938 kB / 0.9619 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006722/0.3555, allocations: 266.6 kB / 0.9621 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.3555, allocations: 8 kB / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3555, allocations: 3.938 kB / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3556, allocations: 0 / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.3558, allocations: 39.91 kB / 0.9622 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.3559, allocations: 7.984 kB / 0.9622 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.3561, allocations: 23.98 kB / 0.9622 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.3562, allocations: 12 kB / 0.9622 GB, free: 12.37 MB / 0.7481 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.0003343/0.3565, allocations: 211.5 kB / 0.9624 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3566, allocations: 63.19 kB / 0.9625 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.3568, allocations: 57.05 kB / 0.9625 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3568, allocations: 0 / 0.9625 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3568, allocations: 0 / 0.9625 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3568, allocations: 0 / 0.9625 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000497/0.3573, allocations: 373.4 kB / 0.9629 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3573, allocations: 7.938 kB / 0.9629 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.463e-05/0.3574, allocations: 7.984 kB / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.3574, allocations: 4 kB / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.3574, allocations: 0 / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3575, allocations: 0 / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3575, allocations: 0 / 0.9629 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005277/0.358, allocations: 224.3 kB / 0.9631 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.3582, allocations: 132.4 kB / 0.9632 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.852e-05/0.3583, allocations: 8 kB / 0.9633 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.3585, allocations: 7.984 kB / 0.9633 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.496e-05/0.3586, allocations: 15.98 kB / 0.9633 GB, free: 11.17 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.3586, allocations: 8 kB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007782/0.3594, allocations: 467 kB / 0.9637 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3594, allocations: 0 / 0.9637 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005079/0.3599, allocations: 71.89 kB / 0.9638 GB, free: 10.64 MB / 0.7481 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.001547/0.3615, allocations: 442.5 kB / 0.9642 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005176/0.362, allocations: 151.9 kB / 0.9644 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.362, allocations: 0 / 0.9644 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.3622, allocations: 55.92 kB / 0.9644 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/0.363, allocations: 92.19 kB / 0.9645 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.3647, allocations: 0.8213 MB / 0.9653 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.3652, allocations: 0.8649 MB / 0.9662 GB, free: 8.332 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001525/0.3654, allocations: 50.95 kB / 0.9662 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.989e-05/0.3655, allocations: 31.42 kB / 0.9662 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of SimCode: time 5.51e-07/0.3655, allocations: 0 / 0.9662 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of Templates: time 0.009506/0.375, allocations: 4.359 MB / 0.9705 GB, free: 3.938 MB / 0.7481 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 -s gbode -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