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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.374/2.374, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 190.9 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 223.1 MB / 0.7992 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 105 kB / 0.9396 GB, free: 2.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000471/0.0004714, allocations: 10.14 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3574, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.5746, allocations: 156.9 MB / 1.382 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5749, allocations: 87.95 kB / 1.383 GB, free: 8.277 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03498/0.6099, allocations: 12.83 MB / 1.395 GB, free: 11.32 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.837e-06/0.61, allocations: 0 / 1.395 GB, free: 11.32 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.622e-05/0.61, allocations: 8 kB / 1.395 GB, free: 11.32 MB / 0.9011 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.001529/0.6116, allocations: 0.7742 MB / 1.396 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/0.6116, allocations: 12.56 kB / 1.396 GB, free: 10.48 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.6118, allocations: 59.2 kB / 1.396 GB, free: 10.42 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008341/0.6126, allocations: 431.2 kB / 1.396 GB, free: 9.957 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.6127, allocations: 8.234 kB / 1.396 GB, free: 9.949 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.6127, allocations: 16 kB / 1.396 GB, free: 9.934 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.6131, allocations: 136.4 kB / 1.396 GB, free: 9.797 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.6131, allocations: 3.984 kB / 1.396 GB, free: 9.793 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.6131, allocations: 7.938 kB / 1.396 GB, free: 9.785 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.6131, allocations: 4 kB / 1.396 GB, free: 9.781 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.6133, allocations: 91.91 kB / 1.397 GB, free: 9.691 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.6145, allocations: 0.6486 MB / 1.397 GB, free: 8.992 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.6149, allocations: 146.6 kB / 1.397 GB, free: 8.84 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.615, allocations: 4 kB / 1.397 GB, free: 8.836 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.6152, allocations: 99.36 kB / 1.397 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=12): time 1.934e-06/0.6152, allocations: 0 / 1.397 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of matching and sorting (n=12): time 0.0004666/0.6157, allocations: 217 kB / 1.398 GB, free: 8.508 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.6157, allocations: 55.41 kB / 1.398 GB, free: 8.441 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000682/0.6164, allocations: 0.5726 MB / 1.398 GB, free: 7.859 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.6165, allocations: 37.7 kB / 1.398 GB, free: 7.816 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.6167, allocations: 256.3 kB / 1.399 GB, free: 7.562 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.6167, allocations: 39.53 kB / 1.399 GB, free: 7.523 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.606e-05/0.6168, allocations: 4 kB / 1.399 GB, free: 7.52 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.6169, allocations: 370.7 kB / 1.399 GB, free: 7.148 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.6171, allocations: 87.95 kB / 1.399 GB, free: 7.062 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.6173, allocations: 125.1 kB / 1.399 GB, free: 6.93 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.6175, allocations: 99.8 kB / 1.399 GB, free: 6.832 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.6175, allocations: 0 / 1.399 GB, free: 6.832 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00048/0.618, allocations: 288.1 kB / 1.399 GB, free: 6.547 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.618, allocations: 4.781 kB / 1.399 GB, free: 6.543 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.618, allocations: 4 kB / 1.4 GB, free: 6.539 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.618, allocations: 0 / 1.4 GB, free: 6.539 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.6183, allocations: 43.91 kB / 1.4 GB, free: 6.496 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.6183, allocations: 0 / 1.4 GB, free: 6.496 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.6185, allocations: 35.92 kB / 1.4 GB, free: 6.461 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.6185, allocations: 11.98 kB / 1.4 GB, free: 6.449 MB / 0.9011 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 ($whenCondition1,$PRE.PEleDem.tab.nextTimeEvent,assPow.assMesP.u,$PRE.assPow.maxPow.y,assPow.maxPow.y,$PRE.assPow.minPow.y,assPow.minPow.y,assPow.assMesDP.u,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002831/0.6188, allocations: 210.5 kB / 1.4 GB, free: 6.234 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/0.6189, allocations: 51.34 kB / 1.4 GB, free: 6.184 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003894/0.6193, allocations: 194.3 kB / 1.4 GB, free: 5.988 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.6193, allocations: 0 / 1.4 GB, free: 5.988 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.6193, allocations: 0 / 1.4 GB, free: 5.988 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.6193, allocations: 0 / 1.4 GB, free: 5.988 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.6197, allocations: 381.3 kB / 1.4 GB, free: 5.566 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6197, allocations: 0 / 1.4 GB, free: 5.566 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.571e-05/0.6198, allocations: 19.92 kB / 1.4 GB, free: 5.547 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.6198, allocations: 4 kB / 1.4 GB, free: 5.543 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.6198, allocations: 0 / 1.4 GB, free: 5.543 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.6198, allocations: 0 / 1.4 GB, free: 5.543 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6198, allocations: 3.938 kB / 1.4 GB, free: 5.539 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.6203, allocations: 268.4 kB / 1.401 GB, free: 5.258 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.6205, allocations: 132.4 kB / 1.401 GB, free: 5.109 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.853e-05/0.6205, allocations: 4 kB / 1.401 GB, free: 5.105 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.6207, allocations: 19.98 kB / 1.401 GB, free: 5.086 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.6207, allocations: 28 kB / 1.401 GB, free: 5.059 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.6208, allocations: 8 kB / 1.401 GB, free: 5.051 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004744/0.6212, allocations: 434.7 kB / 1.401 GB, free: 4.629 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6213, allocations: 0 / 1.401 GB, free: 4.629 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003666/0.6216, allocations: 75.83 kB / 1.401 GB, free: 4.555 MB / 0.9011 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.maxPow.y,assPow.minPow.y,assPow.assMesDP.u,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 (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.001257/0.6229, allocations: 465 kB / 1.402 GB, free: 4.254 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003214/0.6232, allocations: 147.9 kB / 1.402 GB, free: 4.109 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6232, allocations: 3.938 kB / 1.402 GB, free: 4.105 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.6234, allocations: 59.91 kB / 1.402 GB, free: 4.047 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.6238, allocations: 71.83 kB / 1.402 GB, free: 3.98 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.6251, allocations: 0.9447 MB / 1.403 GB, free: 3 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.6255, allocations: 0.8641 MB / 1.404 GB, free: 2.109 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001322/0.6257, allocations: 46.25 kB / 1.404 GB, free: 2.062 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/0.6258, allocations: 23.44 kB / 1.404 GB, free: 2.039 MB / 0.9011 GB Notification: Performance of SimCode: time 2.21e-07/0.6258, allocations: 0 / 1.404 GB, free: 2.039 MB / 0.9011 GB Notification: Performance of Templates: time 0.6161/1.242, allocations: 4.069 MB / 1.408 GB, free: 167 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches