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.6209/0.6209, allocations: 110.9 MB / 125.9 MB, free: 6.211 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001601/0.001601, allocations: 154.5 kB / 151.9 MB, free: 4.984 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002352/0.0002353, allocations: 7.984 kB / 184.9 MB, free: 3.906 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 25.15 MB / 210.1 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05648/0.1821, allocations: 46.69 MB / 256.8 MB, free: 3.125 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.1823, allocations: 75.95 kB / 256.8 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2032/0.3855, allocations: 48.21 MB / 305 MB, free: 51.01 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3856, allocations: 0 / 305 MB, free: 51.01 MB / 218.7 MB Notification: Performance of Transformations before backend: time 6.524e-05/0.3856, allocations: 32.95 kB / 305.1 MB, free: 51.01 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.002504/0.3882, allocations: 1.6 MB / 306.7 MB, free: 50.21 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3882, allocations: 7.688 kB / 306.7 MB, free: 50.21 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.3884, allocations: 177.7 kB / 306.9 MB, free: 50.13 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009844/0.3894, allocations: 0.7854 MB / 307.6 MB, free: 49.84 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.3897, allocations: 246.8 kB / 307.9 MB, free: 49.74 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/0.3899, allocations: 155 kB / 308 MB, free: 49.73 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002846/0.3927, allocations: 1.752 MB / 309.8 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/0.3928, allocations: 11.67 kB / 309.8 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/0.3929, allocations: 64.06 kB / 309.9 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.393, allocations: 38.8 kB / 309.9 MB, free: 49.62 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.3962, allocations: 1.795 MB / 311.7 MB, free: 49.6 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007415/0.4036, allocations: 6.111 MB / 317.8 MB, free: 47.27 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.4057, allocations: 1.084 MB / 318.9 MB, free: 46.84 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.4059, allocations: 92.27 kB / 319 MB, free: 46.75 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.4072, allocations: 0.786 MB / 319.8 MB, free: 46.39 MB / 218.7 MB Notification: Performance of pre-optimization done (n=89): time 2.735e-06/0.4072, allocations: 0 / 319.8 MB, free: 46.39 MB / 218.7 MB Notification: Performance of matching and sorting (n=98): time 0.008636/0.4158, allocations: 4.783 MB / 324.5 MB, free: 43.38 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.4159, allocations: 299.5 kB / 324.8 MB, free: 43.03 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007398/0.4167, allocations: 0.7028 MB / 325.5 MB, free: 42.32 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 7.223e-05/0.4167, allocations: 49.7 kB / 325.6 MB, free: 42.26 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.4171, allocations: 0.646 MB / 326.2 MB, free: 41.61 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.4173, allocations: 335 kB / 326.6 MB, free: 41.29 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.19e-05/0.4173, allocations: 28.03 kB / 326.6 MB, free: 41.26 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.4174, allocations: 402.7 kB / 327 MB, free: 40.86 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.4186, allocations: 0.6507 MB / 327.6 MB, free: 40.21 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.4199, allocations: 0.9463 MB / 328.6 MB, free: 39.15 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.421, allocations: 0.6497 MB / 329.2 MB, free: 38.51 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.421, allocations: 0 / 329.2 MB, free: 38.51 MB / 218.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.00306/0.4241, allocations: 1.747 MB / 331 MB, free: 36.78 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4241, allocations: 9.875 kB / 331 MB, free: 36.77 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4241, allocations: 5.406 kB / 331 MB, free: 36.77 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003504/0.4245, allocations: 190.9 kB / 331.2 MB, free: 36.59 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.4256, allocations: 319.5 kB / 331.5 MB, free: 36.27 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.4281, allocations: 4.49 MB / 336 MB, free: 31.39 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4292, allocations: 188 kB / 336.2 MB, free: 31.21 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.243e-05/0.4294, allocations: 48 kB / 336.2 MB, free: 31.16 MB / 218.7 MB 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 () * Number of clocked 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.0005751/0.4299, allocations: 370.3 kB / 336.6 MB, free: 30.8 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.4301, allocations: 102.7 kB / 336.7 MB, free: 30.7 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.4326, allocations: 1.45 MB / 338.1 MB, free: 29.23 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4327, allocations: 12.84 kB / 338.1 MB, free: 29.22 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4327, allocations: 0 / 338.1 MB, free: 29.22 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4327, allocations: 7.984 kB / 338.1 MB, free: 29.21 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005203/0.4379, allocations: 3.648 MB / 341.8 MB, free: 25.47 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.4379, allocations: 4 kB / 341.8 MB, free: 25.47 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009085/0.4388, allocations: 239.9 kB / 342 MB, free: 25.23 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005309/0.4394, allocations: 473.8 kB / 342.5 MB, free: 24.8 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.4395, allocations: 31.98 kB / 342.5 MB, free: 24.77 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.4406, allocations: 2.171 MB / 344.7 MB, free: 22.45 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4406, allocations: 8.891 kB / 344.7 MB, free: 22.44 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.4443, allocations: 2.513 MB / 347.2 MB, free: 19.76 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.4447, allocations: 307.8 kB / 347.5 MB, free: 19.44 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.4448, allocations: 32 kB / 347.5 MB, free: 19.41 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000819/0.4457, allocations: 153.1 kB / 347.7 MB, free: 19.26 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.4459, allocations: 156.3 kB / 347.8 MB, free: 19.11 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.957e-05/0.446, allocations: 35.98 kB / 347.9 MB, free: 19.07 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0005856/0.4466, allocations: 0.5342 MB / 348.4 MB, free: 18.54 MB / 218.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4466, allocations: 0 / 348.4 MB, free: 18.54 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.0009572/0.4476, allocations: 304 kB / 348.7 MB, free: 18.25 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.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * 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.0002752/0.4478, allocations: 187.4 kB / 348.9 MB, free: 18.06 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002745/0.4506, allocations: 1.768 MB / 350.7 MB, free: 16.25 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4506, allocations: 1.812 kB / 350.7 MB, free: 16.25 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.452, allocations: 0.8583 MB / 351.5 MB, free: 15.38 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009905/0.453, allocations: 198.7 kB / 351.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.4574, allocations: 3.343 MB / 355.1 MB, free: 11.83 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.4579, allocations: 1.155 MB / 356.2 MB, free: 10.65 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0007718/0.4587, allocations: 138.8 kB / 356.3 MB, free: 10.52 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.459, allocations: 75.42 kB / 356.4 MB, free: 10.44 MB / 218.7 MB Notification: Performance of SimCode: time 9.82e-07/0.459, allocations: 0 / 356.4 MB, free: 10.44 MB / 218.7 MB Notification: Performance of Templates: time 0.02238/0.4814, allocations: 15.33 MB / 371.7 MB, free: 11.22 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)