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.001678/0.001678, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.422/1.422, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.001394/0.001394, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2493, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01191/0.2613, allocations: 9.178 MB / 334.5 MB, free: 10.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006176/0.2675, allocations: 2.304 MB / 336.8 MB, free: 8.398 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.2697, allocations: 31.88 kB / 336.8 MB, free: 8.367 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009886/0.2708, allocations: 321.1 kB / 337.2 MB, free: 8.051 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001934/0.2727, allocations: 499.7 kB / 337.6 MB, free: 7.559 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.2742, allocations: 0.6477 MB / 338.3 MB, free: 6.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002773/0.277, allocations: 2.337 MB / 340.6 MB, free: 4.562 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.2785, allocations: 1.109 MB / 341.7 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001323/0.2798, allocations: 0.845 MB / 342.6 MB, free: 2.559 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009449/0.2808, allocations: 0.8871 MB / 343.5 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003113/0.2811, allocations: 276 kB / 343.7 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004838/0.2816, allocations: 320 kB / 344 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/0.282, allocations: 0.4987 MB / 344.5 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009653/0.283, allocations: 0.9764 MB / 345.5 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003153/0.2862, allocations: 3.306 MB / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2862, allocations: 0 / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2862, allocations: 4 kB / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.244e-05/0.2863, allocations: 0 / 348.8 MB, free: 12.29 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.00397/0.2902, allocations: 1.92 MB / 350.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.2903, allocations: 16.03 kB / 350.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003427/0.2907, allocations: 178.9 kB / 350.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.2921, allocations: 0.8341 MB / 351.8 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000312/0.2924, allocations: 232.7 kB / 352 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.2927, allocations: 159.9 kB / 352.2 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003222/0.2959, allocations: 1.678 MB / 353.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/0.296, allocations: 11.89 kB / 353.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.2961, allocations: 71.98 kB / 353.9 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.2961, allocations: 36 kB / 354 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00318/0.2993, allocations: 1.558 MB / 355.5 MB, free: 5.453 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009043/0.3084, allocations: 5.885 MB / 361.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.3104, allocations: 0.948 MB / 362.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.3114, allocations: 0.5243 MB / 362.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.094e-05/0.3115, allocations: 12.98 kB / 362.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.3128, allocations: 0.6606 MB / 363.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.985e-06/0.3128, allocations: 0 / 363.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03426/0.3471, allocations: 8.922 MB / 372.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.3473, allocations: 299.7 kB / 372.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.3484, allocations: 0.7818 MB / 373.5 MB, free: 2.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.3486, allocations: 53.7 kB / 373.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005611/0.3491, allocations: 0.6622 MB / 374.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.3495, allocations: 414.2 kB / 374.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004714/0.35, allocations: 239.5 kB / 374.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3502, allocations: 414.7 kB / 375.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/0.3521, allocations: 0.8121 MB / 376.1 MB, free: 328 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.3543, allocations: 1.138 MB / 377.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003587/0.3579, allocations: 1.646 MB / 378.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3579, allocations: 4 kB / 378.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004819/0.3627, allocations: 2.068 MB / 381 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.3628, allocations: 11.98 kB / 381 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.3628, allocations: 8 kB / 381 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.3633, allocations: 186.4 kB / 381.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.3649, allocations: 343.5 kB / 381.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/0.3691, allocations: 4.815 MB / 386.3 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.3707, allocations: 167.8 kB / 386.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.3708, allocations: 48 kB / 386.5 MB, free: 5.238 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.0007715/0.3716, allocations: 395.2 kB / 386.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.3718, allocations: 110.7 kB / 387 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000253/0.3721, allocations: 130 kB / 387.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3721, allocations: 11.94 kB / 387.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.3721, allocations: 4 kB / 387.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.3721, allocations: 7.969 kB / 387.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00804/0.3802, allocations: 4.431 MB / 391.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.3802, allocations: 8 kB / 391.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.3813, allocations: 260 kB / 391.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005487/0.3819, allocations: 365.5 kB / 392.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.459e-05/0.382, allocations: 39.98 kB / 392.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001959/0.384, allocations: 2.275 MB / 394.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/0.384, allocations: 15.94 kB / 394.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004871/0.3889, allocations: 2.5 MB / 397.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000686/0.3896, allocations: 323.7 kB / 397.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.3898, allocations: 43.98 kB / 397.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.3908, allocations: 135.9 kB / 397.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/0.3912, allocations: 168.2 kB / 397.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.3913, allocations: 48.12 kB / 397.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008667/0.3922, allocations: 0.5303 MB / 398.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3922, allocations: 0 / 398.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001426/0.3936, allocations: 356 kB / 398.6 MB, free: 8.586 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.000338/0.394, allocations: 178.8 kB / 398.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004848/0.3988, allocations: 2.09 MB / 400.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.3988, allocations: 4.562 kB / 400.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.401, allocations: 1.047 MB / 402 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.4023, allocations: 193.8 kB / 402.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005979/0.4083, allocations: 3.113 MB / 405.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008281/0.4092, allocations: 1.175 MB / 406.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009952/0.4102, allocations: 172.4 kB / 406.6 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/0.4106, allocations: 75.44 kB / 406.7 MB, free: 316 kB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4106, allocations: 0 / 406.7 MB, free: 316 kB / 334.1 MB Notification: Performance of Templates: time 0.03595/0.4465, allocations: 18.69 MB / 425.4 MB, free: 13.59 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)