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.9917/0.9917, allocations: 111.2 MB / 124.3 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.836e-05/1.846e-05, allocations: 0 / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1372, allocations: 25.15 MB / 179.4 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07007/0.2073, allocations: 46.59 MB / 226 MB, free: 2.496 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.2076, allocations: 79.95 kB / 226.1 MB, free: 2.418 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2868/0.4944, allocations: 48.2 MB / 274.3 MB, free: 32.53 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.318e-06/0.4945, allocations: 0 / 274.3 MB, free: 32.53 MB / 202.7 MB Notification: Performance of Transformations before backend: time 7.866e-05/0.4946, allocations: 32 kB / 274.3 MB, free: 32.5 MB / 202.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.003085/0.4976, allocations: 1.496 MB / 275.8 MB, free: 31.05 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.4977, allocations: 12.03 kB / 275.8 MB, free: 31.04 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004076/0.4981, allocations: 174 kB / 276 MB, free: 30.87 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.4996, allocations: 0.7762 MB / 276.8 MB, free: 30.12 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003189/0.4999, allocations: 248 kB / 277 MB, free: 29.86 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003318/0.5003, allocations: 154.9 kB / 277.2 MB, free: 29.71 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.5038, allocations: 1.583 MB / 278.8 MB, free: 28.09 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-05/0.5039, allocations: 15.89 kB / 278.8 MB, free: 28.08 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002087/0.5042, allocations: 60 kB / 278.8 MB, free: 28.02 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/0.5042, allocations: 39.94 kB / 278.9 MB, free: 27.98 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003372/0.5076, allocations: 1.475 MB / 280.4 MB, free: 26.5 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.5191, allocations: 6.113 MB / 286.5 MB, free: 20.26 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.5212, allocations: 0.9159 MB / 287.4 MB, free: 19.33 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009901/0.5222, allocations: 0.4922 MB / 287.9 MB, free: 18.83 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001629/0.5224, allocations: 93.83 kB / 288 MB, free: 18.72 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.5237, allocations: 0.6259 MB / 288.6 MB, free: 18.05 MB / 202.7 MB Notification: Performance of pre-optimization done (n=89): time 4.395e-06/0.5237, allocations: 0 / 288.6 MB, free: 18.05 MB / 202.7 MB Notification: Performance of matching and sorting (n=98): time 0.007189/0.5309, allocations: 3.192 MB / 291.8 MB, free: 14.77 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.531, allocations: 291.5 kB / 292.1 MB, free: 14.42 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.5323, allocations: 0.6913 MB / 292.8 MB, free: 13.72 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001891/0.5325, allocations: 57.69 kB / 292.8 MB, free: 13.66 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005061/0.533, allocations: 0.6691 MB / 293.5 MB, free: 12.98 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003139/0.5333, allocations: 333.2 kB / 293.8 MB, free: 12.66 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.5334, allocations: 24 kB / 293.8 MB, free: 12.64 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.5335, allocations: 358.7 kB / 294.2 MB, free: 12.28 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.5347, allocations: 0.4947 MB / 294.7 MB, free: 11.79 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.536, allocations: 0.7916 MB / 295.5 MB, free: 10.88 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.5371, allocations: 0.5086 MB / 296 MB, free: 10.37 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.039e-06/0.5371, allocations: 7.938 kB / 296 MB, free: 10.36 MB / 202.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002981/0.5401, allocations: 1.39 MB / 297.4 MB, free: 8.953 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.5401, allocations: 8.688 kB / 297.4 MB, free: 8.945 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.5402, allocations: 8 kB / 297.4 MB, free: 8.938 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005085/0.5407, allocations: 185.1 kB / 297.6 MB, free: 8.758 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.5423, allocations: 323.5 kB / 297.9 MB, free: 8.441 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003774/0.5461, allocations: 4.457 MB / 302.4 MB, free: 3.594 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.5478, allocations: 190.6 kB / 302.5 MB, free: 3.41 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/0.548, allocations: 47.98 kB / 302.6 MB, free: 3.363 MB / 202.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 () * 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.0003388/0.5484, allocations: 192.9 kB / 302.8 MB, free: 3.172 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002255/0.5486, allocations: 94.78 kB / 302.9 MB, free: 3.078 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002644/0.5513, allocations: 1.16 MB / 304 MB, free: 1.898 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.5513, allocations: 8 kB / 304 MB, free: 1.891 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.5513, allocations: 4 kB / 304 MB, free: 1.887 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.5514, allocations: 3.984 kB / 304 MB, free: 1.883 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007728/0.5591, allocations: 3.357 MB / 307.4 MB, free: 14.44 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.5592, allocations: 4 kB / 307.4 MB, free: 14.43 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/0.5606, allocations: 240.2 kB / 307.6 MB, free: 14.2 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.5617, allocations: 474.6 kB / 308.1 MB, free: 13.75 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.5618, allocations: 31.98 kB / 308.1 MB, free: 13.72 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.5644, allocations: 2.167 MB / 310.3 MB, free: 11.39 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/0.5645, allocations: 7.938 kB / 310.3 MB, free: 11.39 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004722/0.5692, allocations: 2.066 MB / 312.4 MB, free: 9.152 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008843/0.5701, allocations: 307.8 kB / 312.7 MB, free: 8.832 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/0.5705, allocations: 31.98 kB / 312.7 MB, free: 8.801 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.5717, allocations: 151.9 kB / 312.9 MB, free: 8.652 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.5722, allocations: 152.4 kB / 313 MB, free: 8.504 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.5724, allocations: 35.98 kB / 313 MB, free: 8.469 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001094/0.5735, allocations: 0.5226 MB / 313.6 MB, free: 7.953 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.86e-07/0.5735, allocations: 0 / 313.6 MB, free: 7.953 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.00155/0.575, allocations: 319.9 kB / 313.9 MB, free: 7.641 MB / 218.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.0003964/0.5755, allocations: 183.3 kB / 314.1 MB, free: 7.449 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.5787, allocations: 1.461 MB / 315.5 MB, free: 5.957 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.932e-06/0.5788, allocations: 4 kB / 315.5 MB, free: 5.953 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001797/0.5806, allocations: 0.6918 MB / 316.2 MB, free: 5.246 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.5821, allocations: 203.7 kB / 316.4 MB, free: 5.043 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005902/0.588, allocations: 2.195 MB / 318.6 MB, free: 2.785 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.5892, allocations: 1.159 MB / 319.8 MB, free: 1.602 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006264/0.5899, allocations: 75.42 kB / 319.8 MB, free: 1.527 MB / 218.7 MB Notification: Performance of SimCode: time 1.84e-06/0.5899, allocations: 4 kB / 319.8 MB, free: 1.523 MB / 218.7 MB Notification: Performance of Templates: time 0.1711/0.7611, allocations: 31.12 MB / 351 MB, free: 66.71 MB / 234.7 MB