Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [: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.353/2.353, allocations: 253.1 MB / 260.4 MB, free: 7.559 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.00158/0.00158, allocations: 193.2 kB / 319.6 MB, free: 3.316 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.01/2.01, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.00138/0.00138, allocations: 87.62 kB / 0.6746 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.023e-05/1.042e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2381, allocations: 106.2 MB / 0.8881 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7066/0.9448, allocations: 131.7 MB / 1.017 GB, free: 6.719 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.9452, allocations: 72.83 kB / 1.017 GB, free: 6.68 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003544/0.9487, allocations: 0.5681 MB / 1.017 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.9488, allocations: 0 / 1.017 GB, free: 6.199 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006011/0.9494, allocations: 362.2 kB / 1.018 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.9495, allocations: 8.031 kB / 1.018 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.9495, allocations: 7.906 kB / 1.018 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.9497, allocations: 167 kB / 1.018 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.9497, allocations: 3.984 kB / 1.018 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.9497, allocations: 4 kB / 1.018 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001058/0.9499, allocations: 23.59 kB / 1.018 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.95, allocations: 46.16 kB / 1.018 GB, free: 5.52 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.95, allocations: 4 kB / 1.018 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.9501, allocations: 3.375 kB / 1.018 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.9501, allocations: 0 / 1.018 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/0.9505, allocations: 250.8 kB / 1.018 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.9507, allocations: 47.69 kB / 1.018 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.399e-05/0.9507, allocations: 16.86 kB / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.9508, allocations: 0 / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.9509, allocations: 64.55 kB / 1.018 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 3.106e-06/0.9509, allocations: 0 / 1.018 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002513/0.9512, allocations: 59.66 kB / 1.018 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.9512, allocations: 53.84 kB / 1.018 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.9514, allocations: 107.9 kB / 1.018 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.9514, allocations: 25.7 kB / 1.018 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.271e-05/0.9515, allocations: 87.25 kB / 1.019 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.9515, allocations: 15.38 kB / 1.019 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-06/0.9515, allocations: 0 / 1.019 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.9516, allocations: 314.8 kB / 1.019 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.342e-05/0.9517, allocations: 11.62 kB / 1.019 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.726e-05/0.9518, allocations: 41.98 kB / 1.019 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.835e-05/0.9519, allocations: 17.56 kB / 1.019 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.9519, allocations: 0 / 1.019 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001965/0.9521, allocations: 84.05 kB / 1.019 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.9521, allocations: 8 kB / 1.019 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.9521, allocations: 4 kB / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.9522, allocations: 0 / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.9524, allocations: 15.98 kB / 1.019 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.9524, allocations: 4 kB / 1.019 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.9525, allocations: 19.84 kB / 1.019 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.9525, allocations: 4 kB / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.899e-05/0.9527, allocations: 111.1 kB / 1.019 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/0.9527, allocations: 11.84 kB / 1.019 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.9529, allocations: 62 kB / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.9529, allocations: 4 kB / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.9529, allocations: 0 / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.9529, allocations: 0 / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003825/0.9533, allocations: 304.4 kB / 1.02 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.9533, allocations: 0 / 1.02 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.9535, allocations: 8 kB / 1.02 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.9535, allocations: 3.984 kB / 1.02 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.9535, allocations: 7.984 kB / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.9535, allocations: 0 / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.9535, allocations: 0 / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001848/0.9537, allocations: 157 kB / 1.02 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.306e-05/0.9538, allocations: 85.02 kB / 1.02 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.9538, allocations: 192 / 1.02 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.954, allocations: 11.98 kB / 1.02 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.9541, allocations: 18.73 kB / 1.02 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.9541, allocations: 3.938 kB / 1.02 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.592e-05/0.9542, allocations: 82.55 kB / 1.02 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003215/0.9545, allocations: 11.91 kB / 1.02 GB, free: 3.324 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.000151/0.9547, allocations: 95.25 kB / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.9548, allocations: 37.19 kB / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.9549, allocations: 2.438 kB / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.212e-05/0.9549, allocations: 24.16 kB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.9552, allocations: 8 kB / 1.02 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.9556, allocations: 83.31 kB / 1.02 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004326/0.9561, allocations: 0.6958 MB / 1.021 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/0.9561, allocations: 0 / 1.021 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of Templates: time 0.003706/0.9598, allocations: 0.631 MB / 1.021 GB, free: 1.73 MB / 0.6355 GB