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.001673/0.001673, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001811/0.001811, allocations: 195.6 kB / 16.14 MB, free: 6.711 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.438/1.438, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.472/2.472, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 71.89 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6709/0.6722, allocations: 140.3 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00536/0.6776, allocations: 2.506 MB / 0.9514 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002994/0.6806, allocations: 1.549 MB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003893/0.681, allocations: 2.031 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.6823, allocations: 312.6 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005906/0.6829, allocations: 195.3 kB / 0.9534 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007955/0.6837, allocations: 239.6 kB / 0.9536 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.6842, allocations: 369.6 kB / 0.9539 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.6844, allocations: 73.7 kB / 0.954 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.6846, allocations: 141.5 kB / 0.9541 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.6848, allocations: 168 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.6849, allocations: 8.312 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.6851, allocations: 65.66 kB / 0.9544 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.6853, allocations: 129.4 kB / 0.9545 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.6855, allocations: 188.2 kB / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005346/0.686, allocations: 478 kB / 0.9551 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.686, allocations: 0 / 0.9551 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.62e-07/0.686, allocations: 0 / 0.9551 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.686, allocations: 0 / 0.9551 GB, free: 4.484 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.001534/0.6876, allocations: 0.8321 MB / 0.9559 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/0.6876, allocations: 14.31 kB / 0.956 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.6878, allocations: 62.89 kB / 0.956 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006811/0.6885, allocations: 431.5 kB / 0.9564 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.6886, allocations: 12.44 kB / 0.9564 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.6886, allocations: 8.188 kB / 0.9565 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.6889, allocations: 142.2 kB / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.6889, allocations: 0 / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.689, allocations: 5.812 kB / 0.9566 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.689, allocations: 13.3 kB / 0.9566 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.6892, allocations: 67.77 kB / 0.9567 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009693/0.6902, allocations: 0.5756 MB / 0.9572 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.6905, allocations: 123.4 kB / 0.9574 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.6906, allocations: 50.83 kB / 0.9574 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.6907, allocations: 2.75 kB / 0.9574 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.6909, allocations: 116.3 kB / 0.9575 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.6909, allocations: 0 / 0.9575 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0005654/0.6915, allocations: 229.6 kB / 0.9577 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.6916, allocations: 82.45 kB / 0.9578 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.6925, allocations: 0.6851 MB / 0.9585 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.6925, allocations: 32.77 kB / 0.9585 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.6927, allocations: 260.2 kB / 0.9588 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.329e-05/0.6928, allocations: 37.56 kB / 0.9588 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.6929, allocations: 63.38 kB / 0.9589 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.693, allocations: 367.5 kB / 0.9592 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.6932, allocations: 71.19 kB / 0.9593 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.6934, allocations: 121 kB / 0.9594 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.6936, allocations: 138.8 kB / 0.9595 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.6937, allocations: 5 kB / 0.9595 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00046/0.6941, allocations: 264.2 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.6942, allocations: 5.438 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.6942, allocations: 1.125 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.6942, allocations: 2.156 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.6944, allocations: 42.2 kB / 0.9598 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.6944, allocations: 10.14 kB / 0.9598 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.6946, allocations: 28.95 kB / 0.9599 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.6946, allocations: 11.06 kB / 0.9599 GB, free: 0.7891 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.000219/0.6948, allocations: 209.9 kB / 0.9601 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.6949, allocations: 60.94 kB / 0.9601 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.695, allocations: 61.78 kB / 0.9602 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.695, allocations: 1.031 kB / 0.9602 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.6951, allocations: 5.312 kB / 0.9602 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.6951, allocations: 0 / 0.9602 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.6955, allocations: 361.8 kB / 0.9605 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.6955, allocations: 5.094 kB / 0.9605 GB, free: 224 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.015e-05/0.6955, allocations: 6.125 kB / 0.9606 GB, free: 224 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.6956, allocations: 1.469 kB / 0.9606 GB, free: 224 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.6956, allocations: 9.141 kB / 0.9606 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.6956, allocations: 1.125 kB / 0.9606 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.6956, allocations: 0 / 0.9606 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003831/0.696, allocations: 228.5 kB / 0.9608 GB, free: 60 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.6961, allocations: 135.8 kB / 0.9609 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.6962, allocations: 2.312 kB / 0.9609 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.6963, allocations: 14.45 kB / 0.9609 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.6964, allocations: 15.5 kB / 0.9609 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.6964, allocations: 9.281 kB / 0.961 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005603/0.697, allocations: 465.6 kB / 0.9614 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.41e-07/0.697, allocations: 4 kB / 0.9614 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003634/0.6974, allocations: 68.33 kB / 0.9615 GB, free: 15.63 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.001335/0.6987, allocations: 430.1 kB / 0.9619 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004785/0.6992, allocations: 151.4 kB / 0.962 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.6992, allocations: 1.125 kB / 0.962 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.6994, allocations: 60.69 kB / 0.9621 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006199/0.7, allocations: 88.84 kB / 0.9622 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.7015, allocations: 0.9559 MB / 0.9631 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.7021, allocations: 0.8604 MB / 0.9639 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001765/0.7022, allocations: 50.31 kB / 0.964 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.764e-05/0.7023, allocations: 30.14 kB / 0.964 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.7023, allocations: 0 / 0.964 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of Templates: time 0.01028/0.7126, allocations: 4.128 MB / 0.968 GB, free: 11.8 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