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.0009785/0.0009783, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007551/0.007551, allocations: 172 kB / 16.27 MB, free: 6.367 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.613/1.613, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.0004999/0.0005, allocations: 15.28 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2929, allocations: 47.58 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009484/0.3024, allocations: 8.598 MB / 335.6 MB, free: 10.56 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005832/0.3083, allocations: 2.251 MB / 337.9 MB, free: 8.527 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.3103, allocations: 31.88 kB / 337.9 MB, free: 8.496 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000845/0.3111, allocations: 238.3 kB / 338.2 MB, free: 8.262 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002028/0.3132, allocations: 420.8 kB / 338.6 MB, free: 7.848 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.3145, allocations: 0.5777 MB / 339.1 MB, free: 7.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002967/0.3175, allocations: 2.157 MB / 341.3 MB, free: 5.102 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.319, allocations: 1.001 MB / 342.3 MB, free: 4.055 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.3203, allocations: 0.5989 MB / 342.9 MB, free: 3.453 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008981/0.3212, allocations: 0.6801 MB / 343.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.3214, allocations: 80 kB / 343.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.3217, allocations: 128 kB / 343.8 MB, free: 2.566 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.322, allocations: 290.7 kB / 344.1 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008489/0.3228, allocations: 0.7749 MB / 344.8 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002713/0.3256, allocations: 3.052 MB / 347.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.3256, allocations: 4 kB / 347.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3256, allocations: 0 / 347.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.606e-05/0.3257, allocations: 0 / 347.9 MB, free: 14.43 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.00382/0.3295, allocations: 1.624 MB / 349.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.163e-05/0.3296, allocations: 12.03 kB / 349.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003898/0.33, allocations: 182.9 kB / 349.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.3313, allocations: 0.8303 MB / 350.5 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/0.3316, allocations: 236.7 kB / 350.8 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002493/0.3319, allocations: 167.8 kB / 350.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003404/0.3353, allocations: 1.69 MB / 352.6 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.541e-05/0.3354, allocations: 11.89 kB / 352.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.3355, allocations: 64 kB / 352.7 MB, free: 9.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.359e-05/0.3356, allocations: 36 kB / 352.7 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003562/0.3392, allocations: 1.593 MB / 354.3 MB, free: 7.848 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009964/0.3491, allocations: 5.967 MB / 360.3 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.3513, allocations: 0.9643 MB / 361.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3523, allocations: 0.5363 MB / 361.8 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-05/0.3524, allocations: 13 kB / 361.8 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.3537, allocations: 0.6723 MB / 362.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.835e-06/0.3537, allocations: 0 / 362.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03705/0.3907, allocations: 9.859 MB / 372.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.3909, allocations: 303.7 kB / 372.6 MB, free: 5.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.3922, allocations: 0.7818 MB / 373.4 MB, free: 4.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.3923, allocations: 53.7 kB / 373.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006711/0.393, allocations: 0.6622 MB / 374.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000444/0.3934, allocations: 410.2 kB / 374.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.3936, allocations: 113.7 kB / 374.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.3939, allocations: 410.7 kB / 375 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.396, allocations: 0.8512 MB / 375.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002266/0.3982, allocations: 1.173 MB / 377.1 MB, free: 476 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003775/0.402, allocations: 1.721 MB / 378.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.402, allocations: 0 / 378.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00502/0.4071, allocations: 2.15 MB / 380.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.4071, allocations: 11.98 kB / 380.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.4071, allocations: 8 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/0.4076, allocations: 182.4 kB / 381.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.4092, allocations: 375.5 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004269/0.4135, allocations: 4.47 MB / 386 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.4153, allocations: 199.9 kB / 386.2 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4154, allocations: 51.98 kB / 386.2 MB, free: 6.789 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.000991/0.4164, allocations: 391.2 kB / 386.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.4166, allocations: 106.7 kB / 386.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.417, allocations: 138 kB / 386.8 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.417, allocations: 12 kB / 386.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.417, allocations: 0 / 386.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.417, allocations: 3.984 kB / 386.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008245/0.4253, allocations: 4.54 MB / 391.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.4253, allocations: 8 kB / 391.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.4265, allocations: 283.9 kB / 391.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006387/0.4271, allocations: 373.4 kB / 392 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-05/0.4272, allocations: 35.98 kB / 392.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.429, allocations: 2.173 MB / 394.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.407e-05/0.429, allocations: 15.94 kB / 394.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005105/0.4342, allocations: 2.61 MB / 396.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005994/0.4348, allocations: 323.7 kB / 397.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.4349, allocations: 47.98 kB / 397.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.436, allocations: 179.9 kB / 397.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003168/0.4363, allocations: 168.3 kB / 397.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.783e-05/0.4364, allocations: 47.97 kB / 397.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007922/0.4372, allocations: 0.5303 MB / 398.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4372, allocations: 0 / 398.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001238/0.4385, allocations: 348 kB / 398.5 MB, free: 9.969 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.0003331/0.4388, allocations: 182.9 kB / 398.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004459/0.4433, allocations: 2.102 MB / 400.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4433, allocations: 0.5 kB / 400.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/0.4456, allocations: 1.094 MB / 401.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.4478, allocations: 198.1 kB / 402.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/0.454, allocations: 3.905 MB / 406 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008528/0.4549, allocations: 1.178 MB / 407.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009238/0.4558, allocations: 164.4 kB / 407.3 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.4561, allocations: 71.44 kB / 407.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4562, allocations: 8 kB / 407.4 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of Templates: time 0.03216/0.4883, allocations: 17.45 MB / 424.8 MB, free: 15.36 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)