Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003607, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.08313, allocations: 44.5 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4101/0.4933, allocations: 89 MB / 397.5 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4936, allocations: 90.75 kB / 397.6 MB, free: 18.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1168/0.6105, allocations: 38.01 MB / 435.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.592e-06/0.6106, allocations: 0 / 435.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001823/0.6108, allocations: 36.22 kB / 435.6 MB, free: 3.797 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.008142/0.6189, allocations: 1.623 MB / 437.2 MB, free: 2.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.619, allocations: 8.031 kB / 437.2 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001256/0.6203, allocations: 185.9 kB / 437.4 MB, free: 2.039 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.6236, allocations: 0.7897 MB / 438.2 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005907/0.6242, allocations: 240.6 kB / 438.4 MB, free: 1.246 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000717/0.6249, allocations: 154.4 kB / 438.6 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008565/0.6335, allocations: 1.653 MB / 440.2 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.6337, allocations: 15.64 kB / 440.2 MB, free: 48 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000416/0.6342, allocations: 65.39 kB / 440.3 MB, free: 32 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.925e-05/0.6343, allocations: 36.05 kB / 440.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009798/0.6441, allocations: 1.549 MB / 441.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02893/0.6731, allocations: 6.049 MB / 447.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006411/0.6796, allocations: 0.9295 MB / 448.9 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002129/0.6798, allocations: 17 kB / 448.9 MB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004185/0.6841, allocations: 0.6645 MB / 449.6 MB, free: 8.332 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 9.072e-06/0.6841, allocations: 0 / 449.6 MB, free: 8.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.09682/0.781, allocations: 9.878 MB / 459.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002773/0.7813, allocations: 299.7 kB / 459.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002674/0.784, allocations: 0.6911 MB / 460.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004538/0.7845, allocations: 53.7 kB / 460.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.7857, allocations: 0.6765 MB / 461.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/0.7867, allocations: 414.1 kB / 461.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002713/0.787, allocations: 28 kB / 461.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003313/0.7874, allocations: 366.8 kB / 461.9 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003732/0.7911, allocations: 0.8277 MB / 462.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00436/0.7955, allocations: 1.146 MB / 463.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004953/0.8005, allocations: 0.8106 MB / 464.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.501e-05/0.8006, allocations: 3.953 kB / 464.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01195/0.8126, allocations: 2.057 MB / 466.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.8127, allocations: 8 kB / 466.8 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.408e-05/0.8128, allocations: 11.98 kB / 466.8 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009353/0.8137, allocations: 190.5 kB / 467 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/0.8161, allocations: 375.3 kB / 467.4 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005878/0.822, allocations: 4.47 MB / 471.8 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/0.8245, allocations: 203.9 kB / 472 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/0.8249, allocations: 52 kB / 472.1 MB, free: 1.039 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): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001243/0.8261, allocations: 391.7 kB / 472.5 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003569/0.8265, allocations: 110.7 kB / 472.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006421/0.8329, allocations: 1.834 MB / 474.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/0.833, allocations: 12.28 kB / 474.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.99e-06/0.833, allocations: 0 / 474.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.933e-05/0.8331, allocations: 15.95 kB / 474.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.846, allocations: 4.514 MB / 478.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/0.8461, allocations: 12.25 kB / 479 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/0.8477, allocations: 279.6 kB / 479.2 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009202/0.8487, allocations: 325.4 kB / 479.5 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.8489, allocations: 43.98 kB / 479.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.8515, allocations: 2.11 MB / 481.7 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.585e-05/0.8516, allocations: 11.94 kB / 481.7 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007836/0.8594, allocations: 2.983 MB / 484.7 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009917/0.8604, allocations: 323.7 kB / 485 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003155/0.8608, allocations: 47.94 kB / 485.1 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.8622, allocations: 155.9 kB / 485.2 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004908/0.8627, allocations: 192.5 kB / 485.4 MB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.8628, allocations: 47.98 kB / 485.4 MB, free: 2.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.8641, allocations: 0.5303 MB / 486 MB, free: 2.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.8641, allocations: 0 / 486 MB, free: 2.359 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002042/0.8661, allocations: 351.9 kB / 486.3 MB, free: 2.016 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (114): * Single equations (assignments): 112 * 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.000478/0.8666, allocations: 179.5 kB / 486.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006139/0.8728, allocations: 2.109 MB / 488.6 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/0.8728, allocations: 5.812 kB / 488.6 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003353/0.8762, allocations: 1.053 MB / 489.7 MB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.8777, allocations: 165.1 kB / 489.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0091/0.8868, allocations: 3.803 MB / 493.6 MB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.8882, allocations: 1.206 MB / 494.8 MB, free: 9.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007815/0.889, allocations: 83.42 kB / 494.9 MB, free: 9.172 MB / 378.7 MB Notification: Performance of SimCode: time 1.875e-06/0.889, allocations: 4 kB / 494.9 MB, free: 9.168 MB / 378.7 MB Notification: Performance of Templates: time 0.05534/0.9444, allocations: 34.17 MB / 0.5167 GB, free: 6.992 MB / 410.7 MB