Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009141/0.000914, allocations: 86.91 kB / 16.31 MB, free: 5.66 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.00111/0.00111, allocations: 173.8 kB / 17.21 MB, free: 5.578 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.606/1.606, allocations: 205.4 MB / 223.4 MB, free: 5.52 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.0004919/0.0004923, allocations: 8 kB / 280.2 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.276, allocations: 47.58 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008829/0.2848, allocations: 8.053 MB / 335.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005401/0.2903, allocations: 2.217 MB / 338 MB, free: 9.207 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.2918, allocations: 30.38 kB / 338 MB, free: 9.188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007417/0.2926, allocations: 238.3 kB / 338.3 MB, free: 8.953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001389/0.294, allocations: 404.8 kB / 338.7 MB, free: 8.555 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.295, allocations: 355.6 kB / 339 MB, free: 8.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002819/0.2979, allocations: 2.079 MB / 341.1 MB, free: 6.117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.2993, allocations: 0.821 MB / 341.9 MB, free: 5.266 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.3004, allocations: 0.5719 MB / 342.5 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007391/0.3012, allocations: 0.6493 MB / 343.1 MB, free: 4.039 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.3013, allocations: 80 kB / 343.2 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002861/0.3016, allocations: 128 kB / 343.3 MB, free: 3.836 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002714/0.3019, allocations: 278.9 kB / 343.6 MB, free: 3.562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.3022, allocations: 340.9 kB / 343.9 MB, free: 3.223 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.3044, allocations: 2.669 MB / 346.6 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3045, allocations: 0 / 346.6 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3045, allocations: 4 kB / 346.6 MB, free: 0.543 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.88e-05/0.3045, allocations: 0 / 346.6 MB, free: 0.543 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.00339/0.3079, allocations: 1.643 MB / 348.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.308, allocations: 12.03 kB / 348.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.3083, allocations: 177.9 kB / 348.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.3094, allocations: 0.8099 MB / 349.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.3097, allocations: 240.1 kB / 349.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.3099, allocations: 159.9 kB / 349.6 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003375/0.3133, allocations: 1.682 MB / 351.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.715e-05/0.3134, allocations: 7.906 kB / 351.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.3135, allocations: 67.98 kB / 351.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.196e-05/0.3136, allocations: 36 kB / 351.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003265/0.3169, allocations: 1.577 MB / 353 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009215/0.3261, allocations: 5.948 MB / 359 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.3281, allocations: 0.9559 MB / 359.9 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.3291, allocations: 0.5449 MB / 360.5 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.841e-05/0.3292, allocations: 9 kB / 360.5 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.3305, allocations: 0.6724 MB / 361.1 MB, free: 1.586 MB / 286.1 MB Notification: Performance of pre-optimization done (n=90): time 3.286e-06/0.3305, allocations: 0 / 361.1 MB, free: 1.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=120): time 0.0327/0.3632, allocations: 9.841 MB / 371 MB, free: 7.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/0.3635, allocations: 303.7 kB / 371.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.3648, allocations: 0.7894 MB / 372.1 MB, free: 6.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.3649, allocations: 53.7 kB / 372.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.3656, allocations: 0.6506 MB / 372.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.366, allocations: 422 kB / 373.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.3661, allocations: 24 kB / 373.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.3663, allocations: 414.8 kB / 373.6 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/0.3683, allocations: 0.8355 MB / 374.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002193/0.3705, allocations: 1.169 MB / 375.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001875/0.3724, allocations: 0.8263 MB / 376.4 MB, free: 1.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.3724, allocations: 4 kB / 376.4 MB, free: 1.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004499/0.3769, allocations: 2.127 MB / 378.6 MB, free: 15.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.3769, allocations: 8 kB / 378.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.377, allocations: 8 kB / 378.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004455/0.3774, allocations: 190.4 kB / 378.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.379, allocations: 371.5 kB / 379.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/0.3831, allocations: 4.454 MB / 383.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.3847, allocations: 203.9 kB / 383.8 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.3848, allocations: 48 kB / 383.8 MB, free: 10.1 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.0009648/0.3858, allocations: 399.4 kB / 384.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.3861, allocations: 110.6 kB / 384.3 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.3864, allocations: 130 kB / 384.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.3864, allocations: 12 kB / 384.5 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.3864, allocations: 0 / 384.5 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.3865, allocations: 11.97 kB / 384.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008351/0.3948, allocations: 4.533 MB / 389 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.18e-05/0.3949, allocations: 15.95 kB / 389 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.396, allocations: 276 kB / 389.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006101/0.3966, allocations: 373.4 kB / 389.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.3967, allocations: 43.98 kB / 389.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.3986, allocations: 2.173 MB / 391.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.3986, allocations: 15.94 kB / 391.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.4034, allocations: 2.594 MB / 394.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000612/0.404, allocations: 323.7 kB / 394.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002436/0.4042, allocations: 44 kB / 394.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.4053, allocations: 183.8 kB / 395 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.4056, allocations: 188.1 kB / 395.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.949e-05/0.4057, allocations: 44 kB / 395.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008074/0.4065, allocations: 0.5225 MB / 395.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4065, allocations: 0 / 395.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001387/0.4079, allocations: 344 kB / 396.1 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.0003432/0.4083, allocations: 183 kB / 396.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004194/0.4125, allocations: 2.094 MB / 398.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.4125, allocations: 4.5 kB / 398.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.4147, allocations: 1.078 MB / 399.5 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.001415/0.4162, allocations: 194.8 kB / 399.7 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006338/0.4225, allocations: 3.745 MB / 403.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009781/0.4235, allocations: 1.178 MB / 404.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00106/0.4246, allocations: 160.4 kB / 404.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/0.425, allocations: 79.42 kB / 404.8 MB, free: 4.316 MB / 334.1 MB Notification: Performance of SimCode: time 2.235e-06/0.4251, allocations: 4 kB / 404.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of Templates: time 0.02944/0.4545, allocations: 16.99 MB / 421.8 MB, free: 3.312 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)