Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside") [: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.149/2.149, allocations: 253.1 MB / 260.4 MB, free: 7.512 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.001717/0.001717, allocations: 181.3 kB / 319.6 MB, free: 3.332 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.87/1.87, allocations: 205.4 MB / 0.5704 GB, free: 15.07 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.001922/0.001922, allocations: 99.3 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.352e-05/1.366e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.1996, allocations: 106.2 MB / 0.888 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5971/0.7968, allocations: 132.2 MB / 1.017 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.7971, allocations: 77.75 kB / 1.017 GB, free: 6.141 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004608/0.8017, allocations: 0.7645 MB / 1.018 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.8018, allocations: 0 / 1.018 GB, free: 5.508 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000501/0.8023, allocations: 345.8 kB / 1.018 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.8023, allocations: 8.031 kB / 1.018 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.8024, allocations: 4 kB / 1.018 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.8025, allocations: 163 kB / 1.018 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.8026, allocations: 4 kB / 1.018 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.197e-05/0.8026, allocations: 0 / 1.018 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.944e-05/0.8027, allocations: 11.44 kB / 1.018 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.833e-05/0.8028, allocations: 41.05 kB / 1.018 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.8028, allocations: 0 / 1.018 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.8029, allocations: 6.562 kB / 1.018 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.8029, allocations: 4 kB / 1.018 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/0.8034, allocations: 248.2 kB / 1.019 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.239e-05/0.8035, allocations: 21.77 kB / 1.019 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.926e-05/0.8035, allocations: 12.55 kB / 1.019 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001715/0.8037, allocations: 81.11 kB / 1.019 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.8038, allocations: 34.56 kB / 1.019 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.623e-06/0.8038, allocations: 0 / 1.019 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0003357/0.8041, allocations: 64.27 kB / 1.019 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.8042, allocations: 51.41 kB / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.156e-05/0.8043, allocations: 95.42 kB / 1.019 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.8043, allocations: 29.33 kB / 1.019 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.8043, allocations: 80.14 kB / 1.019 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.8044, allocations: 7.906 kB / 1.019 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-06/0.8044, allocations: 4.875 kB / 1.019 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.8045, allocations: 310.8 kB / 1.019 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.672e-05/0.8045, allocations: 7.688 kB / 1.019 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.031e-05/0.8046, allocations: 0 / 1.019 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.8047, allocations: 19.22 kB / 1.019 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8047, allocations: 0 / 1.019 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002043/0.8049, allocations: 48.94 kB / 1.02 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.805, allocations: 7.984 kB / 1.02 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.805, allocations: 4.094 kB / 1.02 GB, free: 3.66 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.805, allocations: 11.78 kB / 1.02 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.8052, allocations: 19.31 kB / 1.02 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.8052, allocations: 3.984 kB / 1.02 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.982e-05/0.8053, allocations: 15.92 kB / 1.02 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-06/0.8053, allocations: 4 kB / 1.02 GB, free: 3.609 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 (2): * Single equations (assignments): 2 * 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.475e-05/0.8054, allocations: 102 kB / 1.02 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.8055, allocations: 3.906 kB / 1.02 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000249/0.8057, allocations: 64.36 kB / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.8057, allocations: 0 / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.8058, allocations: 0 / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.8058, allocations: 0 / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.8059, allocations: 136 kB / 1.02 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.806, allocations: 4.031 kB / 1.02 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.8061, allocations: 15.98 kB / 1.02 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.8061, allocations: 4.781 kB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.8061, allocations: 0 / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.8061, allocations: 0 / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8061, allocations: 0 / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002422/0.8064, allocations: 154.5 kB / 1.02 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.8065, allocations: 81.02 kB / 1.02 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.8065, allocations: 0.875 kB / 1.02 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.8067, allocations: 11.98 kB / 1.02 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.8067, allocations: 0 / 1.02 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.8067, allocations: 4 kB / 1.02 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.983e-05/0.8068, allocations: 83.5 kB / 1.02 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003225/0.8071, allocations: 15.98 kB / 1.02 GB, free: 2.879 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 (2): * Single equations (assignments): 2 * 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.0001753/0.8073, allocations: 95.25 kB / 1.02 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.633e-05/0.8074, allocations: 11.44 kB / 1.02 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8074, allocations: 4 kB / 1.02 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.8075, allocations: 7.938 kB / 1.02 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.8077, allocations: 14.22 kB / 1.02 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002603/0.808, allocations: 73.81 kB / 1.02 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/0.8083, allocations: 0.6919 MB / 1.021 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of SimCode: time 6.81e-07/0.8083, allocations: 3.938 kB / 1.021 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of Templates: time 0.00316/0.8115, allocations: 0.5211 MB / 1.022 GB, free: 1.434 MB / 0.6355 GB