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.001648/0.001647, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001867, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.505/2.505, allocations: 390.2 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 0.8125 GB, free: 14.49 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.799/0.8003, allocations: 140.4 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005147/0.8055, allocations: 2.46 MB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00225/0.8078, allocations: 1.57 MB / 0.9535 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.808, allocations: 3.625 kB / 0.9535 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008474/0.8088, allocations: 331.3 kB / 0.9538 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.8092, allocations: 212.9 kB / 0.954 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.8099, allocations: 271.8 kB / 0.9543 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.8103, allocations: 380.9 kB / 0.9547 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.8104, allocations: 71.72 kB / 0.9547 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.8106, allocations: 160.8 kB / 0.9549 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.8108, allocations: 168.5 kB / 0.955 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.621e-05/0.8109, allocations: 18.09 kB / 0.9551 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.8111, allocations: 76.61 kB / 0.9551 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.8112, allocations: 128.5 kB / 0.9553 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.8114, allocations: 189.8 kB / 0.9554 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.8118, allocations: 0.489 MB / 0.9559 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.8119, allocations: 1.281 kB / 0.9559 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8119, allocations: 0 / 0.9559 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.8119, allocations: 0 / 0.9559 GB, free: 4.395 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.001029/0.8129, allocations: 0.8364 MB / 0.9567 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.8129, allocations: 8.906 kB / 0.9567 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.8131, allocations: 59.34 kB / 0.9568 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.8135, allocations: 431.4 kB / 0.9572 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.8136, allocations: 12.41 kB / 0.9572 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.8136, allocations: 11.66 kB / 0.9572 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.8139, allocations: 142.6 kB / 0.9574 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.8139, allocations: 0 / 0.9574 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.8139, allocations: 1.5 kB / 0.9574 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.8139, allocations: 5.375 kB / 0.9574 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.8141, allocations: 75.61 kB / 0.9574 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007794/0.8149, allocations: 0.5713 MB / 0.958 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.8152, allocations: 120.4 kB / 0.9581 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.8153, allocations: 47.23 kB / 0.9582 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.8153, allocations: 9.062 kB / 0.9582 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.8156, allocations: 118.5 kB / 0.9583 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.8156, allocations: 0 / 0.9583 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004916/0.8161, allocations: 235 kB / 0.9585 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.8161, allocations: 78.48 kB / 0.9586 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.8168, allocations: 0.6886 MB / 0.9593 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.8169, allocations: 32.73 kB / 0.9593 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.8171, allocations: 267.5 kB / 0.9595 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.8171, allocations: 29.86 kB / 0.9596 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.309e-05/0.8172, allocations: 59.72 kB / 0.9596 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.8173, allocations: 367.1 kB / 0.96 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.8174, allocations: 79.61 kB / 0.9601 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.8176, allocations: 124.6 kB / 0.9602 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.8178, allocations: 131.2 kB / 0.9603 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.8179, allocations: 9.094 kB / 0.9603 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004166/0.8183, allocations: 264 kB / 0.9606 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.8183, allocations: 9.312 kB / 0.9606 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.8183, allocations: 5 kB / 0.9606 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.8183, allocations: 2.25 kB / 0.9606 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.8185, allocations: 30.23 kB / 0.9606 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.8185, allocations: 2.562 kB / 0.9606 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.8187, allocations: 29.2 kB / 0.9606 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.8187, allocations: 10.06 kB / 0.9606 GB, free: 0.7109 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.0001885/0.8189, allocations: 207 kB / 0.9608 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.569e-05/0.819, allocations: 68.73 kB / 0.9609 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.329e-05/0.8191, allocations: 57.3 kB / 0.961 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.8191, allocations: 2.031 kB / 0.961 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.8191, allocations: 0 / 0.961 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.8191, allocations: 0 / 0.961 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002873/0.8194, allocations: 370.3 kB / 0.9613 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.8194, allocations: 5.344 kB / 0.9613 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.328e-05/0.8194, allocations: 13.5 kB / 0.9613 GB, free: 132 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.8194, allocations: 1.344 kB / 0.9613 GB, free: 132 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.8195, allocations: 5.391 kB / 0.9613 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.8195, allocations: 5.125 kB / 0.9613 GB, free: 124 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8195, allocations: 0 / 0.9613 GB, free: 124 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.8199, allocations: 225.7 kB / 0.9616 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.82, allocations: 127.6 kB / 0.9617 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.464e-05/0.82, allocations: 6.562 kB / 0.9617 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.8202, allocations: 9.984 kB / 0.9617 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.8202, allocations: 24.81 kB / 0.9617 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.8202, allocations: 7.75 kB / 0.9617 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005025/0.8208, allocations: 469.5 kB / 0.9622 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8208, allocations: 1.344 kB / 0.9622 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003126/0.8211, allocations: 70.08 kB / 0.9622 GB, free: 15.54 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.0009885/0.8221, allocations: 417.7 kB / 0.9626 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003843/0.8225, allocations: 162.2 kB / 0.9628 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8225, allocations: 3.938 kB / 0.9628 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.8226, allocations: 60.67 kB / 0.9629 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.8231, allocations: 104.9 kB / 0.963 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.8244, allocations: 0.8392 MB / 0.9638 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.8249, allocations: 0.871 MB / 0.9646 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001346/0.8251, allocations: 43.39 kB / 0.9647 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.589e-05/0.8252, allocations: 33.95 kB / 0.9647 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.8252, allocations: 4 kB / 0.9647 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of Templates: time 0.009493/0.8347, allocations: 4.347 MB / 0.969 GB, free: 11.7 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