Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001029/0.001029, allocations: 183.8 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.398/1.398, allocations: 194.3 MB / 203.1 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001661/0.001661, allocations: 124.6 kB / 248.1 MB, free: 20 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.719e-05, allocations: 4 kB / 298.1 MB, free: 35.48 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08069, allocations: 44.49 MB / 342.6 MB, free: 6.984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.309/0.3898, allocations: 88.25 MB / 430.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.3901, allocations: 85.34 kB / 430.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08228/0.4724, allocations: 37.74 MB / 468.7 MB, free: 192 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4725, allocations: 0 / 468.7 MB, free: 192 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.569e-05/0.4725, allocations: 32 kB / 468.7 MB, free: 160 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.003028/0.4756, allocations: 1.51 MB / 470.2 MB, free: 14.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4756, allocations: 12.03 kB / 470.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/0.476, allocations: 178 kB / 470.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.4771, allocations: 0.785 MB / 471.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.4774, allocations: 186.8 kB / 471.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.4776, allocations: 94.78 kB / 471.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002354/0.48, allocations: 1.302 MB / 472.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/0.4825, allocations: 1.347 MB / 474.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.942e-05/0.4826, allocations: 11.86 kB / 474.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.4827, allocations: 7.922 kB / 474.1 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.985e-05/0.4828, allocations: 36 kB / 474.1 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/0.4935, allocations: 5.783 MB / 479.9 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.495, allocations: 0.7928 MB / 480.7 MB, free: 4.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007182/0.4957, allocations: 456.6 kB / 481.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.619e-05/0.4958, allocations: 12.78 kB / 481.2 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/0.4969, allocations: 0.5697 MB / 481.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 3.266e-06/0.4969, allocations: 0 / 481.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01333/0.5103, allocations: 5.326 MB / 487.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/0.5105, allocations: 300 kB / 487.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.5118, allocations: 0.6089 MB / 488 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.5119, allocations: 29.7 kB / 488 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007399/0.5127, allocations: 0.6623 MB / 488.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004341/0.5131, allocations: 398.1 kB / 489.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.5132, allocations: 0 / 489.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.5135, allocations: 402.8 kB / 489.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.5146, allocations: 0.6211 MB / 490.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.5159, allocations: 0.9158 MB / 491 MB, free: 10.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.5171, allocations: 0.6078 MB / 491.6 MB, free: 9.484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5171, allocations: 0 / 491.6 MB, free: 9.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003107/0.5202, allocations: 1.62 MB / 493.2 MB, free: 7.848 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.5203, allocations: 12 kB / 493.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/0.5203, allocations: 11.98 kB / 493.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004091/0.5207, allocations: 170.5 kB / 493.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.5232, allocations: 367.5 kB / 493.8 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/0.5274, allocations: 4.296 MB / 498.1 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.5292, allocations: 175.9 kB / 498.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002296/0.5295, allocations: 52 kB / 498.3 MB, free: 2.422 MB / 346.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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000463/0.53, allocations: 158.6 kB / 498.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.5302, allocations: 106.8 kB / 498.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/0.5328, allocations: 1.393 MB / 499.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5329, allocations: 12 kB / 499.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.5329, allocations: 0 / 499.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.5329, allocations: 7.969 kB / 500 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007667/0.5406, allocations: 3.921 MB / 0.4921 GB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/0.5406, allocations: 12 kB / 0.4921 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.542, allocations: 288.1 kB / 0.4923 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006348/0.5426, allocations: 325.5 kB / 0.4927 GB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.5428, allocations: 12 kB / 0.4927 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.5447, allocations: 2.066 MB / 0.4947 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/0.5448, allocations: 19.88 kB / 0.4947 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.5489, allocations: 2.459 MB / 0.4971 GB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008779/0.5498, allocations: 323.7 kB / 0.4974 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004112/0.5502, allocations: 24 kB / 0.4974 GB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.5517, allocations: 139.9 kB / 0.4976 GB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004478/0.5521, allocations: 188.3 kB / 0.4978 GB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.5523, allocations: 47.98 kB / 0.4978 GB, free: 6.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001045/0.5533, allocations: 459.2 kB / 0.4982 GB, free: 5.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5533, allocations: 0 / 0.4982 GB, free: 5.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0024/0.5557, allocations: 304 kB / 0.4985 GB, free: 5.461 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (114): * Single equations (assignments): 112 * 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.0004812/0.5562, allocations: 166.9 kB / 0.4987 GB, free: 5.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.5594, allocations: 1.667 MB / 0.5003 GB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/0.5595, allocations: 4.625 kB / 0.5003 GB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.5612, allocations: 0.8931 MB / 0.5012 GB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.5625, allocations: 129.7 kB / 0.5013 GB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005882/0.5684, allocations: 2.383 MB / 0.5036 GB, free: 20 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.5698, allocations: 1.214 MB / 0.5048 GB, free: 14.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001196/0.571, allocations: 152 kB / 0.505 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.5715, allocations: 83.38 kB / 0.5051 GB, free: 14.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/0.5715, allocations: 0 / 0.5051 GB, free: 14.54 MB / 378.7 MB Notification: Performance of Templates: time 0.02952/0.601, allocations: 15.74 MB / 0.5204 GB, free: 14.79 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)