Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.536/1.536, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003538, allocations: 11.98 kB / 233.3 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06736/0.06774, allocations: 38.78 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.297/0.3648, allocations: 83.75 MB / 355.8 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.3651, allocations: 92.75 kB / 355.9 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1277/0.4928, allocations: 38.05 MB / 393.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.463e-06/0.4928, allocations: 4 kB / 393.9 MB, free: 6.141 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.913e-05/0.4929, allocations: 28 kB / 393.9 MB, free: 6.113 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.004381/0.4973, allocations: 1.627 MB / 395.6 MB, free: 4.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.4974, allocations: 8.031 kB / 395.6 MB, free: 4.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006882/0.4981, allocations: 190 kB / 395.8 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.4999, allocations: 0.7983 MB / 396.6 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.5003, allocations: 236.1 kB / 396.8 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003673/0.5007, allocations: 155.9 kB / 397 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004727/0.5054, allocations: 1.682 MB / 398.6 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-05/0.5056, allocations: 7.906 kB / 398.6 MB, free: 1.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/0.5058, allocations: 60 kB / 398.7 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.062e-05/0.5058, allocations: 36 kB / 398.7 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005059/0.5109, allocations: 1.605 MB / 400.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/0.5252, allocations: 6.085 MB / 406.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002984/0.5282, allocations: 0.9765 MB / 407.4 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.06e-05/0.5283, allocations: 12.95 kB / 407.4 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/0.5302, allocations: 0.6839 MB / 408.1 MB, free: 7.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 6.926e-06/0.5302, allocations: 3.984 kB / 408.1 MB, free: 7.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.04486/0.5751, allocations: 9.959 MB / 418.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/0.5754, allocations: 299.7 kB / 418.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.577, allocations: 0.7106 MB / 419.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002998/0.5773, allocations: 57.7 kB / 419.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007667/0.5781, allocations: 0.6843 MB / 419.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005854/0.5787, allocations: 402.2 kB / 420.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.5789, allocations: 32 kB / 420.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002521/0.5791, allocations: 362.8 kB / 420.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002919/0.5821, allocations: 0.855 MB / 421.4 MB, free: 9.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/0.5853, allocations: 1.169 MB / 422.6 MB, free: 8.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002829/0.5882, allocations: 0.834 MB / 423.4 MB, free: 7.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.5882, allocations: 0 / 423.4 MB, free: 7.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006876/0.5951, allocations: 2.12 MB / 425.6 MB, free: 5.676 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.5952, allocations: 12 kB / 425.6 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.5952, allocations: 4 kB / 425.6 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000583/0.5958, allocations: 186.5 kB / 425.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/0.5981, allocations: 371.5 kB / 426.1 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005612/0.6038, allocations: 4.501 MB / 430.6 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.6058, allocations: 203.8 kB / 430.8 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1869/0.7928, allocations: 53.73 kB / 430.9 MB, free: 93.35 MB / 346.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 (169): * Single equations (assignments): 166 * 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.00117/0.794, allocations: 385.1 kB / 431.2 MB, free: 93.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.7943, allocations: 103.2 kB / 431.3 MB, free: 93.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003322/0.7946, allocations: 135 kB / 431.5 MB, free: 93.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.7947, allocations: 16.52 kB / 431.5 MB, free: 93.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.7947, allocations: 3.422 kB / 431.5 MB, free: 93.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.7947, allocations: 7.25 kB / 431.5 MB, free: 93.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.8061, allocations: 4.562 MB / 436.1 MB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.153e-05/0.8062, allocations: 11 kB / 436.1 MB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.8077, allocations: 280.2 kB / 436.4 MB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009982/0.8087, allocations: 482 kB / 436.8 MB, free: 92.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.8089, allocations: 37 kB / 436.9 MB, free: 92.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.8109, allocations: 2.189 MB / 439 MB, free: 90.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.595e-05/0.8109, allocations: 13.84 kB / 439.1 MB, free: 90.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007655/0.8186, allocations: 3.046 MB / 442.1 MB, free: 89.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009208/0.8195, allocations: 335.5 kB / 442.4 MB, free: 89.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000345/0.8199, allocations: 43.41 kB / 442.5 MB, free: 89.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/0.8215, allocations: 163.3 kB / 442.6 MB, free: 89.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004763/0.822, allocations: 193.9 kB / 442.8 MB, free: 89.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.8222, allocations: 51.94 kB / 442.9 MB, free: 89.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00104/0.8232, allocations: 0.5297 MB / 443.4 MB, free: 89.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.38e-07/0.8233, allocations: 0 / 443.4 MB, free: 89.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001888/0.8252, allocations: 347.4 kB / 443.7 MB, free: 89.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (113): * Single equations (assignments): 111 * 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.0003874/0.8256, allocations: 191 kB / 443.9 MB, free: 89.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005572/0.8312, allocations: 2.095 MB / 446 MB, free: 88.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.8312, allocations: 1.562 kB / 446 MB, free: 88.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003136/0.8343, allocations: 1.054 MB / 447.1 MB, free: 88.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.8357, allocations: 168.8 kB / 447.2 MB, free: 88.85 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00697/0.8427, allocations: 3.779 MB / 451 MB, free: 86.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008806/0.8436, allocations: 1.207 MB / 452.2 MB, free: 86.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/0.8443, allocations: 84.16 kB / 452.3 MB, free: 86.12 MB / 346.7 MB Notification: Performance of SimCode: time 1.905e-06/0.8444, allocations: 0 / 452.3 MB, free: 86.12 MB / 346.7 MB Notification: Performance of Templates: time 0.04013/0.8845, allocations: 33.83 MB / 486.1 MB, free: 72.35 MB / 346.7 MB