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.0008994/0.0008994, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00096/0.0009601, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.4 MB / 222.1 MB, free: 5.461 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.0008732/0.0008735, allocations: 12 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3079, allocations: 47.59 MB / 326.5 MB, free: 1.637 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007941/0.3158, allocations: 8.04 MB / 334.5 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004656/0.3205, allocations: 2.216 MB / 336.7 MB, free: 9.332 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.3218, allocations: 31.88 kB / 336.8 MB, free: 9.301 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006774/0.3225, allocations: 234.3 kB / 337 MB, free: 9.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00128/0.3238, allocations: 404.8 kB / 337.4 MB, free: 8.672 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009033/0.3247, allocations: 359.5 kB / 337.8 MB, free: 8.32 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002267/0.327, allocations: 2.076 MB / 339.8 MB, free: 6.234 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001137/0.3281, allocations: 0.8093 MB / 340.6 MB, free: 5.395 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009962/0.3292, allocations: 0.5836 MB / 341.2 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007192/0.3299, allocations: 0.6454 MB / 341.9 MB, free: 4.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.33, allocations: 80 kB / 341.9 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.3303, allocations: 120 kB / 342.1 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.3306, allocations: 286.8 kB / 342.3 MB, free: 3.684 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.3309, allocations: 340.9 kB / 342.7 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002179/0.3331, allocations: 2.669 MB / 345.3 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.3331, allocations: 4 kB / 345.4 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3331, allocations: 0 / 345.4 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.338e-05/0.3332, allocations: 0 / 345.4 MB, free: 0.6641 MB / 270.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.003048/0.3362, allocations: 1.651 MB / 347 MB, free: 14.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3363, allocations: 8.031 kB / 347 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.3366, allocations: 177.9 kB / 347.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.3377, allocations: 0.8023 MB / 348 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.338, allocations: 236.1 kB / 348.2 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.3382, allocations: 159.9 kB / 348.4 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003105/0.3413, allocations: 1.69 MB / 350.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.627e-05/0.3414, allocations: 7.906 kB / 350.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.3415, allocations: 64 kB / 350.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.899e-05/0.3416, allocations: 36 kB / 350.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003126/0.3447, allocations: 1.577 MB / 351.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008701/0.3534, allocations: 5.956 MB / 357.7 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.3554, allocations: 0.9566 MB / 358.7 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.3565, allocations: 0.5363 MB / 359.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.375e-05/0.3566, allocations: 12.95 kB / 359.2 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/0.3579, allocations: 0.6724 MB / 359.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of pre-optimization done (n=90): time 2.545e-06/0.3579, allocations: 0 / 359.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=120): time 0.03255/0.3905, allocations: 9.852 MB / 369.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.3907, allocations: 303.7 kB / 370 MB, free: 7.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.392, allocations: 0.7817 MB / 370.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.3922, allocations: 53.7 kB / 370.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000642/0.3928, allocations: 0.6584 MB / 371.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.3933, allocations: 406.1 kB / 371.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.3934, allocations: 24 kB / 371.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.3936, allocations: 410.7 kB / 372.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/0.3956, allocations: 0.8473 MB / 373.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.3979, allocations: 1.165 MB / 374.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001903/0.3998, allocations: 0.8302 MB / 375.2 MB, free: 2.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3998, allocations: 4 kB / 375.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00465/0.4045, allocations: 2.131 MB / 377.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.4045, allocations: 8 kB / 377.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.4046, allocations: 4 kB / 377.3 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004366/0.405, allocations: 186.4 kB / 377.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/0.4066, allocations: 371.5 kB / 377.9 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003879/0.4105, allocations: 4.458 MB / 382.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.4119, allocations: 211.9 kB / 382.5 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.412, allocations: 48 kB / 382.6 MB, free: 10.21 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.0008385/0.4129, allocations: 391.4 kB / 383 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.4131, allocations: 106.7 kB / 383.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.4134, allocations: 137.9 kB / 383.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4134, allocations: 12 kB / 383.2 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.4135, allocations: 4 kB / 383.2 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4135, allocations: 11.91 kB / 383.2 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008269/0.4217, allocations: 4.521 MB / 387.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.4218, allocations: 12 kB / 387.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.423, allocations: 283.6 kB / 388 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005906/0.4236, allocations: 365.5 kB / 388.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.4237, allocations: 43.98 kB / 388.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.4254, allocations: 2.173 MB / 390.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.21e-05/0.4254, allocations: 15.94 kB / 390.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004766/0.4302, allocations: 2.594 MB / 393.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/0.4308, allocations: 319.7 kB / 393.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/0.4311, allocations: 47.94 kB / 393.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.4322, allocations: 175.8 kB / 393.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/0.4325, allocations: 188.2 kB / 393.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.269e-05/0.4327, allocations: 43.98 kB / 394 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009304/0.4336, allocations: 0.5264 MB / 394.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4336, allocations: 3.938 kB / 394.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001421/0.435, allocations: 348 kB / 394.9 MB, free: 13.4 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 (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.0003538/0.4354, allocations: 183 kB / 395 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004541/0.4399, allocations: 2.098 MB / 397.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.44, allocations: 0 / 397.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00235/0.4423, allocations: 1.086 MB / 398.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.4439, allocations: 182.9 kB / 398.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007239/0.4511, allocations: 3.753 MB / 402.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.4523, allocations: 1.182 MB / 403.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.4533, allocations: 160.4 kB / 403.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.4537, allocations: 79.42 kB / 403.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4538, allocations: 0 / 403.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of Templates: time 0.03023/0.484, allocations: 16.99 MB / 420.6 MB, free: 3.422 MB / 350.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)