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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9881/0.9881, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.037e-05/2.04e-05, allocations: 4 kB / 148.1 MB, free: 6.215 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04603/0.04607, allocations: 25.18 MB / 173.3 MB, free: 12.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2308/0.277, allocations: 45.92 MB / 219.2 MB, free: 4.918 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.2772, allocations: 80.77 kB / 219.3 MB, free: 4.906 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1688/0.446, allocations: 47.98 MB / 267.3 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd: time 5.384e-06/0.4461, allocations: 0 / 267.3 MB, free: 15.19 MB / 218.7 MB Notification: Performance of Transformations before backend: time 9.99e-05/0.4462, allocations: 31.94 kB / 267.3 MB, free: 15.16 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.004351/0.4506, allocations: 1.49 MB / 268.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4506, allocations: 12.03 kB / 268.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006908/0.4513, allocations: 178 kB / 269 MB, free: 13.43 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.4533, allocations: 0.775 MB / 269.8 MB, free: 12.62 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004067/0.4537, allocations: 192 kB / 270 MB, free: 12.41 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004313/0.4542, allocations: 99.89 kB / 270.1 MB, free: 12.31 MB / 218.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004304/0.4585, allocations: 1.4 MB / 271.5 MB, free: 10.91 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004682/0.4632, allocations: 1.37 MB / 272.8 MB, free: 9.512 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.4634, allocations: 3.906 kB / 272.8 MB, free: 9.508 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/0.4637, allocations: 4 kB / 272.8 MB, free: 9.504 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.741e-05/0.4638, allocations: 36 kB / 272.9 MB, free: 9.469 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.4823, allocations: 5.865 MB / 278.7 MB, free: 3.379 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002303/0.4846, allocations: 0.8472 MB / 279.6 MB, free: 2.512 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.4858, allocations: 476 kB / 280 MB, free: 2.043 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002054/0.486, allocations: 101.8 kB / 280.1 MB, free: 1.926 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.4875, allocations: 0.597 MB / 280.7 MB, free: 1.285 MB / 218.7 MB Notification: Performance of pre-optimization done (n=89): time 5.289e-06/0.4875, allocations: 0 / 280.7 MB, free: 1.285 MB / 218.7 MB Notification: Performance of matching and sorting (n=98): time 0.01064/0.4981, allocations: 2.983 MB / 283.7 MB, free: 14.2 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002073/0.4984, allocations: 295.5 kB / 284 MB, free: 13.84 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.4998, allocations: 0.6245 MB / 284.6 MB, free: 13.21 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002493/0.5001, allocations: 33.7 kB / 284.7 MB, free: 13.18 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007644/0.5008, allocations: 0.6645 MB / 285.3 MB, free: 12.5 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000515/0.5014, allocations: 323.2 kB / 285.7 MB, free: 12.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5015, allocations: 0 / 285.7 MB, free: 12.18 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002309/0.5017, allocations: 358.8 kB / 286 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.503, allocations: 486.5 kB / 286.5 MB, free: 11.35 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.5045, allocations: 0.762 MB / 287.2 MB, free: 10.47 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.506, allocations: 0.4907 MB / 287.7 MB, free: 9.98 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/0.506, allocations: 3.953 kB / 287.7 MB, free: 9.977 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003673/0.5097, allocations: 1.284 MB / 289 MB, free: 8.676 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.5098, allocations: 12 kB / 289 MB, free: 8.664 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.5098, allocations: 8 kB / 289 MB, free: 8.656 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005571/0.5104, allocations: 174.4 kB / 289.2 MB, free: 8.477 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001788/0.5122, allocations: 323.5 kB / 289.5 MB, free: 8.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005636/0.5179, allocations: 4.32 MB / 293.8 MB, free: 3.5 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.5197, allocations: 159.9 kB / 294 MB, free: 3.344 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002651/0.52, allocations: 44 kB / 294 MB, free: 3.301 MB / 234.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0004253/0.5205, allocations: 142.9 kB / 294.2 MB, free: 3.152 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/0.5208, allocations: 98.83 kB / 294.3 MB, free: 3.055 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003035/0.5238, allocations: 1.074 MB / 295.4 MB, free: 1.965 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.5239, allocations: 8 kB / 295.4 MB, free: 1.957 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.168e-06/0.5239, allocations: 4 kB / 295.4 MB, free: 1.953 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.5239, allocations: 3.984 kB / 295.4 MB, free: 1.949 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1349/0.6588, allocations: 3.105 MB / 298.5 MB, free: 62.29 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.6589, allocations: 3.906 kB / 298.5 MB, free: 62.29 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.6603, allocations: 240.5 kB / 298.7 MB, free: 62.29 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009529/0.6613, allocations: 467.4 kB / 299.2 MB, free: 62.27 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.6614, allocations: 16 kB / 299.2 MB, free: 62.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/0.6633, allocations: 2.141 MB / 301.3 MB, free: 60.58 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/0.6634, allocations: 9.25 kB / 301.3 MB, free: 60.58 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.6674, allocations: 1.988 MB / 303.3 MB, free: 60.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007862/0.6682, allocations: 303.7 kB / 303.6 MB, free: 59.93 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/0.6685, allocations: 18.33 kB / 303.6 MB, free: 59.93 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.6697, allocations: 134.7 kB / 303.8 MB, free: 59.93 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004415/0.6702, allocations: 151.8 kB / 303.9 MB, free: 59.92 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.6703, allocations: 39.75 kB / 304 MB, free: 59.92 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008636/0.6712, allocations: 469.8 kB / 304.4 MB, free: 59.83 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.04e-07/0.6712, allocations: 0 / 304.4 MB, free: 59.83 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001703/0.6729, allocations: 264.4 kB / 304.7 MB, free: 59.83 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.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,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) * 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.0003762/0.6733, allocations: 173 kB / 304.8 MB, free: 59.74 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002835/0.6762, allocations: 1.38 MB / 306.2 MB, free: 59.44 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.987e-06/0.6762, allocations: 1.406 kB / 306.2 MB, free: 59.44 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.6778, allocations: 0.6696 MB / 306.9 MB, free: 59.34 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.6792, allocations: 165 kB / 307.1 MB, free: 59.33 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.6845, allocations: 2.127 MB / 309.2 MB, free: 58.61 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007729/0.6853, allocations: 1.162 MB / 310.3 MB, free: 57.89 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.6859, allocations: 73 kB / 310.4 MB, free: 57.88 MB / 234.7 MB Notification: Performance of SimCode: time 2.007e-06/0.6859, allocations: 0 / 310.4 MB, free: 57.88 MB / 234.7 MB Notification: Performance of Templates: time 0.03876/0.7247, allocations: 30.64 MB / 341.1 MB, free: 46.28 MB / 234.7 MB