Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator") [: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/Complex 3.2.2+maint.om/package.mo): time 0.001987/0.001987, allocations: 191.3 kB / 8.139 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.132/1.132, allocations: 194.2 MB / 202.8 MB, free: 8.805 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001772/0.001773, allocations: 119.1 kB / 247.7 MB, free: 6.215 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.302e-06, allocations: 0 / 297.6 MB, free: 7.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07779/0.07781, allocations: 44.49 MB / 342 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.2764, allocations: 71.99 MB / 414 MB, free: 23.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.2766, allocations: 66.81 kB / 414.1 MB, free: 23.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.009036/0.2857, allocations: 3.359 MB / 417.5 MB, free: 20.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.2857, allocations: 4 kB / 417.5 MB, free: 20.35 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0004835/0.2862, allocations: 490.3 kB / 417.9 MB, free: 19.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2862, allocations: 12.03 kB / 418 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.2863, allocations: 23.72 kB / 418 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.2865, allocations: 221 kB / 418.2 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2865, allocations: 8 kB / 418.2 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.2865, allocations: 17.98 kB / 418.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002219/0.2868, allocations: 110.6 kB / 418.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.287, allocations: 174 kB / 418.5 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.287, allocations: 11.59 kB / 418.5 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.2871, allocations: 3.984 kB / 418.5 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2871, allocations: 8 kB / 418.5 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009342/0.288, allocations: 0.7417 MB / 419.3 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.2882, allocations: 127.8 kB / 419.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.2884, allocations: 95.36 kB / 419.5 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.2884, allocations: 3.938 kB / 419.5 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.2884, allocations: 38.56 kB / 419.5 MB, free: 18.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.2884, allocations: 0 / 419.5 MB, free: 18.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009265/0.2894, allocations: 0.7147 MB / 420.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.752e-05/0.2894, allocations: 81.11 kB / 420.3 MB, free: 17.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.538e-05/0.2895, allocations: 141.6 kB / 420.5 MB, free: 17.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.2895, allocations: 25.7 kB / 420.5 MB, free: 17.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.324e-05/0.2895, allocations: 126.8 kB / 420.6 MB, free: 17.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.2896, allocations: 94.03 kB / 420.7 MB, free: 17.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.2896, allocations: 0 / 420.7 MB, free: 17.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.333e-05/0.2896, allocations: 335.3 kB / 421 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.389e-05/0.2897, allocations: 52.17 kB / 421.1 MB, free: 16.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.444e-05/0.2898, allocations: 95.81 kB / 421.2 MB, free: 16.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.2899, allocations: 57.78 kB / 421.2 MB, free: 16.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.29, allocations: 7.984 kB / 421.2 MB, free: 16.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002886/0.2902, allocations: 197.7 kB / 421.4 MB, free: 16.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.2903, allocations: 5.562 kB / 421.4 MB, free: 16.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2903, allocations: 0 / 421.4 MB, free: 16.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2903, allocations: 6.625 kB / 421.4 MB, free: 16.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.2906, allocations: 67.16 kB / 421.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2906, allocations: 0 / 421.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.2907, allocations: 20.48 kB / 421.5 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.2908, allocations: 11.98 kB / 421.5 MB, free: 16.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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 5.266e-05/0.2908, allocations: 104.8 kB / 421.6 MB, free: 16.37 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.288e-05/0.2909, allocations: 19.38 kB / 421.7 MB, free: 16.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.115e-05/0.2909, allocations: 21.16 kB / 421.7 MB, free: 16.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.291, allocations: 12.36 kB / 421.7 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.291, allocations: 3.906 kB / 421.7 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.291, allocations: 7.984 kB / 421.7 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000589/0.2916, allocations: 0.5137 MB / 422.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2916, allocations: 3.984 kB / 422.2 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.2919, allocations: 67.56 kB / 422.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2919, allocations: 4 kB / 422.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.2919, allocations: 3.062 kB / 422.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2919, allocations: 4 kB / 422.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.292, allocations: 3.938 kB / 422.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000371/0.2923, allocations: 496 kB / 422.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.2924, allocations: 92.86 kB / 422.9 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.2924, allocations: 4 kB / 422.9 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2926, allocations: 15.89 kB / 422.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/0.2927, allocations: 15.61 kB / 422.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2927, allocations: 4 kB / 422.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.682e-05/0.2927, allocations: 114.4 kB / 423 MB, free: 15.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003284/0.2931, allocations: 47.94 kB / 423.1 MB, free: 15.01 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0001165/0.2932, allocations: 91.25 kB / 423.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.2934, allocations: 149.7 kB / 423.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2935, allocations: 1.406 kB / 423.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.2936, allocations: 79.81 kB / 423.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.2939, allocations: 21.8 kB / 423.4 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008902/0.2948, allocations: 0.5177 MB / 423.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.2951, allocations: 0.7781 MB / 424.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2951, allocations: 1.594 kB / 424.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of Templates: time 0.004074/0.2991, allocations: 1.965 MB / 426.7 MB, free: 11.49 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1)