Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003686, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 44.51 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.5727, allocations: 88.99 MB / 398 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/0.5731, allocations: 91.86 kB / 398.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1334/0.7066, allocations: 38.01 MB / 436.1 MB, free: 428 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7066, allocations: 0 / 436.1 MB, free: 428 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000134/0.7068, allocations: 43.83 kB / 436.1 MB, free: 388 kB / 314.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.006119/0.7129, allocations: 1.622 MB / 437.7 MB, free: 14.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.713, allocations: 8.031 kB / 437.7 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009701/0.714, allocations: 181.9 kB / 437.9 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.7163, allocations: 0.7905 MB / 438.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004696/0.7168, allocations: 238 kB / 438.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005772/0.7174, allocations: 156.4 kB / 439.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006207/0.7236, allocations: 1.671 MB / 440.8 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.88e-05/0.7237, allocations: 7.906 kB / 440.8 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.724, allocations: 65.95 kB / 440.8 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/0.7241, allocations: 36 kB / 440.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00696/0.731, allocations: 1.545 MB / 442.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01804/0.7491, allocations: 6.05 MB / 448.5 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003888/0.7531, allocations: 0.9409 MB / 449.4 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001719/0.7533, allocations: 13 kB / 449.4 MB, free: 5.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002542/0.7559, allocations: 0.6723 MB / 450.1 MB, free: 4.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 4.849e-06/0.7559, allocations: 3.938 kB / 450.1 MB, free: 4.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.07139/0.8273, allocations: 9.865 MB / 460 MB, free: 10.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002214/0.8276, allocations: 299.7 kB / 460.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.8297, allocations: 0.7738 MB / 461 MB, free: 9.539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004858/0.8302, allocations: 53.7 kB / 461.1 MB, free: 9.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008851/0.8311, allocations: 0.6801 MB / 461.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008868/0.832, allocations: 406.2 kB / 462.2 MB, free: 8.402 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.8323, allocations: 36.03 kB / 462.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.8325, allocations: 362.8 kB / 462.6 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004111/0.8366, allocations: 0.8277 MB / 463.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004482/0.8412, allocations: 1.153 MB / 464.5 MB, free: 5.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/0.8451, allocations: 0.8141 MB / 465.3 MB, free: 5.102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.8451, allocations: 4 kB / 465.4 MB, free: 5.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00896/0.8541, allocations: 2.053 MB / 467.4 MB, free: 3.027 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.8542, allocations: 8.625 kB / 467.4 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-05/0.8542, allocations: 11.94 kB / 467.4 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000669/0.8549, allocations: 186.4 kB / 467.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003309/0.8582, allocations: 375.5 kB / 468 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00597/0.8642, allocations: 4.47 MB / 472.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/0.8673, allocations: 203.9 kB / 472.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000203/0.8675, allocations: 56 kB / 472.7 MB, free: 13.32 MB / 362.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: 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001306/0.8689, allocations: 383.7 kB / 473.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003222/0.8692, allocations: 114.6 kB / 473.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007879/0.8771, allocations: 1.842 MB / 475 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.8771, allocations: 12 kB / 475 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.8772, allocations: 4 kB / 475 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.8772, allocations: 3.984 kB / 475 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/0.8925, allocations: 4.512 MB / 479.6 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/0.8926, allocations: 8 kB / 479.6 MB, free: 6.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00238/0.895, allocations: 283.7 kB / 479.8 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.8961, allocations: 333.7 kB / 480.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/0.8963, allocations: 35.98 kB / 480.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.8988, allocations: 2.107 MB / 482.3 MB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.49e-05/0.8989, allocations: 11.94 kB / 482.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009323/0.9082, allocations: 2.527 MB / 484.9 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.9093, allocations: 327.6 kB / 485.2 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/0.9097, allocations: 51.98 kB / 485.2 MB, free: 292 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/0.9117, allocations: 151.9 kB / 485.4 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005963/0.9123, allocations: 188.8 kB / 485.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.9125, allocations: 51.98 kB / 485.6 MB, free: 15.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001298/0.9138, allocations: 0.5264 MB / 486.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9138, allocations: 3.938 kB / 486.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002125/0.9159, allocations: 355.9 kB / 486.5 MB, free: 15.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * 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.000543/0.9165, allocations: 192.7 kB / 486.7 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007984/0.9245, allocations: 2.095 MB / 488.8 MB, free: 12.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/0.9246, allocations: 7.938 kB / 488.8 MB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004215/0.9288, allocations: 1.049 MB / 489.8 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.9306, allocations: 167.6 kB / 490 MB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.9422, allocations: 3.805 MB / 493.8 MB, free: 7.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/0.9436, allocations: 1.214 MB / 495 MB, free: 6.254 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/0.9447, allocations: 83.42 kB / 495.1 MB, free: 6.176 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.9447, allocations: 0 / 495.1 MB, free: 6.176 MB / 378.7 MB Notification: Performance of Templates: time 0.07023/1.015, allocations: 34.18 MB / 0.5169 GB, free: 3.984 MB / 410.7 MB