Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.653/1.653, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003456, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07857/0.07894, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01249/0.09149, allocations: 7.412 MB / 280.1 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006018/0.09756, allocations: 2.319 MB / 282.4 MB, free: 1.758 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.09922, allocations: 27.94 kB / 282.4 MB, free: 1.73 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.1005, allocations: 230.3 kB / 282.6 MB, free: 1.504 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00243/0.1029, allocations: 0.5219 MB / 283.1 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.1047, allocations: 343.5 kB / 283.5 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003401/0.1081, allocations: 1.409 MB / 284.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001837/0.11, allocations: 0.8166 MB / 285.7 MB, free: 14.4 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.1115, allocations: 0.5799 MB / 286.3 MB, free: 13.82 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.113, allocations: 0.6377 MB / 286.9 MB, free: 13.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004043/0.1134, allocations: 83.94 kB / 287 MB, free: 13.1 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007036/0.1141, allocations: 167.9 kB / 287.2 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004005/0.1146, allocations: 290.8 kB / 287.5 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000562/0.1151, allocations: 337 kB / 287.8 MB, free: 12.31 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003792/0.119, allocations: 2.66 MB / 290.4 MB, free: 9.645 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.119, allocations: 0 / 290.4 MB, free: 9.645 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.1191, allocations: 8 kB / 290.5 MB, free: 9.637 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.436e-05/0.1191, allocations: 0 / 290.5 MB, free: 9.637 MB / 250.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.005626/0.1248, allocations: 1.635 MB / 292.1 MB, free: 7.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.1249, allocations: 8.031 kB / 292.1 MB, free: 7.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/0.1256, allocations: 182 kB / 292.3 MB, free: 7.758 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.1277, allocations: 0.8022 MB / 293.1 MB, free: 6.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004591/0.1282, allocations: 236.1 kB / 293.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004945/0.1287, allocations: 163.9 kB / 293.5 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005778/0.1345, allocations: 1.655 MB / 295.1 MB, free: 4.816 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.76e-05/0.1346, allocations: 3.984 kB / 295.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/0.1348, allocations: 64 kB / 295.2 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-05/0.1349, allocations: 40 kB / 295.2 MB, free: 4.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005929/0.1408, allocations: 1.554 MB / 296.8 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2447/0.3856, allocations: 5.94 MB / 302.7 MB, free: 26.8 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.3891, allocations: 0.9506 MB / 303.7 MB, free: 26.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001241/0.3893, allocations: 14.91 kB / 303.7 MB, free: 26.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002235/0.3916, allocations: 0.6602 MB / 304.3 MB, free: 26.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=90): time 4.94e-06/0.3916, allocations: 0 / 304.3 MB, free: 26.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.0631/0.4547, allocations: 9.911 MB / 314.3 MB, free: 22.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.4549, allocations: 295.5 kB / 314.5 MB, free: 22.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.4563, allocations: 0.786 MB / 315.3 MB, free: 21.96 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002705/0.4566, allocations: 53.55 kB / 315.4 MB, free: 21.91 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000491/0.4571, allocations: 0.6516 MB / 316 MB, free: 21.33 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004333/0.4575, allocations: 409.3 kB / 316.4 MB, free: 20.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.4577, allocations: 26 kB / 316.5 MB, free: 20.96 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4579, allocations: 408.5 kB / 316.9 MB, free: 20.58 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003371/0.4612, allocations: 0.836 MB / 317.7 MB, free: 20.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/0.4647, allocations: 1.145 MB / 318.8 MB, free: 19.36 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.4678, allocations: 0.8161 MB / 319.7 MB, free: 18.94 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.4679, allocations: 3.141 kB / 319.7 MB, free: 18.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.007365/0.4752, allocations: 2.125 MB / 321.8 MB, free: 17.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.4753, allocations: 8.625 kB / 321.8 MB, free: 17.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.4753, allocations: 7.984 kB / 321.8 MB, free: 17.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005494/0.4759, allocations: 178.3 kB / 322 MB, free: 16.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/0.4789, allocations: 371.5 kB / 322.3 MB, free: 16.48 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/0.4833, allocations: 4.5 MB / 326.8 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/0.486, allocations: 199.9 kB / 327 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4862, allocations: 48 kB / 327.1 MB, free: 11.34 MB / 250.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.000972/0.4872, allocations: 395.1 kB / 327.5 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.4875, allocations: 106.7 kB / 327.6 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.4878, allocations: 130 kB / 327.7 MB, free: 10.71 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.4878, allocations: 7.969 kB / 327.7 MB, free: 10.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.4878, allocations: 4 kB / 327.7 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006525/0.4885, allocations: 340 kB / 328 MB, free: 10.35 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000338/0.4888, allocations: 28.88 kB / 328.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002038/0.4909, allocations: 187.8 kB / 328.3 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005846/0.4915, allocations: 184.7 kB / 328.4 MB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008531/0.5, allocations: 2.053 MB / 330.5 MB, free: 7.914 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.009622/0.5097, allocations: 2.837 MB / 333.3 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003062/0.5128, allocations: 0.8355 MB / 334.2 MB, free: 4.227 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009943/0.5138, allocations: 0.5264 MB / 334.7 MB, free: 3.699 MB / 250.7 MB Notification: Performance of Backend: time 1.393e-06/0.5138, allocations: 0 / 334.7 MB, free: 3.699 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005031/0.5189, allocations: 1.646 MB / 336.3 MB, free: 2.02 MB / 250.7 MB Notification: Performance of SimCode: time 0.00672/0.5256, allocations: 3.594 MB / 339.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of Templates: time 0.07568/0.6014, allocations: 20.44 MB / 360.4 MB, free: 10 MB / 282.7 MB