Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside") translateModel(Annex60.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2785/0.2785, allocations: 54.39 MB / 61.67 MB, free: 11.18 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001194/0.001194, allocations: 184.9 kB / 75.37 MB, free: 1.461 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.449/1.449, allocations: 194.2 MB / 283.2 MB, free: 3.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001764/0.001764, allocations: 107.5 kB / 341.3 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.969e-06/9.999e-06, allocations: 4 kB / 404.9 MB, free: 27.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1276, allocations: 57.65 MB / 462.6 MB, free: 2.004 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.4483, allocations: 84.7 MB / 0.5345 GB, free: 12.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4486, allocations: 75.45 kB / 0.5345 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.002632/0.4513, allocations: 0.6154 MB / 0.5351 GB, free: 11.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.4513, allocations: 0 / 0.5351 GB, free: 11.75 MB / 378.7 MB 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.0003731/0.4517, allocations: 338.8 kB / 0.5355 GB, free: 11.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4517, allocations: 11.97 kB / 0.5355 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.168e-05/0.4518, allocations: 4 kB / 0.5355 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.4519, allocations: 170.9 kB / 0.5356 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.4519, allocations: 0 / 0.5356 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.4519, allocations: 0.75 kB / 0.5356 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.751e-05/0.452, allocations: 11.75 kB / 0.5357 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.488e-05/0.4521, allocations: 41.12 kB / 0.5357 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.4521, allocations: 0 / 0.5357 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.4521, allocations: 0 / 0.5357 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4521, allocations: 0 / 0.5357 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004017/0.4525, allocations: 253.5 kB / 0.5359 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.276e-05/0.4526, allocations: 26.2 kB / 0.536 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.76e-05/0.4526, allocations: 16.55 kB / 0.536 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003602/0.453, allocations: 206.2 kB / 0.5362 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.4531, allocations: 34.5 kB / 0.5362 GB, free: 10.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.4531, allocations: 0 / 0.5362 GB, free: 10.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002741/0.4534, allocations: 61 kB / 0.5363 GB, free: 10.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.4534, allocations: 51.41 kB / 0.5363 GB, free: 10.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.046e-05/0.4535, allocations: 97.2 kB / 0.5364 GB, free: 10.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.4535, allocations: 25.7 kB / 0.5364 GB, free: 10.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.4536, allocations: 84.17 kB / 0.5365 GB, free: 10.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.4536, allocations: 7.906 kB / 0.5365 GB, free: 10.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.4536, allocations: 0 / 0.5365 GB, free: 10.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.4537, allocations: 318.4 kB / 0.5368 GB, free: 9.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.619e-05/0.4537, allocations: 6.078 kB / 0.5368 GB, free: 9.836 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.433e-05/0.4538, allocations: 7.688 kB / 0.5368 GB, free: 9.832 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.505e-05/0.4538, allocations: 7.984 kB / 0.5368 GB, free: 9.824 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4539, allocations: 7.984 kB / 0.5368 GB, free: 9.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001261/0.454, allocations: 56.95 kB / 0.5369 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.454, allocations: 12 kB / 0.5369 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.454, allocations: 0 / 0.5369 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4541, allocations: 3.906 kB / 0.5369 GB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.819e-05/0.4542, allocations: 8 kB / 0.5369 GB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.4542, allocations: 3.984 kB / 0.5369 GB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.666e-05/0.4542, allocations: 12 kB / 0.5369 GB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.4542, allocations: 0 / 0.5369 GB, free: 9.723 MB / 378.7 MB 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 6.381e-05/0.4543, allocations: 101 kB / 0.537 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.4544, allocations: 7.906 kB / 0.537 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001711/0.4545, allocations: 60.48 kB / 0.5371 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.4545, allocations: 0 / 0.5371 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4545, allocations: 4 kB / 0.5371 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.4546, allocations: 0 / 0.5371 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.4547, allocations: 141.9 kB / 0.5372 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4547, allocations: 7.875 kB / 0.5372 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-05/0.4548, allocations: 8 kB / 0.5373 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4548, allocations: 0 / 0.5373 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.4548, allocations: 7.469 kB / 0.5373 GB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4548, allocations: 0 / 0.5373 GB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.4548, allocations: 7.984 kB / 0.5373 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001683/0.455, allocations: 147.2 kB / 0.5374 GB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.455, allocations: 81.02 kB / 0.5375 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.4551, allocations: 0 / 0.5375 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.23e-05/0.4552, allocations: 11.98 kB / 0.5375 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.4552, allocations: 0 / 0.5375 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.4552, allocations: 3.969 kB / 0.5375 GB, free: 9.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.006e-05/0.4553, allocations: 86.91 kB / 0.5376 GB, free: 8.996 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002167/0.4555, allocations: 15.94 kB / 0.5376 GB, free: 8.98 MB / 378.7 MB 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.0001403/0.4556, allocations: 99.23 kB / 0.5377 GB, free: 8.875 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.695e-05/0.4557, allocations: 19.31 kB / 0.5377 GB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4557, allocations: 0 / 0.5377 GB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.075e-05/0.4557, allocations: 7.5 kB / 0.5377 GB, free: 8.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.4559, allocations: 6.219 kB / 0.5377 GB, free: 8.852 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002069/0.4561, allocations: 72.48 kB / 0.5378 GB, free: 8.762 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.4564, allocations: 0.6919 MB / 0.5385 GB, free: 8.043 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4564, allocations: 0 / 0.5385 GB, free: 8.043 MB / 378.7 MB Notification: Performance of Templates: time 0.002266/0.4587, allocations: 0.5754 MB / 0.539 GB, free: 7.484 MB / 378.7 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)