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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.75/0.75, allocations: 110.8 MB / 118.3 MB, free: 10.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00167/0.001669, allocations: 147.4 kB / 144 MB, free: 9.809 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.194e-05, allocations: 7.984 kB / 173.9 MB, free: 11.86 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06476/0.0648, allocations: 25.16 MB / 199 MB, free: 2.652 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.2192, allocations: 45.93 MB / 245 MB, free: 10.01 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.2195, allocations: 77.12 kB / 245 MB, free: 9.938 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2491/0.4686, allocations: 47.97 MB / 293 MB, free: 50.93 MB / 218.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4686, allocations: 1.312 kB / 293 MB, free: 50.93 MB / 218.7 MB Notification: Performance of Transformations before backend: time 9.159e-05/0.4687, allocations: 28.41 kB / 293 MB, free: 50.93 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.003853/0.4726, allocations: 1.491 MB / 294.5 MB, free: 50.21 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4727, allocations: 13.97 kB / 294.5 MB, free: 50.21 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004254/0.4731, allocations: 175.9 kB / 294.7 MB, free: 50.12 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.4747, allocations: 0.7799 MB / 295.5 MB, free: 49.84 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003476/0.4751, allocations: 191.7 kB / 295.7 MB, free: 49.74 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/0.4754, allocations: 92.92 kB / 295.8 MB, free: 49.73 MB / 218.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003517/0.4789, allocations: 1.396 MB / 297.2 MB, free: 49.73 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.4823, allocations: 1.377 MB / 298.5 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.4824, allocations: 12.88 kB / 298.6 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.4826, allocations: 1.156 kB / 298.6 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/0.4826, allocations: 39.19 kB / 298.6 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.4944, allocations: 5.859 MB / 304.5 MB, free: 48.12 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4957, allocations: 0.8448 MB / 305.3 MB, free: 48.05 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005224/0.4962, allocations: 479.1 kB / 305.8 MB, free: 48.04 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.4964, allocations: 90.66 kB / 305.9 MB, free: 47.95 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007456/0.4971, allocations: 0.5983 MB / 306.5 MB, free: 47.81 MB / 218.7 MB Notification: Performance of pre-optimization done (n=89): time 2.374e-06/0.4971, allocations: 0 / 306.5 MB, free: 47.81 MB / 218.7 MB Notification: Performance of matching and sorting (n=98): time 0.004452/0.5016, allocations: 2.988 MB / 309.4 MB, free: 46.18 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.5017, allocations: 294.5 kB / 309.7 MB, free: 45.84 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006748/0.5024, allocations: 0.621 MB / 310.4 MB, free: 45.53 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 7.101e-05/0.5025, allocations: 37.3 kB / 310.4 MB, free: 45.5 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.5028, allocations: 0.6431 MB / 311 MB, free: 44.99 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.503, allocations: 327.2 kB / 311.4 MB, free: 44.74 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.5031, allocations: 0 / 311.4 MB, free: 44.74 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.5032, allocations: 396.8 kB / 311.7 MB, free: 44.39 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.5038, allocations: 483.1 kB / 312.2 MB, free: 44.17 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006876/0.5045, allocations: 0.758 MB / 313 MB, free: 43.6 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/0.5051, allocations: 0.4905 MB / 313.5 MB, free: 43.38 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.5051, allocations: 3.938 kB / 313.5 MB, free: 43.38 MB / 218.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.001809/0.507, allocations: 1.33 MB / 314.8 MB, free: 42.82 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.507, allocations: 7.625 kB / 314.8 MB, free: 42.82 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.507, allocations: 9.062 kB / 314.8 MB, free: 42.82 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000319/0.5073, allocations: 173.9 kB / 315 MB, free: 42.75 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.5085, allocations: 328.9 kB / 315.3 MB, free: 42.73 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/0.5109, allocations: 4.311 MB / 319.6 MB, free: 38.66 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.5121, allocations: 163 kB / 319.8 MB, free: 38.65 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.191e-05/0.5122, allocations: 49.56 kB / 319.8 MB, free: 38.64 MB / 218.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.0002492/0.5124, allocations: 157.5 kB / 320 MB, free: 38.5 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.5126, allocations: 88.91 kB / 320.1 MB, free: 38.46 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.5142, allocations: 1.068 MB / 321.1 MB, free: 37.98 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.5143, allocations: 12.38 kB / 321.1 MB, free: 37.98 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5143, allocations: 3.688 kB / 321.1 MB, free: 37.98 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.5143, allocations: 7.938 kB / 321.2 MB, free: 37.97 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004281/0.5186, allocations: 3.108 MB / 324.3 MB, free: 36.38 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.5186, allocations: 7.562 kB / 324.3 MB, free: 36.37 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009528/0.5196, allocations: 234.2 kB / 324.5 MB, free: 36.35 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005618/0.5201, allocations: 468.2 kB / 325 MB, free: 36.24 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.5202, allocations: 19.19 kB / 325 MB, free: 36.23 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.5214, allocations: 2.138 MB / 327.1 MB, free: 34.29 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5214, allocations: 7.625 kB / 327.1 MB, free: 34.29 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.5238, allocations: 1.998 MB / 329.1 MB, free: 33 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004847/0.5243, allocations: 300.8 kB / 329.4 MB, free: 32.77 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.5245, allocations: 22.47 kB / 329.4 MB, free: 32.77 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008895/0.5254, allocations: 137.2 kB / 329.6 MB, free: 32.75 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.5257, allocations: 146.8 kB / 329.7 MB, free: 32.72 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.831e-05/0.5258, allocations: 40.95 kB / 329.7 MB, free: 32.71 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0005229/0.5263, allocations: 461.5 kB / 330.2 MB, free: 32.49 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5263, allocations: 4 kB / 330.2 MB, free: 32.48 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001024/0.5273, allocations: 269.6 kB / 330.5 MB, free: 32.37 MB / 218.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.0002521/0.5276, allocations: 172 kB / 330.6 MB, free: 32.21 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.5292, allocations: 1.38 MB / 332 MB, free: 30.84 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.5292, allocations: 6.344 kB / 332 MB, free: 30.84 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008402/0.5301, allocations: 0.6803 MB / 332.7 MB, free: 30.17 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008723/0.531, allocations: 148.1 kB / 332.8 MB, free: 30.05 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.5346, allocations: 2.078 MB / 334.9 MB, free: 28.11 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.5353, allocations: 1.168 MB / 336.1 MB, free: 27.1 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.00109/0.5365, allocations: 137.6 kB / 336.2 MB, free: 27 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.5369, allocations: 65.97 kB / 336.3 MB, free: 26.94 MB / 218.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5369, allocations: 0 / 336.3 MB, free: 26.94 MB / 218.7 MB Notification: Performance of Templates: time 0.02097/0.5578, allocations: 13.83 MB / 350.1 MB, free: 15.86 MB / 218.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)