Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset") [: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 7.0.1/package.mo): time 2.211/2.211, allocations: 253.1 MB / 260.4 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001615/0.001614, allocations: 177.2 kB / 319.6 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001369/0.001368, allocations: 93.83 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.144e-05/1.162e-05, allocations: 0 / 0.7843 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2023, allocations: 106.3 MB / 0.888 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7514/0.9537, allocations: 133.7 MB / 1.019 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.9541, allocations: 70.64 kB / 1.019 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01915/0.9733, allocations: 3.162 MB / 1.022 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.168e-05/0.9734, allocations: 4 kB / 1.022 GB, free: 1.906 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001098/0.9745, allocations: 453 kB / 1.022 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.9746, allocations: 12.03 kB / 1.022 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.297e-05/0.9747, allocations: 19.81 kB / 1.022 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.9752, allocations: 225.8 kB / 1.022 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.9752, allocations: 4 kB / 1.022 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.9753, allocations: 11.56 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002211/0.9755, allocations: 34.56 kB / 1.023 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.9759, allocations: 124.6 kB / 1.023 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.976, allocations: 0 / 1.023 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.976, allocations: 0 / 1.023 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.976, allocations: 4.844 kB / 1.023 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.9778, allocations: 0.7089 MB / 1.023 GB, free: 268 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.9779, allocations: 37.31 kB / 1.023 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.346e-05/0.978, allocations: 16.23 kB / 1.023 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.9781, allocations: 4 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.9783, allocations: 108.4 kB / 1.024 GB, free: 88 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/0.9784, allocations: 0 / 1.024 GB, free: 88 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000397/0.9788, allocations: 92.22 kB / 1.024 GB, free: 0 / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.979, allocations: 136.4 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.9793, allocations: 166.5 kB / 1.024 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.9793, allocations: 25.7 kB / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.9794, allocations: 118.6 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.283e-05/0.9795, allocations: 34.73 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.9795, allocations: 4.062 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.9797, allocations: 330 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.9799, allocations: 18.88 kB / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.9801, allocations: 139.2 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.9803, allocations: 34.84 kB / 1.025 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.9803, allocations: 4 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003754/0.9807, allocations: 153.6 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.9807, allocations: 6.188 kB / 1.025 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.9808, allocations: 4 kB / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.9808, allocations: 8 kB / 1.025 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.9811, allocations: 36.02 kB / 1.025 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.9811, allocations: 12 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.9814, allocations: 23.89 kB / 1.025 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.9814, allocations: 8 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001044/0.9815, allocations: 120.2 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.9816, allocations: 19.81 kB / 1.025 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.9816, allocations: 19.81 kB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.9816, allocations: 4 kB / 1.025 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.9817, allocations: 0 / 1.025 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.9817, allocations: 3.984 kB / 1.025 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008885/0.9826, allocations: 468.2 kB / 1.025 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.9826, allocations: 0 / 1.025 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.9829, allocations: 23.23 kB / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.9829, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.9829, allocations: 11.98 kB / 1.025 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.387e-06/0.9829, allocations: 4 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.9829, allocations: 4 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004199/0.9834, allocations: 347.3 kB / 1.026 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.9835, allocations: 92.92 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.9835, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.9838, allocations: 19.73 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.9839, allocations: 15.97 kB / 1.026 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.9839, allocations: 8 kB / 1.026 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001273/0.9841, allocations: 125.4 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000466/0.9845, allocations: 26.88 kB / 1.026 GB, free: 13.43 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000173/0.9847, allocations: 107.2 kB / 1.026 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.985, allocations: 77.36 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.985, allocations: 0 / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.9851, allocations: 46.73 kB / 1.026 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006678/0.9858, allocations: 54.55 kB / 1.026 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006556/0.9865, allocations: 236.8 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/0.9869, allocations: 0.7472 MB / 1.027 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of SimCode: time 6.81e-07/0.9869, allocations: 0 / 1.027 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of Templates: time 0.006838/0.9938, allocations: 1.744 MB / 1.029 GB, free: 10.43 MB / 0.6511 GB