Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep") [: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.122/2.122, allocations: 253.1 MB / 260.4 MB, free: 7.535 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.002389/0.002389, allocations: 190.1 kB / 319.6 MB, free: 3.328 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 1.972/1.972, 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.001225/0.001225, allocations: 90.61 kB / 0.6746 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.093e-05/1.105e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2696, allocations: 106.2 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6648/0.9344, allocations: 131 MB / 1.016 GB, free: 7.367 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.9348, allocations: 73.39 kB / 1.016 GB, free: 7.324 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001841/0.9366, allocations: 251.3 kB / 1.016 GB, free: 7.109 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.9367, allocations: 0 / 1.016 GB, free: 7.109 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000273/0.937, allocations: 302.5 kB / 1.017 GB, free: 6.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.937, allocations: 15.97 kB / 1.017 GB, free: 6.754 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/0.9373, allocations: 27.86 kB / 1.017 GB, free: 6.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.9374, allocations: 163 kB / 1.017 GB, free: 6.527 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.9375, allocations: 0 / 1.017 GB, free: 6.527 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.9375, allocations: 0 / 1.017 GB, free: 6.527 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.813e-05/0.9375, allocations: 4 kB / 1.017 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.792e-05/0.9377, allocations: 29.69 kB / 1.017 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.9377, allocations: 0 / 1.017 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.9377, allocations: 0 / 1.017 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.9377, allocations: 0 / 1.017 GB, free: 6.488 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.9379, allocations: 137.9 kB / 1.017 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.308e-05/0.9379, allocations: 18.56 kB / 1.017 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.788e-05/0.938, allocations: 8.797 kB / 1.017 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.938, allocations: 0 / 1.017 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.938, allocations: 34.62 kB / 1.017 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 3.035e-06/0.9381, allocations: 0 / 1.017 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.000147/0.9382, allocations: 32.33 kB / 1.017 GB, free: 6.203 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.9383, allocations: 55.44 kB / 1.017 GB, free: 6.137 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.011e-05/0.9383, allocations: 85 kB / 1.017 GB, free: 6.047 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.9383, allocations: 25.7 kB / 1.017 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.9384, allocations: 82.83 kB / 1.017 GB, free: 5.934 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.9384, allocations: 7.891 kB / 1.017 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-06/0.9385, allocations: 0 / 1.017 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.9386, allocations: 314.8 kB / 1.018 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.9386, allocations: 0 / 1.018 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.223e-05/0.9386, allocations: 4 kB / 1.018 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.919e-05/0.9387, allocations: 0 / 1.018 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.9387, allocations: 4 kB / 1.018 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.394e-05/0.9388, allocations: 33.64 kB / 1.018 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.9388, allocations: 4 kB / 1.018 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.9388, allocations: 3.984 kB / 1.018 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.9388, allocations: 3.375 kB / 1.018 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.939, allocations: 4 kB / 1.018 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.939, allocations: 0 / 1.018 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.566e-05/0.9391, allocations: 15.69 kB / 1.018 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.9391, allocations: 0 / 1.018 GB, free: 5.539 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 7.689e-05/0.9392, allocations: 101 kB / 1.018 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.9392, allocations: 3.984 kB / 1.018 GB, free: 5.43 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.565e-05/0.9392, allocations: 6.953 kB / 1.018 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.9393, allocations: 0 / 1.018 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.9393, allocations: 7.938 kB / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.9393, allocations: 0 / 1.018 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.915e-05/0.9394, allocations: 134.1 kB / 1.018 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.9394, allocations: 0 / 1.018 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.589e-05/0.9395, allocations: 7.984 kB / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.9395, allocations: 0 / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.9395, allocations: 0 / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.9395, allocations: 0 / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.9395, allocations: 0 / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001036/0.9396, allocations: 68.41 kB / 1.018 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.9397, allocations: 81.14 kB / 1.018 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.9397, allocations: 0 / 1.018 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.606e-05/0.9398, allocations: 0 / 1.018 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.349e-05/0.9398, allocations: 4 kB / 1.018 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.9398, allocations: 0 / 1.018 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.516e-05/0.9399, allocations: 75.28 kB / 1.018 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000234/0.9401, allocations: 0 / 1.018 GB, free: 4.984 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.000147/0.9403, allocations: 99.23 kB / 1.018 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.28e-05/0.9404, allocations: 8 kB / 1.018 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.9404, allocations: 0 / 1.018 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.84e-05/0.9404, allocations: 7.938 kB / 1.018 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.9405, allocations: 3.906 kB / 1.018 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002335/0.9408, allocations: 55.22 kB / 1.018 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.9411, allocations: 0.6841 MB / 1.019 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of SimCode: time 6.81e-07/0.9411, allocations: 0 / 1.019 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of Templates: time 0.002485/0.9436, allocations: 290.8 kB / 1.019 GB, free: 3.801 MB / 0.6355 GB