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.001613/0.001613, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002225/0.002225, allocations: 191.3 kB / 16.14 MB, free: 6.707 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.455/1.455, allocations: 205.1 MB / 222 MB, free: 4.773 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.001605/0.001605, allocations: 59.91 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2888, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009593/0.2985, allocations: 9.119 MB / 333.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00511/0.3036, allocations: 2.274 MB / 336.1 MB, free: 8.742 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.3048, allocations: 31.88 kB / 336.1 MB, free: 8.711 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000802/0.3056, allocations: 250.2 kB / 336.4 MB, free: 8.465 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.3068, allocations: 412.9 kB / 336.8 MB, free: 8.059 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.3079, allocations: 0.5816 MB / 337.3 MB, free: 7.477 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.31, allocations: 2.157 MB / 339.5 MB, free: 5.309 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.3113, allocations: 1.009 MB / 340.5 MB, free: 4.254 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.3124, allocations: 0.6965 MB / 341.2 MB, free: 3.555 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008529/0.3133, allocations: 0.7973 MB / 342 MB, free: 2.754 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.3135, allocations: 128 kB / 342.1 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.3138, allocations: 179.8 kB / 342.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003082/0.3142, allocations: 358.7 kB / 342.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000769/0.3149, allocations: 0.8319 MB / 343.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002358/0.3173, allocations: 3.146 MB / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3173, allocations: 0 / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3173, allocations: 0 / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.034e-05/0.3174, allocations: 0 / 346.6 MB, free: 14.11 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.003702/0.3211, allocations: 1.932 MB / 348.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3211, allocations: 8.031 kB / 348.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.3214, allocations: 182.9 kB / 348.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.3225, allocations: 0.8303 MB / 349.6 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002615/0.3228, allocations: 240.7 kB / 349.8 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.323, allocations: 155.9 kB / 350 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003149/0.3262, allocations: 1.682 MB / 351.6 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.466e-05/0.3263, allocations: 7.906 kB / 351.7 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.3264, allocations: 64 kB / 351.7 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-05/0.3265, allocations: 44 kB / 351.8 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003352/0.3298, allocations: 1.558 MB / 353.3 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008665/0.3385, allocations: 5.897 MB / 359.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.3403, allocations: 0.9412 MB / 360.2 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.3414, allocations: 0.5321 MB / 360.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.109e-05/0.3415, allocations: 12.94 kB / 360.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.3431, allocations: 0.6567 MB / 361.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.587e-06/0.3431, allocations: 0 / 361.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03781/0.381, allocations: 8.917 MB / 370.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/0.3811, allocations: 303.7 kB / 370.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.3823, allocations: 0.7818 MB / 371.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/0.3825, allocations: 57.73 kB / 371.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.3831, allocations: 0.6622 MB / 372.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000427/0.3835, allocations: 410.2 kB / 372.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/0.384, allocations: 239.5 kB / 372.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3842, allocations: 418.6 kB / 373.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.3859, allocations: 0.8082 MB / 373.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/0.388, allocations: 1.134 MB / 375.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003253/0.3912, allocations: 1.646 MB / 376.7 MB, free: 15.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3912, allocations: 7.938 kB / 376.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004404/0.3957, allocations: 2.076 MB / 378.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.3957, allocations: 4 kB / 378.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.3957, allocations: 8 kB / 378.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000464/0.3962, allocations: 182.5 kB / 379 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.3978, allocations: 355.4 kB / 379.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.4015, allocations: 4.435 MB / 383.8 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4032, allocations: 167.9 kB / 383.9 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4033, allocations: 44 kB / 384 MB, free: 7.457 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.000805/0.4041, allocations: 395.1 kB / 384.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.4043, allocations: 106.8 kB / 384.5 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002242/0.4045, allocations: 126 kB / 384.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4046, allocations: 12 kB / 384.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.4046, allocations: 8 kB / 384.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.4046, allocations: 11.91 kB / 384.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007484/0.4121, allocations: 4.416 MB / 389 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.4121, allocations: 8 kB / 389 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.4132, allocations: 263.7 kB / 389.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.4138, allocations: 373.5 kB / 389.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.452e-05/0.414, allocations: 39.98 kB / 389.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.4159, allocations: 2.169 MB / 391.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/0.4159, allocations: 11.94 kB / 391.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004695/0.4206, allocations: 2.501 MB / 394.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000607/0.4212, allocations: 323.7 kB / 394.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.4214, allocations: 40 kB / 394.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.4224, allocations: 139.8 kB / 394.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003657/0.4228, allocations: 168.2 kB / 395 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-05/0.4229, allocations: 43.98 kB / 395.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008286/0.4237, allocations: 0.5342 MB / 395.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4237, allocations: 0 / 395.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001425/0.4252, allocations: 352 kB / 396 MB, free: 10.93 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.0003488/0.4255, allocations: 182.9 kB / 396.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.4295, allocations: 2.028 MB / 398.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.4296, allocations: 3.938 kB / 398.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002216/0.4318, allocations: 1.051 MB / 399.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4332, allocations: 194 kB / 399.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006076/0.4393, allocations: 3.768 MB / 403.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008466/0.4402, allocations: 1.175 MB / 404.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009405/0.4411, allocations: 168.4 kB / 404.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.4415, allocations: 71.44 kB / 404.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4415, allocations: 0 / 404.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of Templates: time 0.03028/0.4718, allocations: 17.7 MB / 422.3 MB, free: 344 kB / 350.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)