Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 0.9977/0.9977, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.000264, allocations: 8 kB / 158.4 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04513/0.04541, allocations: 25.16 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.2368, allocations: 46.68 MB / 230.2 MB, free: 15.93 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.2371, allocations: 76.39 kB / 230.3 MB, free: 15.89 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1732/0.4103, allocations: 48.22 MB / 278.5 MB, free: 3.613 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4103, allocations: 4 kB / 278.5 MB, free: 3.609 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.4105, allocations: 32 kB / 278.5 MB, free: 3.578 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00484/0.4153, allocations: 1.596 MB / 280.1 MB, free: 1.926 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.4154, allocations: 12.03 kB / 280.1 MB, free: 1.914 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007258/0.4161, allocations: 174 kB / 280.3 MB, free: 1.742 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.4182, allocations: 0.7827 MB / 281.1 MB, free: 0.9141 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004452/0.4186, allocations: 256 kB / 281.3 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005009/0.4192, allocations: 152 kB / 281.5 MB, free: 0.4961 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005935/0.4251, allocations: 1.751 MB / 283.2 MB, free: 14.71 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.047e-05/0.4252, allocations: 7.906 kB / 283.2 MB, free: 14.71 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.4255, allocations: 60 kB / 283.3 MB, free: 14.65 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.191e-05/0.4255, allocations: 36 kB / 283.3 MB, free: 14.61 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006339/0.4319, allocations: 1.792 MB / 285.1 MB, free: 12.82 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/0.4473, allocations: 6.112 MB / 291.2 MB, free: 6.473 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00365/0.451, allocations: 1.091 MB / 292.3 MB, free: 5.348 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.4512, allocations: 90.09 kB / 292.4 MB, free: 5.242 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002369/0.4536, allocations: 0.7777 MB / 293.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of pre-optimization done (n=89): time 7.315e-06/0.4536, allocations: 0 / 293.2 MB, free: 4.426 MB / 234.7 MB Notification: Performance of matching and sorting (n=98): time 0.1421/0.5958, allocations: 4.776 MB / 298 MB, free: 60.58 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.787e-05/0.5959, allocations: 297.6 kB / 298.3 MB, free: 60.24 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.5975, allocations: 0.7059 MB / 299 MB, free: 60.12 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002602/0.5978, allocations: 55.5 kB / 299 MB, free: 60.09 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005194/0.5983, allocations: 0.6584 MB / 299.7 MB, free: 59.89 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.5987, allocations: 342.7 kB / 300 MB, free: 59.73 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.5988, allocations: 25.75 kB / 300 MB, free: 59.73 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5989, allocations: 357.7 kB / 300.4 MB, free: 59.41 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001949/0.6009, allocations: 0.647 MB / 301 MB, free: 59.41 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002327/0.6032, allocations: 0.9493 MB / 302 MB, free: 59.11 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/0.6055, allocations: 0.6572 MB / 302.6 MB, free: 59.1 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.6055, allocations: 3.938 kB / 302.6 MB, free: 59.1 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.005492/0.611, allocations: 1.696 MB / 304.3 MB, free: 59 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.6111, allocations: 8.219 kB / 304.4 MB, free: 59 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.6111, allocations: 7.688 kB / 304.4 MB, free: 59 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005304/0.6116, allocations: 178.2 kB / 304.5 MB, free: 58.97 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/0.6133, allocations: 326.4 kB / 304.9 MB, free: 58.97 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004142/0.6175, allocations: 4.494 MB / 309.3 MB, free: 55.12 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.6195, allocations: 185.8 kB / 309.5 MB, free: 55.12 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/0.6197, allocations: 47.56 kB / 309.6 MB, free: 55.12 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (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.motion_ref,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 (146): * Single equations (assignments): 143 * 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.001011/0.6207, allocations: 369.7 kB / 309.9 MB, free: 55.01 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.621, allocations: 99.91 kB / 310 MB, free: 54.96 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/0.6258, allocations: 1.452 MB / 311.5 MB, free: 54.86 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.6259, allocations: 10.94 kB / 311.5 MB, free: 54.86 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.973e-06/0.6259, allocations: 7.703 kB / 311.5 MB, free: 54.86 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.626, allocations: 6.469 kB / 311.5 MB, free: 54.86 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.6362, allocations: 3.632 MB / 315.1 MB, free: 54.3 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.6362, allocations: 3.938 kB / 315.1 MB, free: 54.3 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/0.6378, allocations: 244.5 kB / 315.4 MB, free: 54.3 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009913/0.6388, allocations: 472.8 kB / 315.8 MB, free: 54.27 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.639, allocations: 27.58 kB / 315.9 MB, free: 54.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.641, allocations: 2.179 MB / 318.1 MB, free: 52.5 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.689e-06/0.641, allocations: 9.281 kB / 318.1 MB, free: 52.5 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006849/0.6479, allocations: 2.518 MB / 320.6 MB, free: 51.38 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000803/0.6487, allocations: 313.6 kB / 320.9 MB, free: 51.13 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002554/0.649, allocations: 35.05 kB / 320.9 MB, free: 51.11 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.6503, allocations: 147.2 kB / 321.1 MB, free: 51.09 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004017/0.6507, allocations: 155.1 kB / 321.2 MB, free: 51.06 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6508, allocations: 35.03 kB / 321.2 MB, free: 51.05 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009287/0.6518, allocations: 0.5311 MB / 321.8 MB, free: 50.81 MB / 234.7 MB Notification: Performance of sort global known variables: time 8e-07/0.6518, allocations: 3.562 kB / 321.8 MB, free: 50.81 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001455/0.6533, allocations: 316 kB / 322.1 MB, free: 50.78 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (90): * Single equations (assignments): 88 * 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.0003282/0.6536, allocations: 185.7 kB / 322.3 MB, free: 50.66 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00462/0.6582, allocations: 1.763 MB / 324 MB, free: 49.82 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.694e-06/0.6583, allocations: 6.906 kB / 324 MB, free: 49.82 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.6609, allocations: 0.8444 MB / 324.9 MB, free: 49.45 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.6626, allocations: 200.8 kB / 325.1 MB, free: 49.39 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006924/0.6695, allocations: 3.383 MB / 328.5 MB, free: 47.3 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007881/0.6703, allocations: 1.164 MB / 329.6 MB, free: 46.57 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006487/0.671, allocations: 76.95 kB / 329.7 MB, free: 46.56 MB / 234.7 MB Notification: Performance of SimCode: time 1.857e-06/0.671, allocations: 0 / 329.7 MB, free: 46.56 MB / 234.7 MB Notification: Performance of Templates: time 0.03699/0.708, allocations: 31.14 MB / 360.8 MB, free: 26.02 MB / 234.7 MB