Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.SmoothMin") [: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.188/2.188, allocations: 253.1 MB / 260.4 MB, free: 7.496 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.002551/0.002551, allocations: 185.2 kB / 319.6 MB, free: 3.309 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.029/2.029, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.001803/0.001803, allocations: 88.77 kB / 0.6746 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.092e-05/1.1e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1937, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7358/0.9296, allocations: 131.9 MB / 1.017 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.9299, allocations: 69.91 kB / 1.017 GB, free: 6.402 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004991/0.9349, allocations: 0.8487 MB / 1.018 GB, free: 5.668 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.935, allocations: 0 / 1.018 GB, free: 5.668 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.0004886/0.9355, allocations: 354.2 kB / 1.018 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.9356, allocations: 12.69 kB / 1.018 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.9371, allocations: 170.9 kB / 1.018 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.9374, allocations: 165.6 kB / 1.018 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.9374, allocations: 0 / 1.018 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.9374, allocations: 4 kB / 1.018 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004021/0.9378, allocations: 130.3 kB / 1.019 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002823/0.9381, allocations: 114.9 kB / 1.019 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.9381, allocations: 3.938 kB / 1.019 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.9382, allocations: 0 / 1.019 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.9382, allocations: 0 / 1.019 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.9398, allocations: 455.3 kB / 1.019 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007354/0.9405, allocations: 169.4 kB / 1.019 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.9407, allocations: 50.11 kB / 1.019 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.9408, allocations: 7.906 kB / 1.019 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.9408, allocations: 34.56 kB / 1.019 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.575e-06/0.9408, allocations: 0 / 1.019 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0004215/0.9412, allocations: 108.3 kB / 1.019 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.9413, allocations: 51.41 kB / 1.019 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.9414, allocations: 108.5 kB / 1.02 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.9414, allocations: 25.7 kB / 1.02 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.9415, allocations: 91.73 kB / 1.02 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.9415, allocations: 3.906 kB / 1.02 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.9416, allocations: 0 / 1.02 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.9417, allocations: 322.1 kB / 1.02 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.9419, allocations: 42.03 kB / 1.02 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.942, allocations: 45.66 kB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.9421, allocations: 34.36 kB / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9421, allocations: 0 / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003167/0.9425, allocations: 114 kB / 1.02 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.9425, allocations: 4 kB / 1.02 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.9425, allocations: 0 / 1.02 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.9425, allocations: 0 / 1.02 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.943, allocations: 51.89 kB / 1.02 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.9431, allocations: 0 / 1.02 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.9435, allocations: 51.8 kB / 1.02 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.9435, allocations: 0 / 1.02 GB, free: 3.023 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 (3): * Single equations (assignments): 3 * 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.000107/0.9436, allocations: 112.2 kB / 1.02 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.9437, allocations: 0 / 1.02 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.999e-05/0.9438, allocations: 11.91 kB / 1.02 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.9438, allocations: 0 / 1.02 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.9438, allocations: 3.984 kB / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.9438, allocations: 0 / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003031/0.9441, allocations: 184.2 kB / 1.021 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.9442, allocations: 0 / 1.021 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.9446, allocations: 47.95 kB / 1.021 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.972e-06/0.9446, allocations: 3.984 kB / 1.021 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.9447, allocations: 3.688 kB / 1.021 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.9447, allocations: 3.906 kB / 1.021 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9447, allocations: 0 / 1.021 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003685/0.9451, allocations: 207.2 kB / 1.021 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.896e-05/0.9451, allocations: 81.02 kB / 1.021 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.9452, allocations: 7.984 kB / 1.021 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.9456, allocations: 39.28 kB / 1.021 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.9457, allocations: 7.984 kB / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.9457, allocations: 0 / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.206e-05/0.9458, allocations: 86.97 kB / 1.021 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003258/0.9462, allocations: 19.91 kB / 1.021 GB, free: 2.188 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 (3): * Single equations (assignments): 3 * 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.0001422/0.9463, allocations: 95.23 kB / 1.021 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003291/0.9466, allocations: 91.98 kB / 1.021 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.9467, allocations: 4 kB / 1.021 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.9468, allocations: 49.41 kB / 1.021 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.947, allocations: 2.656 kB / 1.021 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.9482, allocations: 193.5 kB / 1.022 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/0.9486, allocations: 0.7107 MB / 1.022 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of SimCode: time 7.71e-07/0.9487, allocations: 4 kB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of Templates: time 0.004368/0.953, allocations: 1.164 MB / 1.023 GB, free: 15.9 MB / 0.6511 GB