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.826/1.826, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08206, allocations: 44.52 MB / 308.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01057/0.09268, allocations: 7.44 MB / 315.8 MB, free: 9.535 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005291/0.09801, allocations: 2.312 MB / 318.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.09947, allocations: 31.88 kB / 318.2 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006936/0.1002, allocations: 222.4 kB / 318.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.102, allocations: 0.5258 MB / 318.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.1034, allocations: 347.5 kB / 319.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003002/0.1064, allocations: 1.409 MB / 320.6 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.108, allocations: 0.821 MB / 321.5 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.1092, allocations: 0.5876 MB / 322.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000954/0.1102, allocations: 0.6455 MB / 322.7 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002304/0.1104, allocations: 80 kB / 322.8 MB, free: 2.523 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003699/0.1108, allocations: 120 kB / 322.9 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003423/0.1112, allocations: 278.9 kB / 323.2 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004446/0.1116, allocations: 344.9 kB / 323.5 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003367/0.115, allocations: 2.668 MB / 326.2 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.252e-06/0.115, allocations: 0 / 326.2 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1151, allocations: 0 / 326.2 MB, free: 15.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.838e-05/0.1151, allocations: 0 / 326.2 MB, free: 15.11 MB / 282.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.003855/0.119, allocations: 1.639 MB / 327.8 MB, free: 13.42 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.119, allocations: 8.031 kB / 327.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004408/0.1195, allocations: 181.9 kB / 328 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.1212, allocations: 0.8062 MB / 328.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003813/0.1216, allocations: 240.1 kB / 329 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000337/0.1219, allocations: 159.9 kB / 329.2 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004385/0.1263, allocations: 1.686 MB / 330.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.349e-05/0.1264, allocations: 7.906 kB / 330.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.1266, allocations: 64 kB / 331 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/0.1267, allocations: 36 kB / 331 MB, free: 10.15 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004622/0.1313, allocations: 1.574 MB / 332.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/0.1446, allocations: 5.95 MB / 338.5 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002699/0.1474, allocations: 0.9607 MB / 339.5 MB, free: 1.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-05/0.1475, allocations: 12.98 kB / 339.5 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001713/0.1492, allocations: 0.6761 MB / 340.2 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=90): time 4.473e-06/0.1493, allocations: 4 kB / 340.2 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of matching and sorting (n=120): time 0.04122/0.1905, allocations: 9.839 MB / 350 MB, free: 6.719 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002057/0.1907, allocations: 303.7 kB / 350.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.1923, allocations: 0.7778 MB / 351.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.1926, allocations: 57.69 kB / 351.1 MB, free: 5.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006868/0.1933, allocations: 0.6842 MB / 351.8 MB, free: 4.809 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/0.1938, allocations: 418.1 kB / 352.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.194, allocations: 28 kB / 352.3 MB, free: 4.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002227/0.1942, allocations: 358.8 kB / 352.6 MB, free: 4.008 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/0.1969, allocations: 0.8433 MB / 353.4 MB, free: 3.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003061/0.1999, allocations: 1.165 MB / 354.6 MB, free: 1.891 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002608/0.2026, allocations: 0.8185 MB / 355.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.2026, allocations: 0 / 355.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00629/0.2089, allocations: 2.092 MB / 357.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.209, allocations: 11.98 kB / 357.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.209, allocations: 8 kB / 357.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005584/0.2096, allocations: 186.4 kB / 357.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.2117, allocations: 367.5 kB / 358.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.2174, allocations: 4.486 MB / 362.6 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.2193, allocations: 203.9 kB / 362.8 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/0.2195, allocations: 48 kB / 362.8 MB, free: 9.246 MB / 314.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: 12 (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.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 (168): * Single equations (assignments): 165 * 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.001044/0.2206, allocations: 379.3 kB / 363.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.2209, allocations: 102.8 kB / 363.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.2212, allocations: 137.9 kB / 363.4 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.2212, allocations: 12 kB / 363.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.2212, allocations: 8 kB / 363.4 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.2213, allocations: 3.984 kB / 363.4 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/0.2328, allocations: 4.532 MB / 368 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.218e-05/0.2329, allocations: 11.98 kB / 368 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.2344, allocations: 284.2 kB / 368.3 MB, free: 3.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008443/0.2352, allocations: 377.5 kB / 368.6 MB, free: 3.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.2354, allocations: 32 kB / 368.7 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002579/0.238, allocations: 2.185 MB / 370.9 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-05/0.238, allocations: 15.94 kB / 370.9 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.21/0.4481, allocations: 2.593 MB / 373.5 MB, free: 60.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007915/0.4489, allocations: 325.4 kB / 373.8 MB, free: 60.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.4492, allocations: 45.95 kB / 373.8 MB, free: 60.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.4505, allocations: 177.4 kB / 374 MB, free: 60.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004603/0.451, allocations: 185.3 kB / 374.2 MB, free: 60.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.4511, allocations: 44.84 kB / 374.2 MB, free: 60.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.4522, allocations: 0.5254 MB / 374.7 MB, free: 60.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.86e-07/0.4522, allocations: 0 / 374.7 MB, free: 60.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001763/0.454, allocations: 349.3 kB / 375.1 MB, free: 60.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.0003883/0.4544, allocations: 179.6 kB / 375.3 MB, free: 60.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005452/0.4599, allocations: 2.092 MB / 377.4 MB, free: 59.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/0.46, allocations: 2.031 kB / 377.4 MB, free: 59.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003137/0.4631, allocations: 1.069 MB / 378.4 MB, free: 58.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.4646, allocations: 171.2 kB / 378.6 MB, free: 58.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007997/0.4727, allocations: 3.799 MB / 382.4 MB, free: 56.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4738, allocations: 1.203 MB / 383.6 MB, free: 55.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006863/0.4745, allocations: 86.94 kB / 383.7 MB, free: 55.4 MB / 314.7 MB Notification: Performance of SimCode: time 1.574e-06/0.4745, allocations: 0 / 383.7 MB, free: 55.4 MB / 314.7 MB Notification: Performance of Templates: time 0.03937/0.5139, allocations: 34.03 MB / 417.7 MB, free: 26.41 MB / 314.7 MB