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.000854/0.000854, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001056/0.001057, allocations: 168.7 kB / 15.95 MB, free: 204 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.618/1.618, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0005088/0.000509, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2945, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009656/0.3042, allocations: 8.042 MB / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007087/0.3114, allocations: 2.217 MB / 336.8 MB, free: 9.219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.3133, allocations: 27.88 kB / 336.8 MB, free: 9.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000796/0.3141, allocations: 234.3 kB / 337 MB, free: 8.961 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00173/0.3159, allocations: 400.9 kB / 337.4 MB, free: 8.566 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.3173, allocations: 359.5 kB / 337.8 MB, free: 8.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003555/0.3208, allocations: 2.072 MB / 339.8 MB, free: 6.133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.3223, allocations: 0.8133 MB / 340.6 MB, free: 5.289 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.3236, allocations: 0.5836 MB / 341.2 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009644/0.3246, allocations: 0.6493 MB / 341.9 MB, free: 4.051 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.3248, allocations: 80 kB / 341.9 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.3252, allocations: 124 kB / 342.1 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003196/0.3255, allocations: 286.8 kB / 342.3 MB, free: 3.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004847/0.326, allocations: 340.9 kB / 342.7 MB, free: 3.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00253/0.3285, allocations: 2.669 MB / 345.3 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3286, allocations: 0 / 345.3 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.3286, allocations: 0 / 345.3 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.769e-05/0.3286, allocations: 3.938 kB / 345.4 MB, free: 0.5508 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.003444/0.3321, allocations: 1.643 MB / 347 MB, free: 14.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3321, allocations: 11.97 kB / 347 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/0.3325, allocations: 181.9 kB / 347.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.3338, allocations: 0.8101 MB / 348 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/0.3341, allocations: 236.1 kB / 348.2 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/0.3343, allocations: 159.9 kB / 348.4 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00344/0.3378, allocations: 1.682 MB / 350.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.764e-05/0.3379, allocations: 7.906 kB / 350.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/0.338, allocations: 64 kB / 350.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/0.3381, allocations: 36 kB / 350.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003433/0.3415, allocations: 1.581 MB / 351.8 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009392/0.3509, allocations: 5.956 MB / 357.7 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.3529, allocations: 0.9568 MB / 358.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3539, allocations: 0.5363 MB / 359.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.61e-05/0.354, allocations: 12.95 kB / 359.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001295/0.3553, allocations: 0.6685 MB / 359.9 MB, free: 1.594 MB / 286.1 MB Notification: Performance of pre-optimization done (n=90): time 7.664e-06/0.3554, allocations: 0 / 359.9 MB, free: 1.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=120): time 0.03261/0.388, allocations: 9.844 MB / 369.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001882/0.3882, allocations: 303.7 kB / 370 MB, free: 7.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.3896, allocations: 0.7817 MB / 370.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.3898, allocations: 53.7 kB / 370.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.3904, allocations: 0.6545 MB / 371.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004429/0.3909, allocations: 410.1 kB / 371.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.391, allocations: 28 kB / 371.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.3912, allocations: 410.7 kB / 372.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001912/0.3932, allocations: 0.8434 MB / 373.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.3954, allocations: 1.169 MB / 374.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.3973, allocations: 0.8302 MB / 375.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3973, allocations: 0 / 375.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004624/0.4019, allocations: 2.135 MB / 377.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.402, allocations: 8 kB / 377.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.402, allocations: 8 kB / 377.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004614/0.4025, allocations: 178.5 kB / 377.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.4041, allocations: 379.4 kB / 377.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/0.4084, allocations: 4.462 MB / 382.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.41, allocations: 199.9 kB / 382.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/0.4102, allocations: 56.06 kB / 382.6 MB, free: 10.09 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.001137/0.4114, allocations: 387.2 kB / 383 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/0.4117, allocations: 106.7 kB / 383.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003819/0.4121, allocations: 137.9 kB / 383.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.4121, allocations: 15.94 kB / 383.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.4122, allocations: 4 kB / 383.2 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.4122, allocations: 7.969 kB / 383.2 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009394/0.4216, allocations: 4.533 MB / 387.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.068e-05/0.4216, allocations: 8 kB / 387.8 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.4228, allocations: 283.7 kB / 388.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006348/0.4234, allocations: 365.5 kB / 388.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.4235, allocations: 47.98 kB / 388.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.4253, allocations: 2.176 MB / 390.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.4254, allocations: 11.94 kB / 390.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.4305, allocations: 2.594 MB / 393.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009065/0.4314, allocations: 323.7 kB / 393.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003437/0.4318, allocations: 44 kB / 393.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.433, allocations: 179.8 kB / 393.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.4334, allocations: 184.2 kB / 394 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.4335, allocations: 43.98 kB / 394 MB, free: 14.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009987/0.4345, allocations: 0.5264 MB / 394.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4345, allocations: 0 / 394.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4362, allocations: 344 kB / 394.9 MB, free: 13.29 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.000427/0.4366, allocations: 179 kB / 395 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00452/0.4411, allocations: 2.106 MB / 397.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/0.4412, allocations: 4 kB / 397.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/0.4436, allocations: 1.079 MB / 398.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.4454, allocations: 190.8 kB / 398.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007052/0.4524, allocations: 3.753 MB / 402.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.4535, allocations: 1.175 MB / 403.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.4547, allocations: 168.4 kB / 403.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.4552, allocations: 83.42 kB / 403.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of SimCode: time 1.753e-06/0.4552, allocations: 0 / 403.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of Templates: time 0.03221/0.4874, allocations: 16.99 MB / 420.6 MB, free: 3.305 MB / 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)