Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003968, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09119, allocations: 44.5 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01225/0.1035, allocations: 7.444 MB / 316.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005983/0.1095, allocations: 2.3 MB / 318.8 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001391/0.111, allocations: 31.88 kB / 318.8 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007816/0.1118, allocations: 226.4 kB / 319.1 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002249/0.114, allocations: 0.5258 MB / 319.6 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1158, allocations: 355.5 kB / 319.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.1197, allocations: 1.416 MB / 321.4 MB, free: 4.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.1222, allocations: 0.8133 MB / 322.2 MB, free: 3.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.1239, allocations: 0.5876 MB / 322.8 MB, free: 2.594 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.1257, allocations: 0.6455 MB / 323.4 MB, free: 1.945 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003633/0.126, allocations: 80 kB / 323.5 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006623/0.1267, allocations: 124 kB / 323.6 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005435/0.1273, allocations: 278.9 kB / 323.9 MB, free: 1.473 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006073/0.1279, allocations: 340.9 kB / 324.2 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004793/0.1327, allocations: 2.66 MB / 326.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1328, allocations: 0 / 326.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1328, allocations: 4 kB / 326.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.937e-05/0.1328, allocations: 0 / 326.9 MB, free: 14.46 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.006719/0.1396, allocations: 1.643 MB / 328.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.1397, allocations: 8.031 kB / 328.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000689/0.1404, allocations: 177.9 kB / 328.7 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002568/0.1429, allocations: 0.8101 MB / 329.5 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005935/0.1436, allocations: 244.1 kB / 329.7 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005756/0.1442, allocations: 159.9 kB / 329.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007153/0.1513, allocations: 1.667 MB / 331.6 MB, free: 9.613 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.024e-05/0.1515, allocations: 7.906 kB / 331.6 MB, free: 9.605 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003589/0.1518, allocations: 64 kB / 331.6 MB, free: 9.543 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-05/0.1519, allocations: 36 kB / 331.7 MB, free: 9.508 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008139/0.1601, allocations: 1.581 MB / 333.3 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.1802, allocations: 5.947 MB / 339.2 MB, free: 1.758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004739/0.185, allocations: 0.9568 MB / 340.2 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.1852, allocations: 13 kB / 340.2 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002906/0.1881, allocations: 0.6878 MB / 340.9 MB, free: 40 kB / 282.7 MB Notification: Performance of pre-optimization done (n=90): time 5.76e-06/0.1882, allocations: 0 / 340.9 MB, free: 40 kB / 282.7 MB Notification: Performance of matching and sorting (n=120): time 0.06839/0.2566, allocations: 9.842 MB / 350.7 MB, free: 6.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001877/0.2568, allocations: 295.7 kB / 351 MB, free: 5.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.2585, allocations: 0.7855 MB / 351.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003142/0.2589, allocations: 57.69 kB / 351.8 MB, free: 4.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007371/0.2596, allocations: 0.6584 MB / 352.5 MB, free: 4.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006333/0.2603, allocations: 406.1 kB / 352.9 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.2605, allocations: 35.94 kB / 352.9 MB, free: 3.742 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002605/0.2607, allocations: 406.8 kB / 353.3 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003745/0.2645, allocations: 0.8394 MB / 354.2 MB, free: 2.496 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004101/0.2686, allocations: 1.158 MB / 355.3 MB, free: 1.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.2723, allocations: 0.8262 MB / 356.1 MB, free: 412 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.2724, allocations: 4 kB / 356.1 MB, free: 408 kB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008809/0.2812, allocations: 2.131 MB / 358.3 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.2813, allocations: 8 kB / 358.3 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.2813, allocations: 8 kB / 358.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000672/0.282, allocations: 186.4 kB / 358.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003388/0.2854, allocations: 367.5 kB / 358.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006122/0.2916, allocations: 4.486 MB / 363.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.2944, allocations: 199.9 kB / 363.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.2947, allocations: 52 kB / 363.6 MB, free: 8.543 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.001113/0.2958, allocations: 379.3 kB / 363.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003158/0.2961, allocations: 110.7 kB / 364 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.2965, allocations: 134 kB / 364.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.2965, allocations: 15.86 kB / 364.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2965, allocations: 0 / 364.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.2973, allocations: 339.7 kB / 364.5 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/0.2977, allocations: 40 kB / 364.6 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/0.2999, allocations: 183.8 kB / 364.7 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007056/0.3006, allocations: 184.7 kB / 364.9 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009772/0.3104, allocations: 2.072 MB / 367 MB, free: 5.066 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01103/0.3215, allocations: 2.868 MB / 369.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003461/0.325, allocations: 0.8433 MB / 370.7 MB, free: 1.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001198/0.3262, allocations: 0.5264 MB / 371.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of Backend: time 3.426e-06/0.3262, allocations: 0 / 371.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.2419/0.5681, allocations: 1.635 MB / 372.9 MB, free: 62.33 MB / 314.7 MB Notification: Performance of SimCode: time 0.007149/0.5753, allocations: 3.605 MB / 376.5 MB, free: 60.2 MB / 314.7 MB Notification: Performance of Templates: time 0.05238/0.6278, allocations: 20.6 MB / 397.1 MB, free: 48.49 MB / 314.7 MB