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.711/1.711, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003531, allocations: 16 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09848, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3954/0.4939, allocations: 83.76 MB / 356.4 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004436/0.4944, allocations: 94.25 kB / 356.5 MB, free: 5.762 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1765/0.671, allocations: 38.06 MB / 394.5 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.671, allocations: 4 kB / 394.5 MB, free: 5.586 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001219/0.6712, allocations: 32 kB / 394.6 MB, free: 5.555 MB / 314.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.006074/0.6773, allocations: 1.627 MB / 396.2 MB, free: 3.871 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.6773, allocations: 8.031 kB / 396.2 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009059/0.6782, allocations: 186 kB / 396.4 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002237/0.6805, allocations: 0.7944 MB / 397.2 MB, free: 2.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005308/0.6811, allocations: 232.1 kB / 397.4 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007041/0.6818, allocations: 163.9 kB / 397.6 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006891/0.6887, allocations: 1.674 MB / 399.2 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.6889, allocations: 11.89 kB / 399.3 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.6892, allocations: 68 kB / 399.3 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.761e-05/0.6893, allocations: 36 kB / 399.4 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006896/0.6962, allocations: 1.589 MB / 400.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01771/0.7139, allocations: 6.092 MB / 407 MB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005927/0.7199, allocations: 0.9791 MB / 408 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/0.7202, allocations: 20.94 kB / 408 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003862/0.7241, allocations: 0.6763 MB / 408.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 5.881e-06/0.7241, allocations: 0 / 408.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.08914/0.8133, allocations: 9.96 MB / 418.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.8135, allocations: 311.7 kB / 419 MB, free: 12.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.8154, allocations: 0.7895 MB / 419.8 MB, free: 11.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003823/0.8159, allocations: 53.7 kB / 419.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008142/0.8167, allocations: 0.6584 MB / 420.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000704/0.8174, allocations: 410.2 kB / 420.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.8176, allocations: 28 kB / 420.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003041/0.8179, allocations: 406.7 kB / 421.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003905/0.8219, allocations: 0.855 MB / 422.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00432/0.8262, allocations: 1.173 MB / 423.3 MB, free: 7.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003829/0.8301, allocations: 0.834 MB / 424.2 MB, free: 7.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.8301, allocations: 4 kB / 424.2 MB, free: 7.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008997/0.8392, allocations: 2.166 MB / 426.3 MB, free: 4.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.8392, allocations: 8.625 kB / 426.3 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.8393, allocations: 8 kB / 426.4 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006376/0.8399, allocations: 174.5 kB / 426.5 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003322/0.8433, allocations: 375.5 kB / 426.9 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2998/1.143, allocations: 4.48 MB / 431.4 MB, free: 92.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004108/1.147, allocations: 204.4 kB / 431.6 MB, free: 92.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004194/1.148, allocations: 55.03 kB / 431.6 MB, free: 92.45 MB / 346.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): 166 * 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.001849/1.15, allocations: 391.9 kB / 432 MB, free: 92.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005119/1.15, allocations: 107.2 kB / 432.1 MB, free: 92.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005886/1.151, allocations: 139.2 kB / 432.2 MB, free: 92.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/1.151, allocations: 12.38 kB / 432.3 MB, free: 92.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/1.151, allocations: 2.078 kB / 432.3 MB, free: 92.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.411e-05/1.151, allocations: 5.766 kB / 432.3 MB, free: 92.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02115/1.172, allocations: 4.567 MB / 436.8 MB, free: 91.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-05/1.172, allocations: 7.875 kB / 436.8 MB, free: 91.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003531/1.176, allocations: 279.7 kB / 437.1 MB, free: 91.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/1.178, allocations: 485.2 kB / 437.6 MB, free: 91.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004129/1.178, allocations: 38.02 kB / 437.6 MB, free: 91.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00334/1.181, allocations: 2.189 MB / 439.8 MB, free: 89.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.38e-05/1.182, allocations: 14.3 kB / 439.8 MB, free: 89.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/1.196, allocations: 2.606 MB / 442.4 MB, free: 89.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/1.197, allocations: 331 kB / 442.8 MB, free: 89.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005492/1.198, allocations: 47.69 kB / 442.8 MB, free: 89.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002899/1.201, allocations: 157.7 kB / 443 MB, free: 89.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009368/1.202, allocations: 182.3 kB / 443.1 MB, free: 89.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002223/1.202, allocations: 48.09 kB / 443.2 MB, free: 89.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001824/1.204, allocations: 0.5359 MB / 443.7 MB, free: 89.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.204, allocations: 0 / 443.7 MB, free: 89.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003354/1.207, allocations: 350.1 kB / 444.1 MB, free: 89.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (113): * Single equations (assignments): 111 * 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.0007422/1.208, allocations: 196.7 kB / 444.3 MB, free: 89.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01109/1.219, allocations: 2.086 MB / 446.3 MB, free: 88.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.492e-05/1.219, allocations: 2.188 kB / 446.3 MB, free: 88.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005856/1.225, allocations: 1.083 MB / 447.4 MB, free: 88.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/1.227, allocations: 162.8 kB / 447.6 MB, free: 88.55 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/1.241, allocations: 3.74 MB / 451.3 MB, free: 86.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/1.242, allocations: 1.201 MB / 452.5 MB, free: 85.85 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002319/1.244, allocations: 166.2 kB / 452.7 MB, free: 85.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009821/1.245, allocations: 79.56 kB / 452.8 MB, free: 85.8 MB / 346.7 MB Notification: Performance of SimCode: time 1.704e-06/1.245, allocations: 0 / 452.8 MB, free: 85.8 MB / 346.7 MB Notification: Performance of Templates: time 0.06136/1.307, allocations: 16.89 MB / 469.7 MB, free: 84.94 MB / 346.7 MB