Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.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.FilterPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filPow.PEleDem|filPow.PEle|filPow.assPow.assMesP.u|filPow.assPow.assMesDP.u",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.925/1.925, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001051/0.001051, allocations: 173.3 kB / 490.8 MB, free: 1.922 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.323/1.323, allocations: 221.3 MB / 0.7863 GB, free: 13.63 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.0009426/0.0009427, allocations: 83.55 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.794e-06/7.815e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2506, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6649/0.9156, allocations: 157.5 MB / 1.365 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.9159, allocations: 90.28 kB / 1.365 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03524/0.9511, allocations: 13.76 MB / 1.379 GB, free: 15.67 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.157e-05/0.9512, allocations: 9.031 kB / 1.379 GB, free: 15.67 MB / 0.823 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.001048/0.9523, allocations: 0.747 MB / 1.38 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.9523, allocations: 8.188 kB / 1.38 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.9525, allocations: 66.75 kB / 1.38 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007893/0.9533, allocations: 491.9 kB / 1.38 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.9533, allocations: 9.906 kB / 1.38 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.9534, allocations: 16.28 kB / 1.38 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002847/0.9536, allocations: 134.9 kB / 1.38 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.954, allocations: 166.7 kB / 1.381 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.954, allocations: 0 / 1.381 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.954, allocations: 4 kB / 1.381 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.954, allocations: 5.469 kB / 1.381 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.9552, allocations: 0.8358 MB / 1.381 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.9555, allocations: 166 kB / 1.381 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.9556, allocations: 59.45 kB / 1.382 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.9557, allocations: 7 kB / 1.382 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.9559, allocations: 140 kB / 1.382 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.9559, allocations: 0 / 1.382 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003525/0.9562, allocations: 199.6 kB / 1.382 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.873e-05/0.9563, allocations: 79.7 kB / 1.382 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000729/0.957, allocations: 0.5881 MB / 1.383 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.957, allocations: 34.48 kB / 1.383 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.9572, allocations: 181 kB / 1.383 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.9572, allocations: 51.17 kB / 1.383 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.9572, allocations: 0 / 1.383 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.9574, allocations: 373.2 kB / 1.383 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.9576, allocations: 103 kB / 1.383 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.9578, allocations: 150.5 kB / 1.383 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.9581, allocations: 109.8 kB / 1.383 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9581, allocations: 0 / 1.383 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005297/0.9586, allocations: 344.8 kB / 1.384 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.328e-05/0.9587, allocations: 184.4 kB / 1.384 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.9587, allocations: 0 / 1.384 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.9587, allocations: 2.5 kB / 1.384 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.959, allocations: 63.83 kB / 1.384 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.959, allocations: 1.25 kB / 1.384 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.9593, allocations: 48.81 kB / 1.384 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.9594, allocations: 20.47 kB / 1.384 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/0.9594, allocations: 3.625 kB / 1.384 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004632/0.9598, allocations: 243.5 kB / 1.384 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-06/0.9598, allocations: 1.281 kB / 1.384 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-06/0.9599, allocations: 1.312 kB / 1.384 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.9601, allocations: 47.59 kB / 1.384 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.9601, allocations: 9.203 kB / 1.384 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.9603, allocations: 40.3 kB / 1.384 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.9604, allocations: 16.2 kB / 1.384 GB, free: 28.68 MB / 0.8386 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 0.0001149/0.9605, allocations: 115.4 kB / 1.385 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.124e-05/0.9606, allocations: 61.41 kB / 1.385 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004/0.961, allocations: 211.7 kB / 1.385 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.961, allocations: 2.656 kB / 1.385 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.961, allocations: 0 / 1.385 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.961, allocations: 0 / 1.385 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.9614, allocations: 408.8 kB / 1.385 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.9614, allocations: 5.25 kB / 1.385 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.9616, allocations: 27.7 kB / 1.385 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.9616, allocations: 1.344 kB / 1.385 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.9616, allocations: 8.859 kB / 1.385 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.9616, allocations: 1.156 kB / 1.385 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.9616, allocations: 3.906 kB / 1.385 GB, free: 28.19 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004428/0.9621, allocations: 314.7 kB / 1.386 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.9622, allocations: 138.2 kB / 1.386 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.9623, allocations: 5.656 kB / 1.386 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.9625, allocations: 35.09 kB / 1.386 GB, free: 27.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.9626, allocations: 32.05 kB / 1.386 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.9626, allocations: 7.953 kB / 1.386 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0005036/0.9631, allocations: 432.6 kB / 1.386 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005631/0.9637, allocations: 141 kB / 1.386 GB, free: 27.75 MB / 0.8386 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.0007995/0.9645, allocations: 362.4 kB / 1.387 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005785/0.9651, allocations: 347.8 kB / 1.387 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.9651, allocations: 4.125 kB / 1.387 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.9652, allocations: 77.11 kB / 1.387 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.9657, allocations: 85.61 kB / 1.387 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.9672, allocations: 0.7032 MB / 1.388 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000552/0.9677, allocations: 0.9222 MB / 1.389 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/0.9677, allocations: 0 / 1.389 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of Templates: time 0.01274/0.9805, allocations: 6.65 MB / 1.395 GB, free: 23.21 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_FilterPower.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches