Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.6117/0.6117, allocations: 110.8 MB / 118 MB, free: 14.6 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001789/0.00179, allocations: 160 kB / 143.7 MB, free: 4.93 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.873e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0386/0.03862, allocations: 25.17 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.1738, allocations: 33.83 MB / 232.5 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.1741, allocations: 59.55 kB / 232.5 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.009633/0.1837, allocations: 3.268 MB / 235.8 MB, free: 4.387 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.1838, allocations: 3.875 kB / 235.8 MB, free: 4.387 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006166/0.1844, allocations: 481.6 kB / 236.3 MB, free: 3.98 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1845, allocations: 7.438 kB / 236.3 MB, free: 3.98 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.693e-05/0.1846, allocations: 28.19 kB / 236.3 MB, free: 3.969 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.1848, allocations: 221.1 kB / 236.5 MB, free: 3.754 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.1848, allocations: 14.16 kB / 236.5 MB, free: 3.75 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.1849, allocations: 16.22 kB / 236.5 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000239/0.1851, allocations: 104.5 kB / 236.6 MB, free: 3.746 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1854, allocations: 169.3 kB / 236.8 MB, free: 3.695 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1854, allocations: 1.219 kB / 236.8 MB, free: 3.695 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.1855, allocations: 0 / 236.8 MB, free: 3.695 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.1855, allocations: 7.625 kB / 236.8 MB, free: 3.695 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.1868, allocations: 0.7456 MB / 237.6 MB, free: 3.266 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.187, allocations: 135.7 kB / 237.7 MB, free: 3.223 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1872, allocations: 86.84 kB / 237.8 MB, free: 3.203 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1872, allocations: 3.844 kB / 237.8 MB, free: 3.203 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.1872, allocations: 41.12 kB / 237.8 MB, free: 3.156 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.1872, allocations: 3.906 kB / 237.8 MB, free: 3.156 MB / 170.7 MB Notification: Performance of matching and sorting (n=25): time 0.001035/0.1883, allocations: 0.6968 MB / 238.5 MB, free: 2.656 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.1883, allocations: 80.45 kB / 238.6 MB, free: 2.562 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.1884, allocations: 138 kB / 238.7 MB, free: 2.469 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1885, allocations: 29.7 kB / 238.8 MB, free: 2.434 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.028e-05/0.1885, allocations: 127.3 kB / 238.9 MB, free: 2.328 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.265e-05/0.1886, allocations: 93.62 kB / 239 MB, free: 2.266 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.1886, allocations: 0 / 239 MB, free: 2.266 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.1887, allocations: 327.4 kB / 239.3 MB, free: 1.953 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.088e-05/0.1888, allocations: 46.44 kB / 239.3 MB, free: 1.953 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.1889, allocations: 97.27 kB / 239.4 MB, free: 1.902 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.1891, allocations: 63.25 kB / 239.5 MB, free: 1.898 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1891, allocations: 3.906 kB / 239.5 MB, free: 1.895 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003376/0.1894, allocations: 191.9 kB / 239.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1894, allocations: 3.875 kB / 239.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1895, allocations: 0 / 239.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.1895, allocations: 3.875 kB / 239.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.1898, allocations: 70.52 kB / 239.8 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.1898, allocations: 1.172 kB / 239.8 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.19, allocations: 12.83 kB / 239.8 MB, free: 1.84 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.19, allocations: 7.438 kB / 239.8 MB, free: 1.84 MB / 170.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 (31): * Single equations (assignments): 31 * 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 9.867e-05/0.1901, allocations: 106.6 kB / 239.9 MB, free: 1.73 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.985e-05/0.1902, allocations: 27.28 kB / 239.9 MB, free: 1.715 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.492e-05/0.1903, allocations: 25.02 kB / 239.9 MB, free: 1.711 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1903, allocations: 4.953 kB / 239.9 MB, free: 1.711 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.1903, allocations: 0 / 239.9 MB, free: 1.711 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.1903, allocations: 1.547 kB / 239.9 MB, free: 1.711 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008808/0.1912, allocations: 0.5103 MB / 240.5 MB, free: 1.398 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1912, allocations: 0 / 240.5 MB, free: 1.398 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.1915, allocations: 62.84 kB / 240.5 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.1915, allocations: 3.875 kB / 240.5 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.1916, allocations: 1.125 kB / 240.5 MB, free: 1.395 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.1916, allocations: 7.875 kB / 240.5 MB, free: 1.391 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.1916, allocations: 3.906 kB / 240.5 MB, free: 1.387 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005494/0.1922, allocations: 484.5 kB / 241 MB, free: 1.07 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1923, allocations: 109.5 kB / 241.1 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.1923, allocations: 5.078 kB / 241.1 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.1925, allocations: 4.953 kB / 241.1 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.205e-05/0.1926, allocations: 13.42 kB / 241.1 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1926, allocations: 17.27 kB / 241.2 MB, free: 0.9609 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.233e-05/0.1927, allocations: 112.8 kB / 241.3 MB, free: 0.8828 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003908/0.1931, allocations: 38.75 kB / 241.3 MB, free: 0.8828 MB / 170.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 (25): * Single equations (assignments): 25 * 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.0001746/0.1933, allocations: 100.2 kB / 241.4 MB, free: 0.793 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.1936, allocations: 145.4 kB / 241.5 MB, free: 0.7812 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1936, allocations: 0 / 241.5 MB, free: 0.7812 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1937, allocations: 85.61 kB / 241.6 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.1941, allocations: 28.23 kB / 241.7 MB, free: 0.7617 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.1952, allocations: 0.5161 MB / 242.2 MB, free: 440 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.1957, allocations: 0.7716 MB / 242.9 MB, free: 15.72 MB / 186.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1957, allocations: 0 / 242.9 MB, free: 15.72 MB / 186.7 MB Notification: Performance of Templates: time 0.006326/0.202, allocations: 1.917 MB / 244.9 MB, free: 15.57 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1)