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.001144/0.001144, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001439/0.001439, allocations: 168.7 kB / 15.95 MB, free: 204 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.464/1.464, allocations: 223.3 MB / 240 MB, free: 5.426 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.561/2.561, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.000371, allocations: 12 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7828/0.7832, allocations: 142.4 MB / 0.9544 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00258/0.7858, allocations: 2.085 MB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002102/0.788, allocations: 1.456 MB / 0.9579 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.7882, allocations: 1.875 kB / 0.9579 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008248/0.789, allocations: 296 kB / 0.9582 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003948/0.7895, allocations: 179.3 kB / 0.9584 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.7901, allocations: 221 kB / 0.9586 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.7904, allocations: 346.6 kB / 0.9589 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.7906, allocations: 55.08 kB / 0.9589 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.7907, allocations: 141.8 kB / 0.9591 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.7909, allocations: 145.2 kB / 0.9592 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.791, allocations: 14.34 kB / 0.9592 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.7911, allocations: 62.73 kB / 0.9593 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.7912, allocations: 113.4 kB / 0.9594 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.207e-05/0.7913, allocations: 95.92 kB / 0.9595 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.7916, allocations: 371.4 kB / 0.9598 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.7917, allocations: 0 / 0.9598 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7917, allocations: 0 / 0.9598 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.7917, allocations: 0 / 0.9598 GB, free: 3.684 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.0008798/0.7926, allocations: 0.7676 MB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.7926, allocations: 9.625 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.17e-05/0.7927, allocations: 61.33 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.7931, allocations: 406.7 kB / 0.9611 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.7932, allocations: 9.781 kB / 0.9611 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.7932, allocations: 10.91 kB / 0.9611 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.7935, allocations: 145.9 kB / 0.9612 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.7935, allocations: 0 / 0.9612 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.7935, allocations: 6.078 kB / 0.9612 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.7935, allocations: 2.75 kB / 0.9612 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.7937, allocations: 74.14 kB / 0.9613 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007645/0.7945, allocations: 0.5835 MB / 0.9619 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.7947, allocations: 126.7 kB / 0.962 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.469e-05/0.7948, allocations: 46.69 kB / 0.962 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.7949, allocations: 2.25 kB / 0.962 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.7951, allocations: 115.9 kB / 0.9621 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.7951, allocations: 0 / 0.9621 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.00046/0.7956, allocations: 225.7 kB / 0.9624 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.7956, allocations: 79.3 kB / 0.9624 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006935/0.7963, allocations: 0.6882 MB / 0.9631 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.7963, allocations: 27.7 kB / 0.9631 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.7965, allocations: 263.6 kB / 0.9634 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.7965, allocations: 38.08 kB / 0.9634 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.7966, allocations: 9.438 kB / 0.9634 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.7967, allocations: 370.8 kB / 0.9638 GB, free: 496 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.7968, allocations: 74.36 kB / 0.9639 GB, free: 460 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.797, allocations: 122.9 kB / 0.964 GB, free: 368 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.7971, allocations: 75.02 kB / 0.964 GB, free: 336 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7971, allocations: 0 / 0.964 GB, free: 336 kB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004062/0.7975, allocations: 263.5 kB / 0.9643 GB, free: 196 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.7976, allocations: 8.25 kB / 0.9643 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.7976, allocations: 1.125 kB / 0.9643 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.7976, allocations: 2.562 kB / 0.9643 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.7978, allocations: 39.8 kB / 0.9643 GB, free: 180 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.7978, allocations: 3.984 kB / 0.9643 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.798, allocations: 32.45 kB / 0.9644 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.798, allocations: 7.516 kB / 0.9644 GB, free: 156 kB / 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 ($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.0002208/0.7982, allocations: 216.6 kB / 0.9646 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.7983, allocations: 59.14 kB / 0.9646 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.7984, allocations: 56.67 kB / 0.9647 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.7984, allocations: 6.234 kB / 0.9647 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7984, allocations: 0 / 0.9647 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.7984, allocations: 0 / 0.9647 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004331/0.7989, allocations: 374.4 kB / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7989, allocations: 0 / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.927e-05/0.7989, allocations: 11.38 kB / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.7989, allocations: 0 / 0.9651 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.799, allocations: 14.8 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.799, allocations: 0 / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.799, allocations: 1.312 kB / 0.9651 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.7994, allocations: 218.4 kB / 0.9653 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.7995, allocations: 133.4 kB / 0.9654 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.7996, allocations: 6.812 kB / 0.9654 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.7997, allocations: 16.45 kB / 0.9654 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.7998, allocations: 19.78 kB / 0.9655 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.7998, allocations: 4.875 kB / 0.9655 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006216/0.8004, allocations: 464.1 kB / 0.9659 GB, free: 15 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8004, allocations: 0 / 0.9659 GB, free: 15 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003682/0.8008, allocations: 75.77 kB / 0.966 GB, free: 14.98 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 (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.001138/0.802, allocations: 440.7 kB / 0.9664 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003853/0.8024, allocations: 152.2 kB / 0.9665 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.8024, allocations: 0 / 0.9665 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.8025, allocations: 56.3 kB / 0.9666 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.803, allocations: 85.25 kB / 0.9667 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.8044, allocations: 0.9178 MB / 0.9676 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005231/0.805, allocations: 0.8645 MB / 0.9684 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001569/0.8051, allocations: 50.39 kB / 0.9685 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.176e-05/0.8052, allocations: 29.98 kB / 0.9685 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.8052, allocations: 0 / 0.9685 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of Templates: time 0.009647/0.8149, allocations: 3.962 MB / 0.9724 GB, free: 11.26 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