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.581/1.581, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003577, allocations: 12 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06982/0.07021, allocations: 38.77 MB / 271.9 MB, free: 12.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01109/0.08135, allocations: 7.409 MB / 279.3 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005473/0.08686, allocations: 2.319 MB / 281.7 MB, free: 2.398 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.08833, allocations: 27.88 kB / 281.7 MB, free: 2.371 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006636/0.08902, allocations: 230.3 kB / 281.9 MB, free: 2.145 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001735/0.09077, allocations: 0.518 MB / 282.4 MB, free: 1.625 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.0921, allocations: 363.5 kB / 282.8 MB, free: 1.27 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.0949, allocations: 1.401 MB / 284.2 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.09654, allocations: 0.8088 MB / 285 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.09778, allocations: 0.5877 MB / 285.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009433/0.09875, allocations: 0.6338 MB / 286.2 MB, free: 13.81 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.09898, allocations: 80 kB / 286.3 MB, free: 13.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004462/0.09943, allocations: 167.9 kB / 286.5 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.09978, allocations: 278.9 kB / 286.7 MB, free: 13.3 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004326/0.1002, allocations: 340.9 kB / 287.1 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003322/0.1036, allocations: 2.668 MB / 289.7 MB, free: 10.29 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.222e-06/0.1036, allocations: 4 kB / 289.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.978e-06/0.1036, allocations: 0 / 289.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.797e-05/0.1037, allocations: 0 / 289.7 MB, free: 10.28 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.004055/0.1077, allocations: 1.631 MB / 291.4 MB, free: 8.594 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1078, allocations: 8.031 kB / 291.4 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004717/0.1083, allocations: 178 kB / 291.6 MB, free: 8.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.11, allocations: 0.8022 MB / 292.4 MB, free: 7.562 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003903/0.1104, allocations: 244.1 kB / 292.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003469/0.1108, allocations: 159.9 kB / 292.8 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004431/0.1152, allocations: 1.666 MB / 294.4 MB, free: 5.453 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.178e-05/0.1153, allocations: 11.94 kB / 294.4 MB, free: 5.441 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.1155, allocations: 64 kB / 294.5 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.1156, allocations: 36 kB / 294.5 MB, free: 5.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004698/0.1203, allocations: 1.546 MB / 296.1 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1892/0.3095, allocations: 5.948 MB / 302 MB, free: 26.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.3123, allocations: 0.9524 MB / 303 MB, free: 26.53 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.593e-05/0.3124, allocations: 12.94 kB / 303 MB, free: 26.53 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.314, allocations: 0.6695 MB / 303.7 MB, free: 26.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=90): time 5.146e-06/0.3141, allocations: 0 / 303.7 MB, free: 26.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.0403/0.3544, allocations: 9.911 MB / 313.6 MB, free: 22.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.3545, allocations: 299.5 kB / 313.9 MB, free: 22.58 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.3559, allocations: 0.7848 MB / 314.6 MB, free: 22.11 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002157/0.3561, allocations: 57.56 kB / 314.7 MB, free: 22.06 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004366/0.3566, allocations: 0.6732 MB / 315.4 MB, free: 21.45 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003903/0.357, allocations: 409 kB / 315.8 MB, free: 21.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.3571, allocations: 25.62 kB / 315.8 MB, free: 21.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3572, allocations: 366.9 kB / 316.2 MB, free: 20.72 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002784/0.36, allocations: 0.8334 MB / 317 MB, free: 20.3 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002962/0.363, allocations: 1.157 MB / 318.1 MB, free: 19.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.3657, allocations: 0.8143 MB / 319 MB, free: 19.09 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.3657, allocations: 3.438 kB / 319 MB, free: 19.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.0063/0.372, allocations: 2.073 MB / 321 MB, free: 17.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.3721, allocations: 11.72 kB / 321.1 MB, free: 17.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.3721, allocations: 8 kB / 321.1 MB, free: 17.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.3726, allocations: 183 kB / 321.2 MB, free: 17.39 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.3746, allocations: 375.4 kB / 321.6 MB, free: 17.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/0.3785, allocations: 4.488 MB / 326.1 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.3803, allocations: 199.9 kB / 326.3 MB, free: 11.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.3805, allocations: 52 kB / 326.3 MB, free: 11.89 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.0008865/0.3814, allocations: 379.8 kB / 326.7 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.3816, allocations: 111 kB / 326.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000253/0.3819, allocations: 140.4 kB / 327 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.3819, allocations: 15.98 kB / 327 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.3819, allocations: 0 / 327 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.382, allocations: 7.969 kB / 327 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009682/0.3916, allocations: 4.598 MB / 331.6 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.3917, allocations: 8 kB / 331.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/0.3931, allocations: 287.9 kB / 331.9 MB, free: 6.191 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008173/0.3939, allocations: 301.3 kB / 332.2 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002019/0.3942, allocations: 39.98 kB / 332.2 MB, free: 5.859 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.3961, allocations: 2.143 MB / 334.3 MB, free: 3.559 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/0.3962, allocations: 15.94 kB / 334.4 MB, free: 3.543 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005979/0.4022, allocations: 2.686 MB / 337 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000707/0.4029, allocations: 315.7 kB / 337.4 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.4032, allocations: 51.98 kB / 337.4 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4045, allocations: 172.7 kB / 337.6 MB, free: 176 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003966/0.4049, allocations: 184.2 kB / 337.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.405, allocations: 47.94 kB / 337.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.4061, allocations: 0.5264 MB / 338.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.574e-06/0.4061, allocations: 0 / 338.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00174/0.4079, allocations: 345.5 kB / 338.7 MB, free: 15.09 MB / 266.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.0004146/0.4083, allocations: 188.7 kB / 338.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.005741/0.4141, allocations: 2.081 MB / 340.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/0.4141, allocations: 1.812 kB / 340.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003176/0.4173, allocations: 1.059 MB / 342 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.4187, allocations: 160.9 kB / 342.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008237/0.4269, allocations: 3.794 MB / 345.9 MB, free: 7.602 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.4283, allocations: 1.206 MB / 347.1 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006794/0.429, allocations: 83.44 kB / 347.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of SimCode: time 1.562e-06/0.429, allocations: 0 / 347.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of Templates: time 0.05421/0.4832, allocations: 33.73 MB / 380.9 MB, free: 4.555 MB / 298.7 MB