Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") [: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 8.1.4-maint.8.1.x/package.mo): time 1.359/1.359, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009463/0.0009462, allocations: 188.2 kB / 366.3 MB, free: 1.953 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.085/1.085, allocations: 205.1 MB / 0.6256 GB, free: 7.418 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008346/0.0008345, allocations: 89.64 kB / 0.7396 GB, free: 39.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.842e-06/6.843e-06, allocations: 4 kB / 0.859 GB, free: 13.53 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.437/0.437, allocations: 116.3 MB / 0.9726 GB, free: 76.12 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.5722, allocations: 138.6 MB / 1.108 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.5724, allocations: 71.95 kB / 1.108 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.007006/0.5795, allocations: 2.276 MB / 1.11 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.685e-05/0.5795, allocations: 0.75 kB / 1.11 GB, free: 9.504 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004163/0.5799, allocations: 400 kB / 1.111 GB, free: 9.062 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.5799, allocations: 8.031 kB / 1.111 GB, free: 9.055 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/0.58, allocations: 7.906 kB / 1.111 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.5801, allocations: 171.8 kB / 1.111 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.5801, allocations: 3.984 kB / 1.111 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.5802, allocations: 8 kB / 1.111 GB, free: 8.828 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.457e-05/0.5802, allocations: 19.98 kB / 1.111 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.51e-05/0.5803, allocations: 45.69 kB / 1.111 GB, free: 8.758 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5803, allocations: 3.906 kB / 1.111 GB, free: 8.754 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.5803, allocations: 5.562 kB / 1.111 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.5804, allocations: 8 kB / 1.111 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.5807, allocations: 297.3 kB / 1.111 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.117e-05/0.5808, allocations: 35.36 kB / 1.111 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.109e-05/0.5809, allocations: 16.94 kB / 1.111 GB, free: 8.352 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.5809, allocations: 4 kB / 1.111 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.583e-05/0.581, allocations: 63.41 kB / 1.111 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.581, allocations: 0 / 1.111 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001707/0.5811, allocations: 77.66 kB / 1.111 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.5812, allocations: 59.33 kB / 1.111 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.208e-05/0.5813, allocations: 98.31 kB / 1.112 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.5813, allocations: 29.7 kB / 1.112 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.586e-05/0.5813, allocations: 96.22 kB / 1.112 GB, free: 7.883 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.5814, allocations: 15.75 kB / 1.112 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.5814, allocations: 4 kB / 1.112 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.055e-05/0.5815, allocations: 318.8 kB / 1.112 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.876e-05/0.5816, allocations: 32.75 kB / 1.112 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.581e-05/0.5817, allocations: 59.42 kB / 1.112 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.5818, allocations: 43.97 kB / 1.112 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.5819, allocations: 0 / 1.112 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003146/0.5822, allocations: 137.5 kB / 1.112 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.527e-06/0.5822, allocations: 8 kB / 1.112 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.5822, allocations: 0 / 1.112 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.5822, allocations: 0.8438 kB / 1.112 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5823, allocations: 29.41 kB / 1.112 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.5823, allocations: 4 kB / 1.112 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.5825, allocations: 51.86 kB / 1.112 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.5826, allocations: 8 kB / 1.112 GB, free: 7.16 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 6.505e-05/0.5826, allocations: 107.7 kB / 1.112 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.5827, allocations: 7.906 kB / 1.112 GB, free: 7.043 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.5828, allocations: 83.7 kB / 1.113 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.5828, allocations: 0.6562 kB / 1.113 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5828, allocations: 3.938 kB / 1.113 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.5828, allocations: 3.984 kB / 1.113 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.583, allocations: 299.1 kB / 1.113 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.5831, allocations: 0 / 1.113 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.229e-05/0.5831, allocations: 12 kB / 1.113 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.5831, allocations: 5.109 kB / 1.113 GB, free: 6.598 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.5832, allocations: 4.656 kB / 1.113 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.5832, allocations: 0 / 1.113 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5832, allocations: 3.938 kB / 1.113 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001341/0.5833, allocations: 167.5 kB / 1.113 GB, free: 6.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.5834, allocations: 85 kB / 1.113 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.5834, allocations: 0 / 1.113 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.5835, allocations: 12 kB / 1.113 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.5835, allocations: 10.11 kB / 1.113 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.5835, allocations: 0 / 1.113 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.068e-05/0.5836, allocations: 95.92 kB / 1.113 GB, free: 6.195 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000232/0.5838, allocations: 23.94 kB / 1.113 GB, free: 6.172 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001288/0.584, allocations: 108 kB / 1.113 GB, free: 6.059 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000173/0.5841, allocations: 108 kB / 1.113 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5842, allocations: 0 / 1.113 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.36e-05/0.5842, allocations: 23.94 kB / 1.113 GB, free: 5.926 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.5844, allocations: 13.06 kB / 1.113 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002327/0.5846, allocations: 87.81 kB / 1.114 GB, free: 5.805 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.5849, allocations: 0.7037 MB / 1.114 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of SimCode: time 2.2e-07/0.5849, allocations: 0 / 1.114 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of Templates: time 0.002926/0.5878, allocations: 1.234 MB / 1.115 GB, free: 3.887 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)