Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000967/0.000967, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 177.4 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9687/0.9687, allocations: 177.2 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.447/2.447, allocations: 438.8 MB / 0.6827 GB, free: 13.54 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.757e-05, allocations: 8.5 kB / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004379/0.004407, allocations: 2.435 MB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.003014/0.007421, allocations: 1.653 MB / 0.8426 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.007662, allocations: 11.94 kB / 0.8426 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0007265/0.008389, allocations: 215.3 kB / 0.8428 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0005903/0.008979, allocations: 210.8 kB / 0.843 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.009449, allocations: 167.4 kB / 0.8432 GB, free: 9.43 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.000528/0.009977, allocations: 362.8 kB / 0.8435 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.01018, allocations: 66.84 kB / 0.8436 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008733/0.01106, allocations: 246.9 kB / 0.8438 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.01133, allocations: 123.6 kB / 0.8439 GB, free: 8.672 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.01139, allocations: 20 kB / 0.844 GB, free: 8.652 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.01159, allocations: 67.84 kB / 0.844 GB, free: 8.586 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.01175, allocations: 123.5 kB / 0.8441 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.01187, allocations: 99.58 kB / 0.8442 GB, free: 8.367 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.01245, allocations: 330.6 kB / 0.8446 GB, free: 8.043 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.01245, allocations: 0 / 0.8446 GB, free: 8.043 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.232e-06/0.01245, allocations: 0 / 0.8446 GB, free: 8.043 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.01246, allocations: 0 / 0.8446 GB, free: 8.043 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001018/0.01348, allocations: 0.7196 MB / 0.8453 GB, free: 7.297 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.01351, allocations: 12.56 kB / 0.8453 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.282e-05/0.01361, allocations: 44.89 kB / 0.8453 GB, free: 7.242 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.01408, allocations: 334.5 kB / 0.8456 GB, free: 6.891 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.0141, allocations: 12.31 kB / 0.8456 GB, free: 6.879 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.01415, allocations: 20.36 kB / 0.8457 GB, free: 6.859 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.01438, allocations: 161.1 kB / 0.8458 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.01439, allocations: 3.938 kB / 0.8458 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.01441, allocations: 8 kB / 0.8458 GB, free: 6.668 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.01441, allocations: 4 kB / 0.8458 GB, free: 6.664 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.26e-05/0.01451, allocations: 35.95 kB / 0.8459 GB, free: 6.629 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007019/0.01521, allocations: 325.5 kB / 0.8462 GB, free: 6.293 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.0154, allocations: 113.3 kB / 0.8463 GB, free: 6.172 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.922e-05/0.01544, allocations: 24.84 kB / 0.8463 GB, free: 6.145 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.01546, allocations: 8 kB / 0.8463 GB, free: 6.137 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.01562, allocations: 133.6 kB / 0.8464 GB, free: 5.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 2.735e-06/0.01562, allocations: 3.938 kB / 0.8464 GB, free: 5.977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0002197/0.01584, allocations: 109.5 kB / 0.8465 GB, free: 5.863 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.01587, allocations: 55.41 kB / 0.8466 GB, free: 5.797 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.01641, allocations: 0.5106 MB / 0.8471 GB, free: 5.273 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.01645, allocations: 29.7 kB / 0.8471 GB, free: 5.238 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.01657, allocations: 177.6 kB / 0.8473 GB, free: 5.062 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.01662, allocations: 35.72 kB / 0.8473 GB, free: 5.027 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.01671, allocations: 61.61 kB / 0.8474 GB, free: 4.961 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.01684, allocations: 370.7 kB / 0.8477 GB, free: 4.59 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.196e-05/0.0169, allocations: 22.81 kB / 0.8478 GB, free: 4.566 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.228e-05/0.01699, allocations: 102.8 kB / 0.8479 GB, free: 4.441 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.0171, allocations: 71.25 kB / 0.8479 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.0171, allocations: 0 / 0.8479 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002218/0.01733, allocations: 138.5 kB / 0.8481 GB, free: 4.223 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.01734, allocations: 8 kB / 0.8481 GB, free: 4.215 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.01735, allocations: 3.938 kB / 0.8481 GB, free: 4.211 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.01737, allocations: 4 kB / 0.8481 GB, free: 4.207 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.01752, allocations: 35.98 kB / 0.8481 GB, free: 4.172 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.01752, allocations: 4 kB / 0.8481 GB, free: 4.168 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.01764, allocations: 15.92 kB / 0.8481 GB, free: 4.152 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.01767, allocations: 8 kB / 0.8481 GB, free: 4.145 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,assPow.minPow.y,$PRE.assPow.minPow.y,assPow.maxPow.y,$PRE.assPow.maxPow.y,assPow.assMesDP.u,assPow.assMesP.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001388/0.0178, allocations: 132.6 kB / 0.8483 GB, free: 4.004 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.01785, allocations: 31.97 kB / 0.8483 GB, free: 3.973 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.01801, allocations: 118.5 kB / 0.8484 GB, free: 3.852 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.01801, allocations: 7.938 kB / 0.8484 GB, free: 3.844 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.01801, allocations: 3.938 kB / 0.8484 GB, free: 3.84 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01802, allocations: 0 / 0.8484 GB, free: 3.84 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.01818, allocations: 205.5 kB / 0.8486 GB, free: 3.621 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001868/0.01836, allocations: 4 kB / 0.8486 GB, free: 3.617 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.01841, allocations: 8 kB / 0.8486 GB, free: 3.609 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.01841, allocations: 0 / 0.8486 GB, free: 3.609 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.01842, allocations: 4 kB / 0.8486 GB, free: 3.605 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.01843, allocations: 0 / 0.8486 GB, free: 3.605 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01843, allocations: 0 / 0.8486 GB, free: 3.605 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.01859, allocations: 158 kB / 0.8488 GB, free: 3.434 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.01863, allocations: 51.64 kB / 0.8488 GB, free: 3.383 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.01866, allocations: 8 kB / 0.8488 GB, free: 3.375 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.285e-05/0.01871, allocations: 7.984 kB / 0.8488 GB, free: 3.367 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.01876, allocations: 19.97 kB / 0.8489 GB, free: 3.348 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.01878, allocations: 11.92 kB / 0.8489 GB, free: 3.336 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.000156/0.01893, allocations: 224.6 kB / 0.8491 GB, free: 3.121 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.01893, allocations: 0 / 0.8491 GB, free: 3.121 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001745/0.01911, allocations: 63.89 kB / 0.8492 GB, free: 3.059 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00116/0.02027, allocations: 0.521 MB / 0.8497 GB, free: 2.766 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001343/0.0204, allocations: 80.2 kB / 0.8497 GB, free: 2.688 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.02041, allocations: 8 kB / 0.8497 GB, free: 2.68 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.31e-05/0.02046, allocations: 40.77 kB / 0.8498 GB, free: 2.637 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.02069, allocations: 66.95 kB / 0.8498 GB, free: 2.566 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009728/0.02166, allocations: 0.7337 MB / 0.8506 GB, free: 1.801 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.213e-05/0.02174, allocations: 140.2 kB / 0.8507 GB, free: 1.645 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 8.122e-05/0.02182, allocations: 34.95 kB / 0.8507 GB, free: 1.609 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.02196, allocations: 103.3 kB / 0.8508 GB, free: 1.508 MB / 0.8073 GB Notification: Performance of SimCode: time 7.01e-07/0.02196, allocations: 4 kB / 0.8508 GB, free: 1.504 MB / 0.8073 GB Notification: Performance of Templates: time 0.007865/0.02982, allocations: 4.484 MB / 0.8552 GB, free: 13.1 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.448966954834759]