Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.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.8855/0.8855, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001726/0.001727, allocations: 164 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.236e-06/8.276e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0474/0.04743, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1594/0.2068, allocations: 36.17 MB / 234.8 MB, free: 4.34 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.2072, allocations: 61.72 kB / 234.8 MB, free: 4.34 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01895/0.2261, allocations: 6.579 MB / 241.4 MB, free: 3.566 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.2262, allocations: 7.719 kB / 241.4 MB, free: 3.566 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001418/0.2276, allocations: 0.6827 MB / 242.1 MB, free: 3.043 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.2277, allocations: 10.88 kB / 242.1 MB, free: 3.039 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.2279, allocations: 58.34 kB / 242.2 MB, free: 3.008 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.2284, allocations: 296.8 kB / 242.5 MB, free: 2.742 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.2285, allocations: 11.62 kB / 242.5 MB, free: 2.742 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.351e-05/0.2286, allocations: 27.12 kB / 242.5 MB, free: 2.738 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007675/0.2293, allocations: 400.3 kB / 242.9 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006972/0.23, allocations: 380.2 kB / 243.3 MB, free: 2.578 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.2301, allocations: 3.312 kB / 243.3 MB, free: 2.578 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.2301, allocations: 0 / 243.3 MB, free: 2.578 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.2302, allocations: 15.44 kB / 243.3 MB, free: 2.574 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.2322, allocations: 1.062 MB / 244.4 MB, free: 2.004 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000536/0.2328, allocations: 254.2 kB / 244.6 MB, free: 1.969 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.2332, allocations: 224.3 kB / 244.8 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.2332, allocations: 8.234 kB / 244.8 MB, free: 1.945 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2332, allocations: 42.67 kB / 244.9 MB, free: 1.902 MB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 2.474e-06/0.2332, allocations: 0 / 244.9 MB, free: 1.902 MB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.002997/0.2363, allocations: 1.522 MB / 246.4 MB, free: 1.188 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.2363, allocations: 59.5 kB / 246.5 MB, free: 1.121 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.2365, allocations: 213.3 kB / 246.7 MB, free: 1.004 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.2366, allocations: 33.42 kB / 246.7 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.601e-05/0.2366, allocations: 162.6 kB / 246.9 MB, free: 0.832 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.2368, allocations: 167.7 kB / 247 MB, free: 0.7109 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.2368, allocations: 0 / 247 MB, free: 0.7109 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.2369, allocations: 345.8 kB / 247.4 MB, free: 396 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.2372, allocations: 198.1 kB / 247.5 MB, free: 388 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/0.2376, allocations: 243.6 kB / 247.8 MB, free: 348 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.2379, allocations: 169.4 kB / 248 MB, free: 320 kB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2379, allocations: 0 / 248 MB, free: 320 kB / 170.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001231/0.2392, allocations: 0.6637 MB / 248.6 MB, free: 160 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2392, allocations: 5.062 kB / 248.6 MB, free: 160 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2392, allocations: 0 / 248.6 MB, free: 160 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.24, allocations: 497.8 kB / 249.1 MB, free: 32 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.2403, allocations: 89.23 kB / 249.2 MB, free: 12 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.2418, allocations: 1.452 MB / 250.6 MB, free: 14.91 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/0.2424, allocations: 101.8 kB / 250.7 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.67e-05/0.2424, allocations: 23.23 kB / 250.8 MB, free: 14.87 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002267/0.2427, allocations: 123.5 kB / 250.9 MB, free: 14.75 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.2428, allocations: 37.62 kB / 250.9 MB, free: 14.73 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.2429, allocations: 47.36 kB / 251 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2429, allocations: 6.281 kB / 251 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2429, allocations: 0 / 251 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.2429, allocations: 3.984 kB / 251 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.2456, allocations: 1.269 MB / 252.2 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.2456, allocations: 1.219 kB / 252.3 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.246, allocations: 81.3 kB / 252.3 MB, free: 14.11 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008139/0.2468, allocations: 469.5 kB / 252.8 MB, free: 13.98 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.116e-05/0.2469, allocations: 20.72 kB / 252.8 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.2484, allocations: 1.411 MB / 254.2 MB, free: 12.86 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.2484, allocations: 1.375 kB / 254.2 MB, free: 12.86 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001714/0.2501, allocations: 1.004 MB / 255.2 MB, free: 12.46 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.2503, allocations: 158.3 kB / 255.4 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.2505, allocations: 9.219 kB / 255.4 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.251, allocations: 80.42 kB / 255.5 MB, free: 12.3 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.2512, allocations: 104.5 kB / 255.6 MB, free: 12.25 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.875e-05/0.2513, allocations: 25.94 kB / 255.6 MB, free: 12.24 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001586/0.2514, allocations: 167.6 kB / 255.8 MB, free: 12.15 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005014/0.2519, allocations: 104.1 kB / 255.9 MB, free: 12.14 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002533/0.2522, allocations: 136 kB / 256 MB, free: 12.04 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000966/0.2532, allocations: 0.489 MB / 256.5 MB, free: 12 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2532, allocations: 0 / 256.5 MB, free: 12 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005986/0.2538, allocations: 285.6 kB / 256.8 MB, free: 11.96 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.2543, allocations: 41.17 kB / 256.8 MB, free: 11.95 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.2568, allocations: 0.8895 MB / 257.7 MB, free: 11.39 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/0.2576, allocations: 0.851 MB / 258.5 MB, free: 10.62 MB / 186.7 MB Notification: Performance of SimCode: time 1.292e-06/0.2576, allocations: 1.469 kB / 258.5 MB, free: 10.62 MB / 186.7 MB Notification: Performance of Templates: time 0.01508/0.2727, allocations: 7.971 MB / 266.5 MB, free: 4.457 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)