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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, 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.002022/0.002022, allocations: 197 kB / 16.26 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.503/1.503, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.00119/0.00119, allocations: 44.41 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2616, allocations: 46.64 MB / 324.9 MB, free: 2.258 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01121/0.2729, allocations: 9.104 MB / 334 MB, free: 11.04 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007325/0.2802, allocations: 2.256 MB / 336.2 MB, free: 8.949 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003216/0.2836, allocations: 27.94 kB / 336.3 MB, free: 8.922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.2853, allocations: 258.2 kB / 336.5 MB, free: 8.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002696/0.2881, allocations: 416.9 kB / 336.9 MB, free: 8.258 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.29, allocations: 0.5932 MB / 337.5 MB, free: 7.664 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003745/0.2938, allocations: 2.333 MB / 339.8 MB, free: 5.32 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.296, allocations: 1.121 MB / 341 MB, free: 4.152 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001763/0.2978, allocations: 0.845 MB / 341.8 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.2994, allocations: 0.8832 MB / 342.7 MB, free: 2.418 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000381/0.2998, allocations: 276 kB / 343 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.3003, allocations: 327.9 kB / 343.3 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003942/0.3007, allocations: 0.4948 MB / 343.8 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009716/0.3017, allocations: 0.9842 MB / 344.8 MB, free: 352 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003072/0.3048, allocations: 3.299 MB / 348.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3048, allocations: 3.938 kB / 348.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3048, allocations: 0 / 348.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.68e-05/0.3048, allocations: 0 / 348.1 MB, free: 13.03 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.003661/0.3085, allocations: 1.924 MB / 350 MB, free: 11.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3086, allocations: 8.031 kB / 350 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.3089, allocations: 186.9 kB / 350.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.31, allocations: 0.8341 MB / 351 MB, free: 9.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.3103, allocations: 236.7 kB / 351.2 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/0.3105, allocations: 159.9 kB / 351.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003095/0.3136, allocations: 1.682 MB / 353.1 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/0.3137, allocations: 7.906 kB / 353.1 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.3138, allocations: 60 kB / 353.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.3139, allocations: 40 kB / 353.2 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003103/0.317, allocations: 1.562 MB / 354.7 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008914/0.3259, allocations: 5.904 MB / 360.7 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.3279, allocations: 0.9324 MB / 361.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009805/0.3289, allocations: 0.5399 MB / 362.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-05/0.329, allocations: 9 kB / 362.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001227/0.3302, allocations: 0.6606 MB / 362.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.336e-06/0.3303, allocations: 0 / 362.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03373/0.364, allocations: 8.919 MB / 371.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.3642, allocations: 295.7 kB / 372 MB, free: 4.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.3653, allocations: 0.7973 MB / 372.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.3655, allocations: 53.7 kB / 372.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005696/0.366, allocations: 0.6622 MB / 373.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003604/0.3664, allocations: 402.2 kB / 373.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004754/0.3669, allocations: 247.4 kB / 374.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.3671, allocations: 410.7 kB / 374.5 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/0.3689, allocations: 0.8082 MB / 375.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/0.3709, allocations: 1.134 MB / 376.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/0.3742, allocations: 1.65 MB / 378.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3742, allocations: 4 kB / 378.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004331/0.3785, allocations: 2.072 MB / 380.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.3786, allocations: 8 kB / 380.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3786, allocations: 11.94 kB / 380.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.379, allocations: 182.5 kB / 380.4 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.3806, allocations: 351.5 kB / 380.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004108/0.3847, allocations: 4.807 MB / 385.6 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.3868, allocations: 167.9 kB / 385.7 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.387, allocations: 56 kB / 385.8 MB, free: 5.973 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.001259/0.3882, allocations: 383.2 kB / 386.2 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/0.3885, allocations: 102.7 kB / 386.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003127/0.3888, allocations: 138 kB / 386.4 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.3889, allocations: 16 kB / 386.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-05/0.3889, allocations: 0 / 386.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.3889, allocations: 7.922 kB / 386.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007779/0.3967, allocations: 4.419 MB / 390.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.3968, allocations: 12.25 kB / 390.8 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.3979, allocations: 259.6 kB / 391.1 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000582/0.3985, allocations: 369.5 kB / 391.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/0.3986, allocations: 35.94 kB / 391.5 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.4003, allocations: 2.283 MB / 393.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.4003, allocations: 11.94 kB / 393.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004517/0.4049, allocations: 2.493 MB / 396.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005759/0.4055, allocations: 315.8 kB / 396.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.4057, allocations: 51.98 kB / 396.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4067, allocations: 143.8 kB / 396.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.407, allocations: 164.2 kB / 396.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.71e-05/0.4071, allocations: 43.98 kB / 397 MB, free: 10.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007416/0.4078, allocations: 0.5342 MB / 397.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4079, allocations: 0 / 397.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001238/0.4091, allocations: 340 kB / 397.9 MB, free: 9.359 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.0003378/0.4094, allocations: 186.9 kB / 398 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004501/0.414, allocations: 2.089 MB / 400.1 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.414, allocations: 3.938 kB / 400.1 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.4162, allocations: 1.053 MB / 401.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4175, allocations: 197.9 kB / 401.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005924/0.4235, allocations: 3.758 MB / 405.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000756/0.4243, allocations: 1.178 MB / 406.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009651/0.4252, allocations: 160.4 kB / 406.5 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.4256, allocations: 87.42 kB / 406.6 MB, free: 416 kB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4256, allocations: 0 / 406.6 MB, free: 416 kB / 334.1 MB Notification: Performance of Templates: time 0.0289/0.4545, allocations: 18.48 MB / 425 MB, free: 13.91 MB / 366.1 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)