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.571/1.571, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.801e-05, allocations: 7.938 kB / 228.8 MB, free: 15.31 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2064, allocations: 38.76 MB / 267.6 MB, free: 9.309 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.3278, allocations: 83.68 MB / 351.3 MB, free: 5.504 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.3282, allocations: 87.95 kB / 351.4 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3009/0.6291, allocations: 38.03 MB / 389.4 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.081e-06/0.6292, allocations: 0 / 389.4 MB, free: 57.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.193e-05/0.6293, allocations: 39.92 kB / 389.4 MB, free: 57.05 MB / 298.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.003729/0.633, allocations: 1.515 MB / 390.9 MB, free: 55.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.6331, allocations: 8.031 kB / 391 MB, free: 55.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007218/0.6338, allocations: 185.9 kB / 391.1 MB, free: 55.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.6356, allocations: 0.7905 MB / 391.9 MB, free: 54.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/0.6359, allocations: 244 kB / 392.2 MB, free: 54.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004632/0.6364, allocations: 155.9 kB / 392.3 MB, free: 54.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.6401, allocations: 1.585 MB / 393.9 MB, free: 52.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-05/0.6402, allocations: 11.98 kB / 393.9 MB, free: 52.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.6404, allocations: 60 kB / 394 MB, free: 52.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.999e-05/0.6404, allocations: 40 kB / 394 MB, free: 52.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003292/0.6437, allocations: 1.433 MB / 395.4 MB, free: 50.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/0.6555, allocations: 6.084 MB / 401.5 MB, free: 44.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.6575, allocations: 0.8853 MB / 402.4 MB, free: 43.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009436/0.6585, allocations: 492.7 kB / 402.9 MB, free: 43.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.154e-05/0.6586, allocations: 8.953 kB / 402.9 MB, free: 43.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.6597, allocations: 0.6102 MB / 403.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=90): time 4.512e-06/0.6597, allocations: 0 / 403.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=121): time 0.01482/0.6745, allocations: 5.646 MB / 409.2 MB, free: 36.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.6747, allocations: 307.7 kB / 409.5 MB, free: 36.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.6758, allocations: 0.6989 MB / 410.2 MB, free: 35.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.676, allocations: 57.7 kB / 410.2 MB, free: 35.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/0.6765, allocations: 0.6765 MB / 410.9 MB, free: 34.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003573/0.6769, allocations: 410.1 kB / 411.3 MB, free: 34.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.677, allocations: 28 kB / 411.3 MB, free: 34.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.6771, allocations: 366.7 kB / 411.7 MB, free: 34.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.6786, allocations: 0.6679 MB / 412.3 MB, free: 33.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.6803, allocations: 0.9861 MB / 413.3 MB, free: 32.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.6817, allocations: 0.6492 MB / 414 MB, free: 31.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.301e-06/0.6817, allocations: 4 kB / 414 MB, free: 31.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003731/0.6854, allocations: 1.753 MB / 415.7 MB, free: 29.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.6855, allocations: 9.094 kB / 415.7 MB, free: 29.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.6855, allocations: 4 kB / 415.8 MB, free: 29.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004935/0.686, allocations: 178.5 kB / 415.9 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/0.6882, allocations: 375.5 kB / 416.3 MB, free: 29.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003804/0.692, allocations: 4.47 MB / 420.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.694, allocations: 203.9 kB / 421 MB, free: 24.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000238/0.6943, allocations: 55.98 kB / 421 MB, free: 24.27 MB / 298.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 (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.0003908/0.6947, allocations: 194.9 kB / 421.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.695, allocations: 110.7 kB / 421.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.6953, allocations: 134 kB / 421.4 MB, free: 23.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.6953, allocations: 12 kB / 421.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.6954, allocations: 0 / 421.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.6954, allocations: 7.938 kB / 421.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008869/0.7043, allocations: 4.272 MB / 425.7 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/0.7043, allocations: 8.219 kB / 425.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.7058, allocations: 287.6 kB / 426 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000897/0.7068, allocations: 481.4 kB / 426.5 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.707, allocations: 39.98 kB / 426.5 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/0.7087, allocations: 2.165 MB / 428.7 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.7088, allocations: 20.06 kB / 428.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004108/0.7129, allocations: 2.61 MB / 431.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007782/0.7137, allocations: 323.7 kB / 431.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002928/0.714, allocations: 51.98 kB / 431.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.7154, allocations: 155.9 kB / 431.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.7159, allocations: 184.3 kB / 432 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.716, allocations: 47.98 kB / 432.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009083/0.7169, allocations: 0.5187 MB / 432.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.48e-07/0.7169, allocations: 0 / 432.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001757/0.7187, allocations: 352 kB / 432.9 MB, free: 11.6 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (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.0003624/0.7191, allocations: 191.2 kB / 433.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003412/0.7225, allocations: 1.76 MB / 434.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/0.7226, allocations: 4 kB / 434.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002073/0.7247, allocations: 0.8979 MB / 435.8 MB, free: 8.695 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.726, allocations: 166.3 kB / 435.9 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00601/0.7321, allocations: 2.509 MB / 438.5 MB, free: 5.875 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008397/0.733, allocations: 1.198 MB / 439.7 MB, free: 4.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007043/0.7337, allocations: 91.42 kB / 439.7 MB, free: 4.559 MB / 298.7 MB Notification: Performance of SimCode: time 1.895e-06/0.7337, allocations: 3.938 kB / 439.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of Templates: time 0.05176/0.7855, allocations: 33.82 MB / 473.6 MB, free: 2.719 MB / 330.7 MB