Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.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.FilterPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filPow.PEleDem|filPow.PEle|filPow.assPow.assMesP.u|filPow.assPow.assMesDP.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filPow.PEleDem|filPow.PEle|filPow.assPow.assMesP.u|filPow.assPow.assMesDP.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower") [: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.9/1.9, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001028/0.001028, allocations: 181.3 kB / 487 MB, free: 5.359 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.22/1.22, allocations: 221.3 MB / 0.7819 GB, free: 1.328 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.0009978/0.0009976, allocations: 101.4 kB / 0.9213 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.272e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2014, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5598/0.7613, allocations: 156.7 MB / 1.358 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.7616, allocations: 89.83 kB / 1.358 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.03187/0.7935, allocations: 13.76 MB / 1.372 GB, free: 6.555 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.57e-05/0.7935, allocations: 12 kB / 1.372 GB, free: 6.543 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0008154/0.7943, allocations: 0.7413 MB / 1.373 GB, free: 5.785 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.7944, allocations: 8.688 kB / 1.373 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.7945, allocations: 70.59 kB / 1.373 GB, free: 5.711 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006544/0.7951, allocations: 487.3 kB / 1.373 GB, free: 5.266 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.7952, allocations: 8 kB / 1.373 GB, free: 5.258 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.7952, allocations: 12 kB / 1.373 GB, free: 5.246 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002379/0.7955, allocations: 133.1 kB / 1.373 GB, free: 5.168 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.7957, allocations: 173.4 kB / 1.373 GB, free: 5.035 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.7958, allocations: 3.938 kB / 1.373 GB, free: 5.031 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.7958, allocations: 3.188 kB / 1.373 GB, free: 5.031 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.7958, allocations: 4 kB / 1.373 GB, free: 5.027 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.7968, allocations: 0.8359 MB / 1.374 GB, free: 4.352 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.7971, allocations: 165.9 kB / 1.374 GB, free: 4.234 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.376e-05/0.7972, allocations: 65.41 kB / 1.374 GB, free: 4.191 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.7972, allocations: 4 kB / 1.374 GB, free: 4.188 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.7974, allocations: 136.3 kB / 1.375 GB, free: 4.066 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.7974, allocations: 0 / 1.375 GB, free: 4.066 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0003098/0.7977, allocations: 194.4 kB / 1.375 GB, free: 3.902 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.388e-05/0.7977, allocations: 80.86 kB / 1.375 GB, free: 3.809 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005309/0.7983, allocations: 0.5883 MB / 1.375 GB, free: 3.348 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.7983, allocations: 32.83 kB / 1.375 GB, free: 3.312 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.7984, allocations: 182.3 kB / 1.376 GB, free: 3.16 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.7984, allocations: 54.8 kB / 1.376 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.7984, allocations: 0 / 1.376 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.3e-05/0.7985, allocations: 377 kB / 1.376 GB, free: 2.762 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.7987, allocations: 103.7 kB / 1.376 GB, free: 2.699 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.7988, allocations: 146.5 kB / 1.376 GB, free: 2.586 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.7991, allocations: 116.3 kB / 1.376 GB, free: 2.508 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.7991, allocations: 0 / 1.376 GB, free: 2.508 MB / 0.8073 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004552/0.7995, allocations: 339.3 kB / 1.377 GB, free: 2.242 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.7996, allocations: 185.7 kB / 1.377 GB, free: 2.051 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7996, allocations: 3.984 kB / 1.377 GB, free: 2.047 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.7996, allocations: 4.031 kB / 1.377 GB, free: 2.043 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.7999, allocations: 63.33 kB / 1.377 GB, free: 1.984 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.7999, allocations: 4 kB / 1.377 GB, free: 1.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.8001, allocations: 43.88 kB / 1.377 GB, free: 1.938 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.8002, allocations: 8 kB / 1.377 GB, free: 1.93 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.738e-06/0.8002, allocations: 4 kB / 1.377 GB, free: 1.926 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003859/0.8006, allocations: 247.7 kB / 1.377 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-06/0.8006, allocations: 0 / 1.377 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-06/0.8006, allocations: 0 / 1.377 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.8008, allocations: 51.91 kB / 1.377 GB, free: 1.703 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.8008, allocations: 4 kB / 1.377 GB, free: 1.699 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.801, allocations: 43.84 kB / 1.377 GB, free: 1.656 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.8011, allocations: 11.44 kB / 1.377 GB, free: 1.648 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,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled,filPow.assPow.assMesP.u,$PRE.filPow.assPow.maxPow.y,filPow.assPow.maxPow.y,$PRE.filPow.assPow.minPow.y,filPow.assPow.minPow.y,filPow.assPow.assMesDP.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 7.192e-05/0.8011, allocations: 118.8 kB / 1.377 GB, free: 1.527 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.8012, allocations: 59.25 kB / 1.377 GB, free: 1.469 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003152/0.8015, allocations: 210.9 kB / 1.378 GB, free: 1.305 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.8015, allocations: 7.938 kB / 1.378 GB, free: 1.297 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.8015, allocations: 0 / 1.378 GB, free: 1.297 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.8015, allocations: 7.922 kB / 1.378 GB, free: 1.289 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.8018, allocations: 401.5 kB / 1.378 GB, free: 0.9492 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.8018, allocations: 0 / 1.378 GB, free: 0.9492 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.802, allocations: 39.84 kB / 1.378 GB, free: 0.9141 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.802, allocations: 0 / 1.378 GB, free: 0.9141 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.802, allocations: 7.906 kB / 1.378 GB, free: 0.9062 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.802, allocations: 4 kB / 1.378 GB, free: 0.9023 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.802, allocations: 0 / 1.378 GB, free: 0.9023 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003552/0.8024, allocations: 311.7 kB / 1.378 GB, free: 0.6523 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.8025, allocations: 144.2 kB / 1.379 GB, free: 0.4961 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.56e-05/0.8026, allocations: 7.438 kB / 1.379 GB, free: 0.4922 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.8028, allocations: 31.97 kB / 1.379 GB, free: 472 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.8028, allocations: 23.22 kB / 1.379 GB, free: 452 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.8029, allocations: 11.67 kB / 1.379 GB, free: 444 kB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0003456/0.8032, allocations: 434.1 kB / 1.379 GB, free: 116 kB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004484/0.8037, allocations: 138.7 kB / 1.379 GB, free: 15.97 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (filPow.assPow.demRat.x,filPow.dPLim.y) * Number of discrete variables: 7 ($whenCondition1,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled,filPow.assPow.assMesP.u,filPow.assPow.maxPow.y,filPow.assPow.minPow.y,filPow.assPow.assMesDP.u) * Number of discrete states: 4 (filPow.assPow.minPow.y,filPow.assPow.maxPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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.0007635/0.8044, allocations: 363.5 kB / 1.38 GB, free: 15.71 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000507/0.805, allocations: 346.3 kB / 1.38 GB, free: 15.48 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.805, allocations: 0 / 1.38 GB, free: 15.48 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.8051, allocations: 76.86 kB / 1.38 GB, free: 15.43 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.8056, allocations: 82.81 kB / 1.38 GB, free: 15.38 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.8068, allocations: 0.7009 MB / 1.381 GB, free: 14.73 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/0.8074, allocations: 0.9387 MB / 1.382 GB, free: 13.78 MB / 0.823 GB Notification: Performance of SimCode: time 2.9e-07/0.8074, allocations: 0 / 1.382 GB, free: 13.78 MB / 0.823 GB Notification: Performance of Templates: time 0.01232/0.8197, allocations: 6.663 MB / 1.388 GB, free: 7.199 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_FilterPower.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches