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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009625/0.0009626, allocations: 99.8 kB / 16.3 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 184 kB / 17.2 MB, free: 5.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.4 MB / 223.3 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004755/0.0004757, allocations: 16 kB / 280.1 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08877/0.08926, allocations: 47.58 MB / 327.7 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008612/0.0979, allocations: 7.371 MB / 335.1 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005203/0.1031, allocations: 2.324 MB / 337.4 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.1048, allocations: 23.94 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.1061, allocations: 230.3 kB / 337.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002496/0.1086, allocations: 0.5141 MB / 338.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.1101, allocations: 347.6 kB / 338.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002835/0.113, allocations: 1.428 MB / 339.9 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.1146, allocations: 0.8132 MB / 340.7 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.1161, allocations: 0.576 MB / 341.3 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001411/0.1175, allocations: 0.6494 MB / 342 MB, free: 5.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004621/0.118, allocations: 80 kB / 342.1 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007495/0.1188, allocations: 124 kB / 342.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005122/0.1193, allocations: 278.9 kB / 342.4 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000577/0.1199, allocations: 348.9 kB / 342.8 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002404/0.1223, allocations: 2.668 MB / 345.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1223, allocations: 0 / 345.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1223, allocations: 0 / 345.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.771e-05/0.1224, allocations: 0 / 345.5 MB, free: 2.234 MB / 286.1 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.003899/0.1263, allocations: 1.635 MB / 347.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1264, allocations: 11.97 kB / 347.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.1267, allocations: 177.9 kB / 347.3 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.1278, allocations: 0.814 MB / 348.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002665/0.1281, allocations: 236.1 kB / 348.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/0.1283, allocations: 155.9 kB / 348.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00303/0.1314, allocations: 1.674 MB / 350.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.267e-05/0.1314, allocations: 11.84 kB / 350.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.1316, allocations: 64 kB / 350.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.091e-05/0.1316, allocations: 36 kB / 350.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003167/0.1348, allocations: 1.57 MB / 351.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008566/0.1433, allocations: 5.962 MB / 357.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/0.1453, allocations: 0.9568 MB / 358.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.793e-05/0.1454, allocations: 9 kB / 358.8 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001207/0.1466, allocations: 0.6761 MB / 359.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.144e-06/0.1466, allocations: 0 / 359.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03384/0.1805, allocations: 9.85 MB / 369.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002143/0.1807, allocations: 299.7 kB / 369.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.182, allocations: 0.7818 MB / 370.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.1821, allocations: 53.7 kB / 370.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006499/0.1828, allocations: 0.6622 MB / 371.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.1832, allocations: 402.2 kB / 371.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.042e-05/0.1833, allocations: 28 kB / 371.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000264/0.1835, allocations: 406.7 kB / 371.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001919/0.1855, allocations: 0.8394 MB / 372.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/0.1876, allocations: 1.165 MB / 373.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/0.1895, allocations: 0.8263 MB / 374.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1895, allocations: 0 / 374.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004612/0.1942, allocations: 2.139 MB / 376.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.1942, allocations: 8 kB / 376.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.1942, allocations: 8 kB / 376.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.1947, allocations: 178.5 kB / 377 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.1963, allocations: 375.4 kB / 377.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.173/0.3693, allocations: 4.479 MB / 381.9 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.3713, allocations: 200.7 kB / 382.1 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.3714, allocations: 53.73 kB / 382.1 MB, free: 47.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (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.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 (168): * Single equations (assignments): 165 * 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.0008462/0.3723, allocations: 394.1 kB / 382.5 MB, free: 47.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.3724, allocations: 105.9 kB / 382.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.3727, allocations: 133.5 kB / 382.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.3728, allocations: 11 kB / 382.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.3728, allocations: 1.375 kB / 382.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.3728, allocations: 7.047 kB / 382.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0083/0.3811, allocations: 4.538 MB / 387.3 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/0.3812, allocations: 9.375 kB / 387.3 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.3824, allocations: 278.4 kB / 387.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006174/0.383, allocations: 373.3 kB / 388 MB, free: 45.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.3831, allocations: 37.5 kB / 388 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001494/0.3846, allocations: 2.179 MB / 390.2 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-05/0.3846, allocations: 17.61 kB / 390.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.3896, allocations: 3.08 MB / 393.3 MB, free: 41.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006883/0.3904, allocations: 323.4 kB / 393.6 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.3905, allocations: 42.75 kB / 393.6 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.3917, allocations: 176.8 kB / 393.8 MB, free: 41.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/0.3922, allocations: 187.5 kB / 394 MB, free: 41.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.3923, allocations: 45.27 kB / 394 MB, free: 41.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009924/0.3933, allocations: 0.5328 MB / 394.6 MB, free: 41.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3933, allocations: 0 / 394.6 MB, free: 41.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001794/0.3951, allocations: 345.4 kB / 394.9 MB, free: 41.02 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.0003788/0.3955, allocations: 176.9 kB / 395.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004224/0.3997, allocations: 2.098 MB / 397.2 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.3997, allocations: 2.625 kB / 397.2 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.4021, allocations: 1.079 MB / 398.3 MB, free: 39.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009573/0.4031, allocations: 173 kB / 398.4 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005867/0.409, allocations: 3.745 MB / 402.2 MB, free: 36.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006221/0.4096, allocations: 1.205 MB / 403.4 MB, free: 36.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009142/0.4105, allocations: 164.8 kB / 403.5 MB, free: 36.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.4109, allocations: 77.64 kB / 403.6 MB, free: 36.08 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4109, allocations: 0 / 403.6 MB, free: 36.08 MB / 318.1 MB Notification: Performance of Templates: time 0.02337/0.4342, allocations: 16.96 MB / 420.6 MB, free: 20.24 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: