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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.925/1.925, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001176/0.001176, allocations: 176.7 kB / 487 MB, free: 5.328 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.275/1.275, allocations: 221.3 MB / 0.7819 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009925/0.0009925, allocations: 95.17 kB / 0.9213 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.552e-06/6.562e-06, allocations: 0 / 1.066 GB, free: 164.9 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 142.3 MB / 1.205 GB, free: 22.84 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6068/0.8241, allocations: 155.3 MB / 1.357 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.8243, allocations: 95.83 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02807/0.8524, allocations: 12.33 MB / 1.369 GB, free: 5.465 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.61e-05/0.8525, allocations: 8 kB / 1.369 GB, free: 5.457 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.0006459/0.8531, allocations: 0.6632 MB / 1.37 GB, free: 4.777 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.8532, allocations: 17.03 kB / 1.37 GB, free: 4.762 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.967e-05/0.8532, allocations: 59.23 kB / 1.37 GB, free: 4.703 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005739/0.8538, allocations: 417 kB / 1.37 GB, free: 4.293 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.8539, allocations: 4 kB / 1.37 GB, free: 4.289 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.8539, allocations: 11.06 kB / 1.37 GB, free: 4.281 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001588/0.8541, allocations: 74.58 kB / 1.37 GB, free: 4.234 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.8542, allocations: 116.7 kB / 1.37 GB, free: 4.145 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.8543, allocations: 4 kB / 1.37 GB, free: 4.141 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.8543, allocations: 4 kB / 1.37 GB, free: 4.137 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.8543, allocations: 0 / 1.37 GB, free: 4.137 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007074/0.855, allocations: 0.6208 MB / 1.371 GB, free: 3.594 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.8552, allocations: 119 kB / 1.371 GB, free: 3.5 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.984e-05/0.8553, allocations: 42.45 kB / 1.371 GB, free: 3.469 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.8553, allocations: 4.219 kB / 1.371 GB, free: 3.465 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/0.8554, allocations: 98.66 kB / 1.371 GB, free: 3.375 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.8554, allocations: 3.094 kB / 1.371 GB, free: 3.375 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0002238/0.8557, allocations: 153.4 kB / 1.371 GB, free: 3.242 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.444e-05/0.8557, allocations: 55.41 kB / 1.371 GB, free: 3.176 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.8561, allocations: 0.5457 MB / 1.372 GB, free: 2.746 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.8562, allocations: 25.7 kB / 1.372 GB, free: 2.715 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.8562, allocations: 160 kB / 1.372 GB, free: 2.578 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.8563, allocations: 34.61 kB / 1.372 GB, free: 2.551 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/0.8563, allocations: 0 / 1.372 GB, free: 2.551 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.8563, allocations: 373.9 kB / 1.372 GB, free: 2.199 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.8565, allocations: 85.92 kB / 1.373 GB, free: 2.145 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.8566, allocations: 122.3 kB / 1.373 GB, free: 2.047 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.8568, allocations: 93.11 kB / 1.373 GB, free: 1.98 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.8568, allocations: 4.031 kB / 1.373 GB, free: 1.977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003742/0.8572, allocations: 277.6 kB / 1.373 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-06/0.8572, allocations: 8 kB / 1.373 GB, free: 1.746 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.8572, allocations: 0 / 1.373 GB, free: 1.746 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.8572, allocations: 0 / 1.373 GB, free: 1.746 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.8574, allocations: 39.59 kB / 1.373 GB, free: 1.711 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.8574, allocations: 4 kB / 1.373 GB, free: 1.707 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.8576, allocations: 35.86 kB / 1.373 GB, free: 1.672 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.8576, allocations: 8 kB / 1.373 GB, free: 1.664 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 ($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 () * 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 5.834e-05/0.8577, allocations: 121.1 kB / 1.373 GB, free: 1.543 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.8577, allocations: 55.25 kB / 1.373 GB, free: 1.488 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.858, allocations: 169.9 kB / 1.373 GB, free: 1.352 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.858, allocations: 4 kB / 1.373 GB, free: 1.348 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.858, allocations: 0 / 1.373 GB, free: 1.348 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.858, allocations: 7.922 kB / 1.373 GB, free: 1.34 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.8582, allocations: 337.8 kB / 1.374 GB, free: 1.035 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.8582, allocations: 0 / 1.374 GB, free: 1.035 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-05/0.8583, allocations: 8 kB / 1.374 GB, free: 1.027 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.8583, allocations: 7.984 kB / 1.374 GB, free: 1.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.8583, allocations: 0 / 1.374 GB, free: 1.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8583, allocations: 0 / 1.374 GB, free: 1.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8583, allocations: 5.781 kB / 1.374 GB, free: 1.016 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002575/0.8586, allocations: 236.7 kB / 1.374 GB, free: 0.8125 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-05/0.8587, allocations: 131.8 kB / 1.374 GB, free: 0.668 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.8587, allocations: 6.625 kB / 1.374 GB, free: 0.6641 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.8589, allocations: 20.05 kB / 1.374 GB, free: 0.6445 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.859, allocations: 27.58 kB / 1.374 GB, free: 0.6211 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.859, allocations: 4 kB / 1.374 GB, free: 0.6172 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.000293/0.8593, allocations: 402 kB / 1.375 GB, free: 324 kB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002669/0.8595, allocations: 75.28 kB / 1.375 GB, free: 252 kB / 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.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) * 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.0006521/0.8602, allocations: 359 kB / 1.375 GB, free: 15.98 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002407/0.8605, allocations: 149.3 kB / 1.375 GB, free: 15.88 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8605, allocations: 0 / 1.375 GB, free: 15.88 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 9.088e-05/0.8606, allocations: 57.67 kB / 1.375 GB, free: 15.84 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.8609, allocations: 61.19 kB / 1.375 GB, free: 15.79 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009421/0.8619, allocations: 0.5818 MB / 1.376 GB, free: 15.25 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004843/0.8624, allocations: 0.897 MB / 1.377 GB, free: 14.34 MB / 0.823 GB Notification: Performance of SimCode: time 2.1e-07/0.8624, allocations: 0 / 1.377 GB, free: 14.34 MB / 0.823 GB Notification: Performance of Templates: time 0.007813/0.8702, allocations: 3.555 MB / 1.38 GB, free: 10.83 MB / 0.823 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