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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.588/1.588, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.596e-05/1.607e-05, allocations: 3.938 kB / 222.5 MB, free: 8.672 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07124/0.07128, allocations: 38.76 MB / 261.3 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3035/0.3749, allocations: 83.01 MB / 344.3 MB, free: 5.434 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.3752, allocations: 93.23 kB / 344.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1312/0.5065, allocations: 37.76 MB / 382.2 MB, free: 2.855 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.735e-06/0.5065, allocations: 4 kB / 382.2 MB, free: 2.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001139/0.5067, allocations: 28 kB / 382.2 MB, free: 2.824 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.004567/0.5112, allocations: 1.514 MB / 383.7 MB, free: 1.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.5113, allocations: 8.031 kB / 383.7 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008248/0.5121, allocations: 181.9 kB / 383.9 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.5142, allocations: 0.7944 MB / 384.7 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003767/0.5147, allocations: 188.1 kB / 384.9 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004831/0.5152, allocations: 92.05 kB / 385 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004169/0.5193, allocations: 1.349 MB / 386.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004307/0.5237, allocations: 1.36 MB / 387.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-05/0.5238, allocations: 11.84 kB / 387.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/0.524, allocations: 0 / 387.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/0.524, allocations: 40 kB / 387.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.5384, allocations: 5.841 MB / 393.6 MB, free: 7.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002088/0.5405, allocations: 0.8407 MB / 394.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.5416, allocations: 460.6 kB / 394.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.506e-05/0.5417, allocations: 20.77 kB / 394.9 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.543, allocations: 0.5697 MB / 395.4 MB, free: 5.145 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 4.531e-06/0.543, allocations: 0 / 395.4 MB, free: 5.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.01731/0.5603, allocations: 5.38 MB / 400.8 MB, free: 15.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002124/0.5606, allocations: 296 kB / 401.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.5619, allocations: 0.6323 MB / 401.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002295/0.5622, allocations: 33.73 kB / 401.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.5629, allocations: 0.6841 MB / 402.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.5635, allocations: 394.2 kB / 402.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.5636, allocations: 0 / 402.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002398/0.5639, allocations: 366.7 kB / 403.2 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.5655, allocations: 0.6405 MB / 403.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.5674, allocations: 0.951 MB / 404.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.5691, allocations: 0.6311 MB / 405.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.631e-06/0.5691, allocations: 0 / 405.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004189/0.5733, allocations: 1.624 MB / 407 MB, free: 9.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.5733, allocations: 10.97 kB / 407.1 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.5734, allocations: 8 kB / 407.1 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005489/0.5739, allocations: 182.7 kB / 407.2 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.5761, allocations: 379.5 kB / 407.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005424/0.5816, allocations: 4.304 MB / 411.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/0.5836, allocations: 175.8 kB / 412.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/0.5839, allocations: 60 kB / 412.1 MB, free: 3.75 MB / 346.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 (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.0004674/0.5843, allocations: 151 kB / 412.3 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/0.5847, allocations: 102.7 kB / 412.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003355/0.585, allocations: 117.6 kB / 412.5 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.585, allocations: 12 kB / 412.5 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.5851, allocations: 4 kB / 412.5 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.5851, allocations: 7.969 kB / 412.5 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1954/0.7805, allocations: 3.971 MB / 416.5 MB, free: 95.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/0.7806, allocations: 9.781 kB / 416.5 MB, free: 95.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.7822, allocations: 282.1 kB / 416.8 MB, free: 95.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.7833, allocations: 474.8 kB / 417.3 MB, free: 95.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000219/0.7836, allocations: 25.12 kB / 417.3 MB, free: 95.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.7858, allocations: 2.139 MB / 419.4 MB, free: 93.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-05/0.7858, allocations: 15.59 kB / 419.4 MB, free: 93.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004437/0.7903, allocations: 2.533 MB / 422 MB, free: 92.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008518/0.7912, allocations: 324.3 kB / 422.3 MB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/0.7915, allocations: 25.16 kB / 422.3 MB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.7929, allocations: 142.3 kB / 422.4 MB, free: 92.53 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005026/0.7935, allocations: 183 kB / 422.6 MB, free: 92.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.7936, allocations: 48.98 kB / 422.7 MB, free: 92.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008832/0.7945, allocations: 468.3 kB / 423.1 MB, free: 92.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.97e-07/0.7946, allocations: 0.9375 kB / 423.1 MB, free: 92.42 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001984/0.7965, allocations: 296.7 kB / 423.4 MB, free: 92.42 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.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.0004757/0.7971, allocations: 166.8 kB / 423.6 MB, free: 92.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003442/0.8005, allocations: 1.664 MB / 425.2 MB, free: 92.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/0.8006, allocations: 2.312 kB / 425.2 MB, free: 92.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0022/0.8028, allocations: 0.8594 MB / 426.1 MB, free: 91.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.8042, allocations: 132.2 kB / 426.2 MB, free: 91.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006514/0.8108, allocations: 2.44 MB / 428.7 MB, free: 90.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.8119, allocations: 1.201 MB / 429.9 MB, free: 90.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007507/0.8127, allocations: 84.38 kB / 430 MB, free: 90.23 MB / 346.7 MB Notification: Performance of SimCode: time 1.887e-06/0.8127, allocations: 4 kB / 430 MB, free: 90.22 MB / 346.7 MB Notification: Performance of Templates: time 0.0427/0.8554, allocations: 33.37 MB / 463.3 MB, free: 82.17 MB / 346.7 MB