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.001003/0.001003, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006643/0.006643, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.529/2.529, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005197/0.0005198, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7703/0.7709, allocations: 142.4 MB / 0.955 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002712/0.7736, allocations: 2.14 MB / 0.9571 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.7759, allocations: 1.537 MB / 0.9586 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.7761, allocations: 5.688 kB / 0.9586 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008773/0.777, allocations: 307.5 kB / 0.9589 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004375/0.7775, allocations: 195.9 kB / 0.9591 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006321/0.7781, allocations: 243.6 kB / 0.9593 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.7786, allocations: 374 kB / 0.9597 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.7788, allocations: 69.48 kB / 0.9598 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.779, allocations: 139.9 kB / 0.9599 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.7793, allocations: 155.3 kB / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.7793, allocations: 5.875 kB / 0.9601 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.7795, allocations: 67.16 kB / 0.9601 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.7797, allocations: 117 kB / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.7798, allocations: 198.8 kB / 0.9604 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.7803, allocations: 476 kB / 0.9609 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.7803, allocations: 4 kB / 0.9609 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7803, allocations: 3.938 kB / 0.9609 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.7803, allocations: 0 / 0.9609 GB, free: 3.344 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.001136/0.7815, allocations: 0.7541 MB / 0.9616 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.7815, allocations: 8.75 kB / 0.9616 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.7817, allocations: 63.31 kB / 0.9617 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.7822, allocations: 440.1 kB / 0.9621 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.7823, allocations: 12.28 kB / 0.9621 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.7823, allocations: 7.094 kB / 0.9621 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.7826, allocations: 138.2 kB / 0.9623 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.7826, allocations: 1.188 kB / 0.9623 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.7826, allocations: 5.125 kB / 0.9623 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.7826, allocations: 6.281 kB / 0.9623 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.7828, allocations: 66.91 kB / 0.9623 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008829/0.7837, allocations: 0.5763 MB / 0.9629 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.784, allocations: 131.2 kB / 0.963 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.7841, allocations: 43.06 kB / 0.9631 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.7842, allocations: 6.219 kB / 0.9631 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.7844, allocations: 124.5 kB / 0.9632 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.974e-06/0.7844, allocations: 0 / 0.9632 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0005607/0.785, allocations: 230.8 kB / 0.9634 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.785, allocations: 79.11 kB / 0.9635 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008118/0.7858, allocations: 0.6846 MB / 0.9642 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.7859, allocations: 32.86 kB / 0.9642 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.786, allocations: 263.6 kB / 0.9644 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.7861, allocations: 45.41 kB / 0.9645 GB, free: 496 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.7861, allocations: 31.67 kB / 0.9645 GB, free: 468 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.7862, allocations: 366.8 kB / 0.9649 GB, free: 108 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.7864, allocations: 75.92 kB / 0.9649 GB, free: 72 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.7866, allocations: 125.6 kB / 0.965 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.7868, allocations: 134.4 kB / 0.9652 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.7869, allocations: 3.938 kB / 0.9652 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005144/0.7874, allocations: 264.3 kB / 0.9654 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.7874, allocations: 5.25 kB / 0.9654 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.7874, allocations: 0 / 0.9654 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.7874, allocations: 2 kB / 0.9654 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.7876, allocations: 42.42 kB / 0.9655 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.7876, allocations: 2.562 kB / 0.9655 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.7878, allocations: 29.08 kB / 0.9655 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.7879, allocations: 10 kB / 0.9655 GB, free: 15.73 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.0002461/0.7881, allocations: 214.8 kB / 0.9657 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.031e-05/0.7882, allocations: 64.36 kB / 0.9658 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.7883, allocations: 61.58 kB / 0.9658 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.7884, allocations: 2.375 kB / 0.9658 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.7884, allocations: 0 / 0.9658 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7884, allocations: 0 / 0.9658 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.7888, allocations: 367 kB / 0.9662 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.7888, allocations: 7.875 kB / 0.9662 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.7888, allocations: 7 kB / 0.9662 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.7888, allocations: 0 / 0.9662 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.7889, allocations: 10.02 kB / 0.9662 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.7889, allocations: 5 kB / 0.9662 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7889, allocations: 0 / 0.9662 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.7893, allocations: 224.3 kB / 0.9664 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.7894, allocations: 137.7 kB / 0.9666 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.7895, allocations: 6.188 kB / 0.9666 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.7896, allocations: 13.42 kB / 0.9666 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.7897, allocations: 15.08 kB / 0.9666 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.7897, allocations: 8.953 kB / 0.9666 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006325/0.7904, allocations: 473.7 kB / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7904, allocations: 3.938 kB / 0.9671 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003614/0.7908, allocations: 68.22 kB / 0.9671 GB, free: 14.55 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.001077/0.7918, allocations: 425.6 kB / 0.9675 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003828/0.7922, allocations: 153.2 kB / 0.9677 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.7922, allocations: 4.125 kB / 0.9677 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.7924, allocations: 52.73 kB / 0.9677 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.7929, allocations: 86.56 kB / 0.9678 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.7945, allocations: 0.9742 MB / 0.9688 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.795, allocations: 0.8643 MB / 0.9696 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000162/0.7952, allocations: 50.38 kB / 0.9697 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.161e-05/0.7953, allocations: 29.62 kB / 0.9697 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of SimCode: time 3.6e-07/0.7953, allocations: 1.5 kB / 0.9697 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of Templates: time 0.01074/0.806, allocations: 4.079 MB / 0.9737 GB, free: 10.73 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