Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.135/2.135, allocations: 284.9 MB / 292.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002109/0.002108, allocations: 177.3 kB / 360.4 MB, free: 7.523 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.2 MB / 0.6188 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001668/0.001667, allocations: 93.47 kB / 0.7318 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.775e-06/7.864e-06, allocations: 0 / 0.8503 GB, free: 3.973 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5444/0.5444, allocations: 115.2 MB / 0.9628 GB, free: 78.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2034/0.7479, allocations: 137.5 MB / 1.097 GB, free: 3.336 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.7482, allocations: 72.56 kB / 1.097 GB, free: 3.266 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.012/0.7602, allocations: 2.272 MB / 1.099 GB, free: 1.062 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.7602, allocations: 0 / 1.099 GB, free: 1.062 MB / 0.698 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.0005623/0.7608, allocations: 399.9 kB / 1.1 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.7609, allocations: 12.03 kB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.921e-05/0.7609, allocations: 7.906 kB / 1.1 GB, free: 0.6016 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.7611, allocations: 167 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.7611, allocations: 0 / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.7612, allocations: 4 kB / 1.1 GB, free: 404 kB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001026/0.7613, allocations: 24.92 kB / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.7614, allocations: 46.34 kB / 1.1 GB, free: 328 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.7614, allocations: 7.906 kB / 1.1 GB, free: 320 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.7614, allocations: 3.938 kB / 1.1 GB, free: 316 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.7615, allocations: 3.938 kB / 1.1 GB, free: 312 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005591/0.762, allocations: 298.3 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.683e-05/0.7621, allocations: 30.58 kB / 1.1 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.378e-05/0.7622, allocations: 20.86 kB / 1.1 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.7622, allocations: 80 / 1.1 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.7624, allocations: 71.41 kB / 1.1 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.7624, allocations: 2.25 kB / 1.1 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002337/0.7626, allocations: 73.59 kB / 1.1 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.7627, allocations: 51.41 kB / 1.101 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.421e-05/0.7628, allocations: 105 kB / 1.101 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.7628, allocations: 29.7 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.7629, allocations: 92.23 kB / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.7629, allocations: 23.73 kB / 1.101 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.929e-05/0.763, allocations: 0 / 1.101 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.7631, allocations: 314.8 kB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.7632, allocations: 31.98 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.7634, allocations: 62.06 kB / 1.101 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.7637, allocations: 49.34 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7637, allocations: 0 / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000557/0.7643, allocations: 145 kB / 1.101 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.7643, allocations: 4 kB / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.7643, allocations: 0 / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.7643, allocations: 4.562 kB / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.7645, allocations: 21.92 kB / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.7645, allocations: 0 / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.7649, allocations: 47.88 kB / 1.101 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.765, allocations: 15.98 kB / 1.101 GB, free: 14.73 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 9.751e-05/0.7651, allocations: 120 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.7651, allocations: 3.906 kB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.7653, allocations: 78.03 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.7654, allocations: 4.609 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7654, allocations: 3.938 kB / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.7654, allocations: 0 / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.7657, allocations: 295 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7657, allocations: 0 / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.7659, allocations: 23.98 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.7659, allocations: 0 / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.7659, allocations: 0 / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.7659, allocations: 1.188 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.7659, allocations: 4.5 kB / 1.102 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001979/0.7661, allocations: 168.1 kB / 1.102 GB, free: 13.97 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.7662, allocations: 89.02 kB / 1.102 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.7662, allocations: 0 / 1.102 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.7664, allocations: 7.984 kB / 1.102 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.7664, allocations: 7.984 kB / 1.102 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.7665, allocations: 4 kB / 1.102 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.51e-05/0.7665, allocations: 91.12 kB / 1.102 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003556/0.7669, allocations: 31.92 kB / 1.102 GB, free: 13.73 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.0001639/0.7671, allocations: 111.8 kB / 1.102 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002865/0.7674, allocations: 101.6 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.7674, allocations: 0 / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.495e-05/0.7675, allocations: 24 kB / 1.103 GB, free: 13.48 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.7678, allocations: 9.531 kB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.7681, allocations: 98.08 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.7684, allocations: 0.6958 MB / 1.103 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of SimCode: time 8.12e-07/0.7684, allocations: 4 kB / 1.103 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of Templates: time 0.004724/0.7732, allocations: 1.231 MB / 1.105 GB, free: 11.45 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)