Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.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.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") [: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.7106/0.7106, allocations: 110.8 MB / 118 MB, free: 14.57 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001662/0.001662, allocations: 156 kB / 143.7 MB, free: 4.906 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 9.297e-06/9.537e-06, allocations: 0 / 173.5 MB, free: 23.02 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03868/0.03871, allocations: 25.17 MB / 198.6 MB, free: 13.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.1737, allocations: 45.85 MB / 244.5 MB, free: 3.352 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.174, allocations: 78.06 kB / 244.6 MB, free: 3.336 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.1155/0.2895, allocations: 47.88 MB / 292.4 MB, free: 15.03 MB / 218.7 MB Notification: Performance of Transformations before backend: time 7.799e-05/0.2896, allocations: 28 kB / 292.5 MB, free: 15 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.003204/0.2928, allocations: 1.53 MB / 294 MB, free: 13.42 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.2929, allocations: 8.031 kB / 294 MB, free: 13.41 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004225/0.2933, allocations: 178 kB / 294.2 MB, free: 13.24 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.2953, allocations: 0.7906 MB / 295 MB, free: 12.4 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004324/0.2958, allocations: 196 kB / 295.2 MB, free: 12.19 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003402/0.2961, allocations: 91.91 kB / 295.3 MB, free: 12.1 MB / 218.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002779/0.2989, allocations: 1.4 MB / 296.7 MB, free: 10.7 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.3015, allocations: 1.37 MB / 298 MB, free: 9.301 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.153e-05/0.3015, allocations: 7.906 kB / 298 MB, free: 9.293 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3017, allocations: 0 / 298 MB, free: 9.293 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.3017, allocations: 36 kB / 298.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/0.3125, allocations: 5.892 MB / 304 MB, free: 3.141 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3137, allocations: 0.5979 MB / 304.6 MB, free: 2.527 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007881/0.3145, allocations: 480 kB / 305 MB, free: 2.051 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001935/0.3147, allocations: 93.83 kB / 305.1 MB, free: 1.941 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009856/0.3157, allocations: 0.6048 MB / 305.7 MB, free: 1.293 MB / 218.7 MB Notification: Performance of pre-optimization done (n=89): time 3.637e-06/0.3158, allocations: 0 / 305.7 MB, free: 1.293 MB / 218.7 MB Notification: Performance of matching and sorting (n=98): time 0.006421/0.3222, allocations: 2.964 MB / 308.7 MB, free: 14.23 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.3224, allocations: 295.5 kB / 309 MB, free: 13.88 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009413/0.3233, allocations: 0.6245 MB / 309.6 MB, free: 13.25 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.3235, allocations: 33.7 kB / 309.6 MB, free: 13.21 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005661/0.324, allocations: 0.5643 MB / 310.2 MB, free: 12.63 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000401/0.3244, allocations: 315.3 kB / 310.5 MB, free: 12.32 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.505e-05/0.3245, allocations: 0 / 310.5 MB, free: 12.32 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003109/0.3248, allocations: 402.8 kB / 310.9 MB, free: 11.92 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009406/0.3258, allocations: 482.6 kB / 311.4 MB, free: 11.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.3268, allocations: 0.7617 MB / 312.1 MB, free: 10.57 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009212/0.3278, allocations: 0.4913 MB / 312.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.3278, allocations: 3.906 kB / 312.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002497/0.3303, allocations: 1.333 MB / 314 MB, free: 8.723 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3303, allocations: 4 kB / 314 MB, free: 8.719 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3303, allocations: 4 kB / 314 MB, free: 8.715 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004336/0.3308, allocations: 170.5 kB / 314.1 MB, free: 8.539 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.3322, allocations: 335.5 kB / 314.5 MB, free: 8.211 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.3359, allocations: 4.015 MB / 318.5 MB, free: 3.855 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/0.3375, allocations: 172 kB / 318.6 MB, free: 3.688 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.3376, allocations: 56 kB / 318.7 MB, free: 3.633 MB / 234.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.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: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003879/0.338, allocations: 151.4 kB / 318.9 MB, free: 3.477 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.3382, allocations: 90.88 kB / 318.9 MB, free: 3.387 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.3406, allocations: 1.06 MB / 320 MB, free: 2.309 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3406, allocations: 15.91 kB / 320 MB, free: 2.293 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.3406, allocations: 0 / 320 MB, free: 2.293 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3406, allocations: 11.91 kB / 320 MB, free: 2.281 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09044/0.4311, allocations: 3.127 MB / 323.2 MB, free: 83.34 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.4311, allocations: 3.875 kB / 323.2 MB, free: 83.34 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.4323, allocations: 246.3 kB / 323.4 MB, free: 83.34 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006346/0.4329, allocations: 440.9 kB / 323.8 MB, free: 83.32 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.744e-05/0.433, allocations: 20.31 kB / 323.8 MB, free: 83.32 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.4345, allocations: 2.125 MB / 326 MB, free: 81.62 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.4346, allocations: 4.75 kB / 326 MB, free: 81.62 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002769/0.4373, allocations: 2.009 MB / 328 MB, free: 81.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005193/0.4379, allocations: 302 kB / 328.3 MB, free: 81 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.4381, allocations: 20.86 kB / 328.3 MB, free: 81 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/0.439, allocations: 143.6 kB / 328.4 MB, free: 81 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.4393, allocations: 142.8 kB / 328.6 MB, free: 81 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.902e-05/0.4394, allocations: 32.81 kB / 328.6 MB, free: 81 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0005814/0.44, allocations: 471 kB / 329.1 MB, free: 80.9 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001018/0.441, allocations: 270.4 kB / 329.3 MB, free: 80.9 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 88 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003413/0.4414, allocations: 161.1 kB / 329.5 MB, free: 80.82 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.4432, allocations: 1.364 MB / 330.9 MB, free: 80.52 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4432, allocations: 3.438 kB / 330.9 MB, free: 80.52 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009481/0.4442, allocations: 0.6757 MB / 331.5 MB, free: 80.42 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008543/0.445, allocations: 152.7 kB / 331.7 MB, free: 80.42 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/0.4498, allocations: 2.076 MB / 333.8 MB, free: 79.81 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009496/0.4508, allocations: 1.236 MB / 335 MB, free: 79.09 MB / 234.7 MB Notification: Performance of SimCode: time 1.412e-06/0.4508, allocations: 0 / 335 MB, free: 79.09 MB / 234.7 MB Notification: Performance of Templates: time 0.02341/0.4742, allocations: 15.66 MB / 350.7 MB, free: 78.34 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)