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") [: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.931/1.931, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001052/0.001052, allocations: 185.2 kB / 490.8 MB, free: 1.945 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.27/1.27, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.00089/0.0008902, allocations: 84.73 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.685e-06/7.695e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2304, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6487/0.8791, allocations: 156.1 MB / 1.364 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.8794, allocations: 94.06 kB / 1.364 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03237/0.9118, allocations: 12.34 MB / 1.376 GB, free: 16.01 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.078e-05/0.9119, allocations: 8.062 kB / 1.376 GB, free: 16.01 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001022/0.9129, allocations: 0.6626 MB / 1.377 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.913, allocations: 8.25 kB / 1.377 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.9131, allocations: 58.84 kB / 1.377 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007725/0.9139, allocations: 421 kB / 1.377 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.9139, allocations: 12.39 kB / 1.377 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.914, allocations: 11.97 kB / 1.377 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002014/0.9142, allocations: 76.88 kB / 1.377 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.9144, allocations: 115.6 kB / 1.377 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.9144, allocations: 0 / 1.377 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.9145, allocations: 5.297 kB / 1.377 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.9145, allocations: 3.266 kB / 1.377 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.9155, allocations: 0.6136 MB / 1.378 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.9158, allocations: 119.8 kB / 1.378 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.626e-05/0.9159, allocations: 46.53 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.9159, allocations: 0.9688 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.9161, allocations: 94.3 kB / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.9161, allocations: 0 / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0003333/0.9164, allocations: 152.7 kB / 1.378 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.9165, allocations: 57.28 kB / 1.379 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007894/0.9173, allocations: 0.5473 MB / 1.379 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.9173, allocations: 27.52 kB / 1.379 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.9175, allocations: 165.6 kB / 1.379 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.9175, allocations: 32.09 kB / 1.379 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.9175, allocations: 1.625 kB / 1.379 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.9177, allocations: 365.9 kB / 1.38 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.9179, allocations: 87.33 kB / 1.38 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.918, allocations: 120.8 kB / 1.38 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.9183, allocations: 93.75 kB / 1.38 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.9183, allocations: 0 / 1.38 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005054/0.9188, allocations: 281.8 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.9189, allocations: 4.719 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.9189, allocations: 5.312 kB / 1.38 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.9189, allocations: 6.016 kB / 1.38 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.9191, allocations: 37.48 kB / 1.38 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.9191, allocations: 5.906 kB / 1.38 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.9193, allocations: 35.48 kB / 1.38 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.9194, allocations: 8.25 kB / 1.38 GB, free: 29.98 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,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 9.715e-05/0.9195, allocations: 112.4 kB / 1.38 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.08e-05/0.9196, allocations: 55.09 kB / 1.38 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003257/0.9199, allocations: 172.9 kB / 1.381 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.9199, allocations: 2.031 kB / 1.381 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.9199, allocations: 0 / 1.381 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.9199, allocations: 2.062 kB / 1.381 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.9203, allocations: 341.5 kB / 1.381 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.9204, allocations: 4.812 kB / 1.381 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.89e-05/0.9204, allocations: 13.95 kB / 1.381 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.9205, allocations: 0.9688 kB / 1.381 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.9205, allocations: 7.281 kB / 1.381 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.9205, allocations: 2.047 kB / 1.381 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.9205, allocations: 0 / 1.381 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003579/0.9209, allocations: 240.1 kB / 1.381 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.921, allocations: 135.6 kB / 1.381 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.921, allocations: 4.516 kB / 1.381 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.9212, allocations: 16.28 kB / 1.381 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.669e-05/0.9213, allocations: 22.83 kB / 1.381 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.9214, allocations: 6.484 kB / 1.381 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0005796/0.9219, allocations: 410.2 kB / 1.382 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003678/0.9223, allocations: 72.56 kB / 1.382 GB, free: 29.28 MB / 0.8386 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.0007859/0.9231, allocations: 357.7 kB / 1.382 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002789/0.9234, allocations: 144.3 kB / 1.382 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.9234, allocations: 1.031 kB / 1.382 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.9235, allocations: 51.97 kB / 1.382 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.9239, allocations: 63.62 kB / 1.382 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.9251, allocations: 0.5881 MB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.9257, allocations: 0.8934 MB / 1.384 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/0.9257, allocations: 3.938 kB / 1.384 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of Templates: time 0.008579/0.9343, allocations: 3.534 MB / 1.387 GB, free: 26.27 MB / 0.8386 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