Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.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.2.1_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.001502/0.001502, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001658/0.001658, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.553/1.553, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.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.001977/0.001977, allocations: 59.84 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2412, allocations: 46.62 MB / 324.9 MB, free: 2.156 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01072/0.2519, allocations: 9.116 MB / 334 MB, free: 10.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005591/0.2575, allocations: 2.257 MB / 336.2 MB, free: 8.848 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.2597, allocations: 31.88 kB / 336.3 MB, free: 8.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.2613, allocations: 246.3 kB / 336.5 MB, free: 8.574 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00274/0.264, allocations: 424.8 kB / 336.9 MB, free: 8.156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001891/0.2659, allocations: 0.5855 MB / 337.5 MB, free: 7.57 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004009/0.27, allocations: 2.333 MB / 339.8 MB, free: 5.227 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002053/0.272, allocations: 1.113 MB / 340.9 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.2739, allocations: 0.8528 MB / 341.8 MB, free: 3.211 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.2755, allocations: 0.8871 MB / 342.7 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007109/0.2762, allocations: 279.9 kB / 343 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009599/0.2772, allocations: 320 kB / 343.3 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006996/0.2779, allocations: 0.4987 MB / 343.8 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.2796, allocations: 0.9841 MB / 344.8 MB, free: 252 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003817/0.2834, allocations: 3.302 MB / 348.1 MB, free: 12.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2835, allocations: 0 / 348.1 MB, free: 12.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2835, allocations: 0 / 348.1 MB, free: 12.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.2836, allocations: 4 kB / 348.1 MB, free: 12.93 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.004333/0.2879, allocations: 1.916 MB / 350 MB, free: 10.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.288, allocations: 12.03 kB / 350 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/0.2883, allocations: 182.9 kB / 350.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2894, allocations: 0.8341 MB / 351 MB, free: 9.887 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.2897, allocations: 228.7 kB / 351.2 MB, free: 9.645 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/0.2899, allocations: 163.9 kB / 351.4 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002973/0.2929, allocations: 1.678 MB / 353.1 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.938e-05/0.293, allocations: 11.89 kB / 353.1 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.2931, allocations: 68 kB / 353.1 MB, free: 7.699 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.2932, allocations: 39.94 kB / 353.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003018/0.2962, allocations: 1.562 MB / 354.7 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008808/0.305, allocations: 5.893 MB / 360.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.3069, allocations: 0.948 MB / 361.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009648/0.3079, allocations: 0.5243 MB / 362.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.483e-05/0.308, allocations: 13 kB / 362.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.3093, allocations: 0.6567 MB / 362.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.285e-06/0.3093, allocations: 0 / 362.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.0334/0.3427, allocations: 8.926 MB / 371.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/0.3429, allocations: 299.7 kB / 372 MB, free: 4.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.344, allocations: 0.7856 MB / 372.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.3441, allocations: 53.7 kB / 372.8 MB, free: 3.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005669/0.3447, allocations: 0.6622 MB / 373.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000338/0.345, allocations: 406.2 kB / 373.9 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004501/0.3455, allocations: 243.4 kB / 374.1 MB, free: 2.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.3457, allocations: 410.7 kB / 374.5 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/0.3474, allocations: 0.8121 MB / 375.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.3494, allocations: 1.138 MB / 376.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003262/0.3527, allocations: 1.642 MB / 378.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.3527, allocations: 7.984 kB / 378.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004385/0.3571, allocations: 2.068 MB / 380.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.3571, allocations: 8 kB / 380.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.3572, allocations: 15.88 kB / 380.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004089/0.3576, allocations: 182.5 kB / 380.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.3592, allocations: 355.4 kB / 380.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00372/0.3629, allocations: 4.811 MB / 385.6 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.3644, allocations: 168.1 kB / 385.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.3646, allocations: 44 kB / 385.8 MB, free: 5.887 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,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007028/0.3653, allocations: 399.2 kB / 386.2 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.3655, allocations: 110.7 kB / 386.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.3657, allocations: 134 kB / 386.4 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3657, allocations: 12 kB / 386.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.3657, allocations: 0 / 386.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.3657, allocations: 3.984 kB / 386.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007132/0.3729, allocations: 4.419 MB / 390.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.3729, allocations: 8 kB / 390.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.374, allocations: 263.6 kB / 391.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005466/0.3745, allocations: 369.8 kB / 391.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.462e-05/0.3746, allocations: 36 kB / 391.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.3763, allocations: 2.279 MB / 393.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.3763, allocations: 11.94 kB / 393.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004446/0.3807, allocations: 2.497 MB / 396.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/0.3813, allocations: 319.8 kB / 396.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.3815, allocations: 43.98 kB / 396.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000987/0.3825, allocations: 139.8 kB / 396.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/0.3829, allocations: 168.2 kB / 396.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.898e-05/0.3829, allocations: 43.98 kB / 397 MB, free: 10.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006981/0.3837, allocations: 0.5342 MB / 397.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3837, allocations: 0 / 397.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001215/0.3849, allocations: 344 kB / 397.8 MB, free: 9.262 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000317/0.3852, allocations: 183 kB / 398 MB, free: 9.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004482/0.3897, allocations: 2.086 MB / 400.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.3897, allocations: 4 kB / 400.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002164/0.3919, allocations: 1.047 MB / 401.2 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.3932, allocations: 206 kB / 401.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006262/0.3995, allocations: 3.765 MB / 405.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008871/0.4004, allocations: 1.182 MB / 406.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009419/0.4013, allocations: 164.4 kB / 406.5 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003319/0.4017, allocations: 79.42 kB / 406.6 MB, free: 312 kB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4017, allocations: 0 / 406.6 MB, free: 312 kB / 334.1 MB Notification: Performance of Templates: time 0.03201/0.4337, allocations: 18.48 MB / 425 MB, free: 13.8 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)