Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction") [: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.6767/0.6767, allocations: 110.7 MB / 118 MB, free: 3.629 MB / 94.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001648/0.001648, allocations: 152 kB / 143.7 MB, free: 9.984 MB / 126.1 MB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.951e-06, allocations: 0 / 173.5 MB, free: 25.09 MB / 142.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04155/0.04157, allocations: 25.17 MB / 198.6 MB, free: 2.539 MB / 142.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04675/0.08837, allocations: 36.65 MB / 235.3 MB, free: 13.82 MB / 190.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.08864, allocations: 63.97 kB / 235.3 MB, free: 13.76 MB / 190.1 MB Notification: Performance of FrontEnd: time 0.04135/0.13, allocations: 12.7 MB / 248 MB, free: 1.016 MB / 190.1 MB Notification: Performance of Transformations before backend: time 3.062e-05/0.1301, allocations: 8 kB / 248.1 MB, free: 1.008 MB / 190.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.06598/0.1961, allocations: 1.156 MB / 249.2 MB, free: 64.21 MB / 190.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1961, allocations: 10.62 kB / 249.2 MB, free: 64.21 MB / 190.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005268/0.1967, allocations: 78.94 kB / 249.3 MB, free: 64.18 MB / 190.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.1978, allocations: 0.5741 MB / 249.9 MB, free: 63.95 MB / 190.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.1979, allocations: 13.44 kB / 249.9 MB, free: 63.95 MB / 190.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.1981, allocations: 19.28 kB / 249.9 MB, free: 63.95 MB / 190.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002503/0.2006, allocations: 2.121 MB / 252 MB, free: 63.95 MB / 190.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.2024, allocations: 1.365 MB / 253.4 MB, free: 63.89 MB / 190.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.2025, allocations: 5.5 kB / 253.4 MB, free: 63.88 MB / 190.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.2026, allocations: 3.812 kB / 253.4 MB, free: 63.88 MB / 190.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.2026, allocations: 7.562 kB / 253.4 MB, free: 63.88 MB / 190.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.2087, allocations: 3.06 MB / 256.5 MB, free: 63.4 MB / 190.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.2103, allocations: 0.9196 MB / 257.4 MB, free: 63.37 MB / 190.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.2115, allocations: 0.8392 MB / 258.2 MB, free: 63.35 MB / 190.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.04e-05/0.2115, allocations: 4.078 kB / 258.2 MB, free: 63.35 MB / 190.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001584/0.2131, allocations: 1.184 MB / 259.4 MB, free: 63.12 MB / 190.1 MB Notification: Performance of pre-optimization done (n=44): time 5.22e-06/0.2131, allocations: 0 / 259.4 MB, free: 63.12 MB / 190.1 MB Notification: Performance of matching and sorting (n=46): time 0.008178/0.2213, allocations: 5.516 MB / 264.9 MB, free: 59.54 MB / 190.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.2214, allocations: 133.2 kB / 265.1 MB, free: 59.38 MB / 190.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.2225, allocations: 0.7511 MB / 265.8 MB, free: 58.7 MB / 190.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.2226, allocations: 43.86 kB / 265.9 MB, free: 58.65 MB / 190.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.2227, allocations: 204.6 kB / 266.1 MB, free: 58.47 MB / 190.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.2229, allocations: 148.8 kB / 266.2 MB, free: 58.34 MB / 190.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.805e-05/0.223, allocations: 0.7031 kB / 266.2 MB, free: 58.34 MB / 190.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2232, allocations: 383 kB / 266.6 MB, free: 57.98 MB / 190.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.2243, allocations: 1.017 MB / 267.6 MB, free: 57.11 MB / 190.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.2254, allocations: 1.11 MB / 268.7 MB, free: 56.08 MB / 190.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.2265, allocations: 0.9439 MB / 269.6 MB, free: 55.14 MB / 190.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.2265, allocations: 3.969 kB / 269.6 MB, free: 55.14 MB / 190.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003917/0.2304, allocations: 3.162 MB / 272.8 MB, free: 51.98 MB / 190.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2304, allocations: 4 kB / 272.8 MB, free: 51.98 MB / 190.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.2304, allocations: 0 / 272.8 MB, free: 51.98 MB / 190.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009343/0.2398, allocations: 10.93 MB / 283.7 MB, free: 41.25 MB / 190.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.2404, allocations: 135.5 kB / 283.9 MB, free: 41.12 MB / 190.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006175/0.2466, allocations: 6.678 MB / 290.5 MB, free: 34.2 MB / 190.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.2483, allocations: 323.8 kB / 290.9 MB, free: 33.89 MB / 190.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.2485, allocations: 111.3 kB / 291 MB, free: 33.78 MB / 190.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004709/0.249, allocations: 187.4 kB / 291.2 MB, free: 33.58 MB / 190.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/0.2492, allocations: 71.16 kB / 291.2 MB, free: 33.51 MB / 190.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.2494, allocations: 90.03 kB / 291.3 MB, free: 33.42 MB / 190.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.2494, allocations: 12 kB / 291.3 MB, free: 33.41 MB / 190.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.2495, allocations: 0 / 291.3 MB, free: 33.41 MB / 190.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.2495, allocations: 7.922 kB / 291.3 MB, free: 33.4 MB / 190.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006502/0.256, allocations: 4.337 MB / 295.7 MB, free: 29.02 MB / 190.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.256, allocations: 6.484 kB / 295.7 MB, free: 29.02 MB / 190.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/0.2565, allocations: 95.94 kB / 295.8 MB, free: 28.92 MB / 190.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01018/0.2667, allocations: 10.82 MB / 306.6 MB, free: 18.07 MB / 190.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/0.267, allocations: 43.95 kB / 306.6 MB, free: 18.03 MB / 190.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006244/0.2733, allocations: 6.594 MB / 313.2 MB, free: 11.18 MB / 190.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.2733, allocations: 0 / 313.2 MB, free: 11.18 MB / 190.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005033/0.2783, allocations: 4.14 MB / 317.4 MB, free: 6.992 MB / 190.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008074/0.2792, allocations: 404.1 kB / 317.8 MB, free: 6.578 MB / 190.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.2795, allocations: 16 kB / 317.8 MB, free: 6.562 MB / 190.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.2811, allocations: 343.7 kB / 318.1 MB, free: 6.227 MB / 190.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004707/0.2816, allocations: 223.5 kB / 318.3 MB, free: 6.008 MB / 190.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/0.2818, allocations: 99.95 kB / 318.4 MB, free: 5.91 MB / 190.1 MB Notification: Performance of sort global known variables: time 0.0006653/0.2825, allocations: 0.585 MB / 319 MB, free: 5.332 MB / 190.1 MB Notification: Performance of remove unused functions: time 0.0008992/0.2834, allocations: 174.6 kB / 319.2 MB, free: 5.164 MB / 190.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003473/0.2838, allocations: 154.9 kB / 319.3 MB, free: 5.016 MB / 190.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.2855, allocations: 1.622 MB / 321 MB, free: 3.363 MB / 190.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2855, allocations: 0 / 321 MB, free: 3.363 MB / 190.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009856/0.2865, allocations: 0.9206 MB / 321.9 MB, free: 2.414 MB / 190.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.2871, allocations: 62.77 kB / 321.9 MB, free: 2.359 MB / 190.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.2905, allocations: 1.64 MB / 323.6 MB, free: 0.7031 MB / 190.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0773/0.3678, allocations: 0.9668 MB / 324.5 MB, free: 60.2 MB / 190.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3679, allocations: 5.719 kB / 324.6 MB, free: 60.2 MB / 190.1 MB Notification: Performance of Templates: time 0.02303/0.3909, allocations: 13.53 MB / 338.1 MB, free: 57.49 MB / 190.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)