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.001772/0.001772, 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.00284/0.00284, allocations: 191.6 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.515/1.515, allocations: 205.1 MB / 222 MB, free: 4.758 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.001202/0.001202, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2779, allocations: 46.62 MB / 324.7 MB, free: 1.805 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.0101/0.288, allocations: 9.119 MB / 333.8 MB, free: 10.57 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.2939, allocations: 2.272 MB / 336.1 MB, free: 8.535 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.2959, allocations: 31.88 kB / 336.1 MB, free: 8.504 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008451/0.2967, allocations: 250.2 kB / 336.4 MB, free: 8.258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.2982, allocations: 412.9 kB / 336.8 MB, free: 7.852 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.2994, allocations: 0.5855 MB / 337.3 MB, free: 7.266 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.3017, allocations: 2.146 MB / 339.5 MB, free: 5.109 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.303, allocations: 1.013 MB / 340.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.304, allocations: 0.6888 MB / 341.2 MB, free: 3.359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007635/0.3048, allocations: 0.7973 MB / 342 MB, free: 2.559 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.305, allocations: 132 kB / 342.1 MB, free: 2.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003421/0.3053, allocations: 175.9 kB / 342.3 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.3057, allocations: 366.6 kB / 342.6 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007259/0.3064, allocations: 0.8319 MB / 343.5 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002368/0.3088, allocations: 3.147 MB / 346.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3088, allocations: 0 / 346.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3088, allocations: 0 / 346.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.569e-05/0.3089, allocations: 0 / 346.6 MB, free: 13.9 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.004351/0.3132, allocations: 1.927 MB / 348.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3133, allocations: 8.031 kB / 348.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.3136, allocations: 186.9 kB / 348.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3147, allocations: 0.8342 MB / 349.6 MB, free: 10.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.315, allocations: 228.7 kB / 349.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.3152, allocations: 163.9 kB / 350 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003007/0.3182, allocations: 1.686 MB / 351.6 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.271e-05/0.3183, allocations: 3.906 kB / 351.7 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.3184, allocations: 64 kB / 351.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.3185, allocations: 36 kB / 351.8 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003102/0.3216, allocations: 1.566 MB / 353.3 MB, free: 7.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008991/0.3306, allocations: 5.897 MB / 359.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.3326, allocations: 0.9363 MB / 360.1 MB, free: 0 / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009604/0.3335, allocations: 0.536 MB / 360.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-05/0.3336, allocations: 9 kB / 360.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.3348, allocations: 0.6606 MB / 361.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.014e-06/0.3348, allocations: 4 kB / 361.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03527/0.3701, allocations: 8.915 MB / 370.3 MB, free: 5.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/0.3703, allocations: 299.7 kB / 370.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.3718, allocations: 0.7856 MB / 371.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.372, allocations: 53.7 kB / 371.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/0.3727, allocations: 0.6622 MB / 372.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000519/0.3732, allocations: 406.2 kB / 372.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006584/0.3739, allocations: 251.4 kB / 372.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.3741, allocations: 406.7 kB / 373.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/0.3768, allocations: 0.8159 MB / 373.9 MB, free: 1.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002986/0.3798, allocations: 1.13 MB / 375.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004627/0.3844, allocations: 1.654 MB / 376.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.3845, allocations: 0 / 376.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005007/0.3895, allocations: 2.076 MB / 378.8 MB, free: 12.85 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.3895, allocations: 8.625 kB / 378.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.3896, allocations: 8 kB / 378.8 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004461/0.39, allocations: 178.5 kB / 379 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.3916, allocations: 355.5 kB / 379.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003829/0.3954, allocations: 4.438 MB / 383.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.3971, allocations: 159.9 kB / 383.9 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.3973, allocations: 56 kB / 384 MB, free: 7.25 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.0009636/0.3982, allocations: 387.3 kB / 384.3 MB, free: 6.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.3985, allocations: 102.8 kB / 384.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.3987, allocations: 141.9 kB / 384.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.3987, allocations: 12 kB / 384.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.3988, allocations: 0 / 384.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3988, allocations: 7.922 kB / 384.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007558/0.4063, allocations: 4.419 MB / 389 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.4064, allocations: 8 kB / 389 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.4075, allocations: 272.4 kB / 389.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005767/0.4081, allocations: 361.5 kB / 389.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.408e-05/0.4082, allocations: 43.98 kB / 389.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.41, allocations: 2.161 MB / 391.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/0.41, allocations: 15.94 kB / 391.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004672/0.4147, allocations: 2.504 MB / 394.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005915/0.4153, allocations: 315.8 kB / 394.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.4155, allocations: 51.98 kB / 394.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4165, allocations: 131.9 kB / 394.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.4168, allocations: 172.2 kB / 395 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.223e-05/0.4169, allocations: 43.98 kB / 395.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008094/0.4177, allocations: 0.5303 MB / 395.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4178, allocations: 0 / 395.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001476/0.4192, allocations: 352 kB / 395.9 MB, free: 10.73 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.0003653/0.4196, allocations: 191 kB / 396.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004055/0.4237, allocations: 2.024 MB / 398.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.332e-05/0.4237, allocations: 4 kB / 398.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/0.426, allocations: 1.055 MB / 399.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.4273, allocations: 186.8 kB / 399.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00639/0.4337, allocations: 3.757 MB / 403.2 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008568/0.4346, allocations: 1.186 MB / 404.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.4357, allocations: 160.4 kB / 404.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.4361, allocations: 79.42 kB / 404.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4361, allocations: 0 / 404.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of Templates: time 0.03145/0.4675, allocations: 17.7 MB / 422.3 MB, free: 136 kB / 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)