Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.394/2.394, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001311/0.001311, allocations: 177 kB / 498.1 MB, free: 5.727 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.716/1.716, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.001101/0.001101, allocations: 94.38 kB / 0.9346 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000396/0.0003964, allocations: 11.12 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3958, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2132/0.6091, allocations: 156.1 MB / 1.375 GB, free: 5.941 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.6094, allocations: 95.94 kB / 1.375 GB, free: 5.848 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03425/0.6436, allocations: 12.83 MB / 1.388 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.216e-06/0.6437, allocations: 4 kB / 1.388 GB, free: 8.898 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.342e-05/0.6438, allocations: 12.12 kB / 1.388 GB, free: 8.887 MB / 0.8855 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.00177/0.6455, allocations: 0.7664 MB / 1.389 GB, free: 8.07 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.6456, allocations: 16.02 kB / 1.389 GB, free: 8.055 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.6458, allocations: 63.2 kB / 1.389 GB, free: 7.992 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.6469, allocations: 423.2 kB / 1.389 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.6469, allocations: 20.16 kB / 1.389 GB, free: 7.52 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.647, allocations: 12 kB / 1.389 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.6473, allocations: 127.2 kB / 1.389 GB, free: 7.383 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.6474, allocations: 7.938 kB / 1.389 GB, free: 7.375 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.6474, allocations: 8 kB / 1.389 GB, free: 7.367 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.6474, allocations: 4 kB / 1.389 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.6476, allocations: 91.91 kB / 1.389 GB, free: 7.273 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.649, allocations: 0.6563 MB / 1.39 GB, free: 6.566 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.6494, allocations: 142.6 kB / 1.39 GB, free: 6.418 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.6495, allocations: 0 / 1.39 GB, free: 6.418 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.6497, allocations: 99.36 kB / 1.39 GB, free: 6.309 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 2.625e-06/0.6497, allocations: 0 / 1.39 GB, free: 6.309 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12): time 0.0005461/0.6503, allocations: 213.1 kB / 1.391 GB, free: 6.094 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.6503, allocations: 55.41 kB / 1.391 GB, free: 6.027 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000882/0.6512, allocations: 0.5764 MB / 1.391 GB, free: 5.441 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.6513, allocations: 33.7 kB / 1.391 GB, free: 5.402 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.6515, allocations: 264.4 kB / 1.391 GB, free: 5.137 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/0.6516, allocations: 31.55 kB / 1.391 GB, free: 5.105 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.6516, allocations: 8 kB / 1.391 GB, free: 5.098 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002061/0.6518, allocations: 370.7 kB / 1.392 GB, free: 4.727 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.652, allocations: 91.89 kB / 1.392 GB, free: 4.637 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.6522, allocations: 127.4 kB / 1.392 GB, free: 4.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.6524, allocations: 87.84 kB / 1.392 GB, free: 4.414 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.6524, allocations: 0 / 1.392 GB, free: 4.414 MB / 0.8855 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005191/0.653, allocations: 294.5 kB / 1.392 GB, free: 4.121 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.653, allocations: 4 kB / 1.392 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.653, allocations: 0 / 1.392 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.653, allocations: 0 / 1.392 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.6532, allocations: 43.97 kB / 1.392 GB, free: 4.074 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.6533, allocations: 4 kB / 1.392 GB, free: 4.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.6535, allocations: 27.89 kB / 1.392 GB, free: 4.043 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.6535, allocations: 8 kB / 1.392 GB, free: 4.035 MB / 0.8855 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.0002818/0.6538, allocations: 217.7 kB / 1.393 GB, free: 3.812 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.6539, allocations: 51.34 kB / 1.393 GB, free: 3.762 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003981/0.6543, allocations: 186.3 kB / 1.393 GB, free: 3.574 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.6543, allocations: 0 / 1.393 GB, free: 3.574 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6543, allocations: 0 / 1.393 GB, free: 3.574 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.6544, allocations: 7.938 kB / 1.393 GB, free: 3.566 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.6548, allocations: 385.3 kB / 1.393 GB, free: 3.141 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.6548, allocations: 0 / 1.393 GB, free: 3.141 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.6549, allocations: 15.94 kB / 1.393 GB, free: 3.125 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.6549, allocations: 0 / 1.393 GB, free: 3.125 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.6549, allocations: 7.984 kB / 1.393 GB, free: 3.117 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.6549, allocations: 4 kB / 1.393 GB, free: 3.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6549, allocations: 0 / 1.393 GB, free: 3.113 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004824/0.6554, allocations: 268.2 kB / 1.394 GB, free: 2.832 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.6556, allocations: 128.5 kB / 1.394 GB, free: 2.688 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/0.6557, allocations: 7.984 kB / 1.394 GB, free: 2.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.6558, allocations: 20.05 kB / 1.394 GB, free: 2.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.6559, allocations: 27.91 kB / 1.394 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.6559, allocations: 3.984 kB / 1.394 GB, free: 2.629 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0005478/0.6565, allocations: 430.8 kB / 1.394 GB, free: 2.211 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.31e-07/0.6565, allocations: 0 / 1.394 GB, free: 2.211 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003911/0.6569, allocations: 79.92 kB / 1.394 GB, free: 2.133 MB / 0.8855 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.001222/0.6581, allocations: 462.9 kB / 1.395 GB, free: 1.832 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003738/0.6585, allocations: 155.7 kB / 1.395 GB, free: 1.68 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6585, allocations: 0 / 1.395 GB, free: 1.68 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.6586, allocations: 55.92 kB / 1.395 GB, free: 1.625 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.6591, allocations: 81.23 kB / 1.395 GB, free: 1.551 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.6607, allocations: 0.9407 MB / 1.396 GB, free: 0.5742 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005929/0.6613, allocations: 0.8652 MB / 1.397 GB, free: 15.68 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.6615, allocations: 38.27 kB / 1.397 GB, free: 15.64 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.237e-05/0.6616, allocations: 31.42 kB / 1.397 GB, free: 15.61 MB / 0.9011 GB Notification: Performance of SimCode: time 6.01e-07/0.6616, allocations: 3.938 kB / 1.397 GB, free: 15.61 MB / 0.9011 GB Notification: Performance of Templates: time 0.01022/0.6718, allocations: 4.061 MB / 1.401 GB, free: 11.58 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches