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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [: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.433/2.433, allocations: 253.1 MB / 260.4 MB, free: 7.473 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.002256/0.002256, allocations: 192.9 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.183/2.183, 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.001886/0.001886, allocations: 91.31 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.146e-05/1.152e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2456, allocations: 106.3 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7213/0.967, allocations: 131.7 MB / 1.017 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003743/0.9674, allocations: 68.14 kB / 1.017 GB, free: 6.598 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.005093/0.9726, allocations: 0.5874 MB / 1.017 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.9726, allocations: 0 / 1.017 GB, free: 6.102 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008517/0.9735, allocations: 361.8 kB / 1.018 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.9736, allocations: 8.031 kB / 1.018 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.052e-05/0.9737, allocations: 7.906 kB / 1.018 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.9739, allocations: 170.8 kB / 1.018 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.9739, allocations: 3.938 kB / 1.018 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.974, allocations: 4 kB / 1.018 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001527/0.9742, allocations: 19.06 kB / 1.018 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.9743, allocations: 48.95 kB / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.9743, allocations: 4 kB / 1.018 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.9744, allocations: 7.438 kB / 1.018 GB, free: 5.41 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.9744, allocations: 0 / 1.018 GB, free: 5.41 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.975, allocations: 268 kB / 1.018 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.9752, allocations: 44.69 kB / 1.018 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.205e-05/0.9753, allocations: 20.67 kB / 1.018 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.9753, allocations: 0 / 1.018 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.9755, allocations: 58.97 kB / 1.018 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.083e-06/0.9755, allocations: 6.562 kB / 1.018 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002587/0.9757, allocations: 64.64 kB / 1.018 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.9758, allocations: 55.41 kB / 1.018 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.9759, allocations: 95.98 kB / 1.018 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.976, allocations: 29.7 kB / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.976, allocations: 84.14 kB / 1.019 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.9761, allocations: 19.22 kB / 1.019 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.9761, allocations: 4 kB / 1.019 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.9763, allocations: 318.3 kB / 1.019 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.656e-05/0.9763, allocations: 11.69 kB / 1.019 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.997e-05/0.9764, allocations: 38.61 kB / 1.019 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.902e-05/0.9765, allocations: 30.55 kB / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9765, allocations: 0 / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002076/0.9767, allocations: 73.22 kB / 1.019 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.9768, allocations: 8 kB / 1.019 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.9768, allocations: 0 / 1.019 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.9768, allocations: 128 / 1.019 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.977, allocations: 23.98 kB / 1.019 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.9771, allocations: 7.938 kB / 1.019 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.9772, allocations: 15.92 kB / 1.019 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.9772, allocations: 7.562 kB / 1.019 GB, free: 4.105 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.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001133/0.9774, allocations: 111.4 kB / 1.019 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.9774, allocations: 4 kB / 1.019 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.9776, allocations: 72.98 kB / 1.019 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.9776, allocations: 11.78 kB / 1.019 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.9777, allocations: 4.188 kB / 1.019 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.9777, allocations: 0 / 1.019 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004733/0.9782, allocations: 309.6 kB / 1.02 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.9782, allocations: 0 / 1.02 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.9783, allocations: 18.8 kB / 1.02 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.9784, allocations: 0 / 1.02 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.9784, allocations: 4 kB / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.9784, allocations: 0 / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.9784, allocations: 0 / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000216/0.9786, allocations: 162.9 kB / 1.02 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.9788, allocations: 85.02 kB / 1.02 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.9788, allocations: 4 kB / 1.02 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.979, allocations: 11.98 kB / 1.02 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.9791, allocations: 3.984 kB / 1.02 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.9791, allocations: 4 kB / 1.02 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.2e-05/0.9792, allocations: 82.84 kB / 1.02 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003359/0.9795, allocations: 12 kB / 1.02 GB, free: 3.176 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0001635/0.9797, allocations: 99.23 kB / 1.02 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001838/0.9799, allocations: 41.56 kB / 1.02 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.9799, allocations: 0 / 1.02 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.885e-05/0.98, allocations: 22.19 kB / 1.02 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.9803, allocations: 4 kB / 1.02 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003955/0.9807, allocations: 98.72 kB / 1.02 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003968/0.9811, allocations: 0.701 MB / 1.021 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of SimCode: time 7.32e-07/0.9811, allocations: 0 / 1.021 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of Templates: time 0.004206/0.9853, allocations: 0.6406 MB / 1.022 GB, free: 1.555 MB / 0.6355 GB