Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.743/1.743, allocations: 171.1 MB / 187.3 MB, free: 1.145 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003509, allocations: 8 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.08691, allocations: 38.76 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3838/0.4708, allocations: 83.76 MB / 356.3 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003576/0.4712, allocations: 99.73 kB / 356.4 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1477/0.619, allocations: 38.05 MB / 394.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.619, allocations: 0 / 394.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000142/0.6192, allocations: 35.98 kB / 394.5 MB, free: 6.176 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.00617/0.6254, allocations: 1.615 MB / 396.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.6254, allocations: 12.03 kB / 396.1 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009364/0.6264, allocations: 186 kB / 396.3 MB, free: 4.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002304/0.6287, allocations: 0.8022 MB / 397.1 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004749/0.6292, allocations: 236.1 kB / 397.3 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005839/0.6298, allocations: 159.9 kB / 397.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006338/0.6362, allocations: 1.694 MB / 399.2 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-05/0.6363, allocations: 3.906 kB / 399.2 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/0.6366, allocations: 68 kB / 399.2 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.6367, allocations: 36 kB / 399.3 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006788/0.6435, allocations: 1.601 MB / 400.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.6605, allocations: 6.081 MB / 407 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/0.6644, allocations: 0.9803 MB / 407.9 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.6646, allocations: 16.94 kB / 408 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002269/0.6669, allocations: 0.6841 MB / 408.6 MB, free: 7.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 3.717e-06/0.6669, allocations: 4 kB / 408.7 MB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.0682/0.7351, allocations: 9.952 MB / 418.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.7353, allocations: 303.7 kB / 418.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001935/0.7373, allocations: 0.7934 MB / 419.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003908/0.7377, allocations: 53.7 kB / 419.7 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007847/0.7385, allocations: 0.6804 MB / 420.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006996/0.7392, allocations: 410.2 kB / 420.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.7394, allocations: 32 kB / 420.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.7397, allocations: 362.8 kB / 421.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003971/0.7436, allocations: 0.8511 MB / 422.1 MB, free: 9.895 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004286/0.748, allocations: 1.177 MB / 423.2 MB, free: 8.605 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003639/0.7516, allocations: 0.834 MB / 424.1 MB, free: 7.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.7517, allocations: 0 / 424.1 MB, free: 7.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008825/0.7605, allocations: 2.12 MB / 426.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.7606, allocations: 8.625 kB / 426.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.7606, allocations: 8 kB / 426.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006439/0.7613, allocations: 186.5 kB / 426.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003297/0.7646, allocations: 371.5 kB / 426.8 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005539/0.7702, allocations: 4.494 MB / 431.2 MB, free: 176 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2369/1.007, allocations: 204.7 kB / 431.4 MB, free: 93.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004867/1.008, allocations: 54.17 kB / 431.5 MB, free: 93.23 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.001417/1.009, allocations: 391.9 kB / 431.9 MB, free: 93.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004147/1.01, allocations: 104 kB / 432 MB, free: 93.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004367/1.01, allocations: 133.8 kB / 432.1 MB, free: 93.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/1.01, allocations: 11.97 kB / 432.1 MB, free: 93.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/1.01, allocations: 3.516 kB / 432.1 MB, free: 93.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/1.01, allocations: 6.328 kB / 432.1 MB, free: 93.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/1.025, allocations: 4.564 MB / 436.7 MB, free: 92.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/1.025, allocations: 13.06 kB / 436.7 MB, free: 92.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/1.027, allocations: 280.4 kB / 437 MB, free: 92.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/1.028, allocations: 484.5 kB / 437.5 MB, free: 92.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/1.029, allocations: 38.23 kB / 437.5 MB, free: 92.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/1.031, allocations: 2.185 MB / 439.7 MB, free: 90.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.615e-05/1.031, allocations: 16.41 kB / 439.7 MB, free: 90.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009158/1.04, allocations: 2.602 MB / 442.3 MB, free: 90.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009555/1.041, allocations: 334 kB / 442.6 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/1.041, allocations: 48.06 kB / 442.7 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.043, allocations: 156.5 kB / 442.8 MB, free: 90.01 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005833/1.044, allocations: 187.8 kB / 443 MB, free: 90 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.044, allocations: 52.55 kB / 443.1 MB, free: 90 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001183/1.045, allocations: 0.5299 MB / 443.6 MB, free: 89.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.045, allocations: 2.719 kB / 443.6 MB, free: 89.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002001/1.047, allocations: 349.2 kB / 443.9 MB, free: 89.9 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.0004651/1.048, allocations: 185.4 kB / 444.1 MB, free: 89.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00736/1.055, allocations: 2.091 MB / 446.2 MB, free: 89.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-05/1.055, allocations: 1.531 kB / 446.2 MB, free: 89.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00403/1.059, allocations: 1.056 MB / 447.3 MB, free: 89.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/1.061, allocations: 167.5 kB / 447.4 MB, free: 89.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009272/1.07, allocations: 3.787 MB / 451.2 MB, free: 87.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008642/1.071, allocations: 1.21 MB / 452.4 MB, free: 86.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009642/1.072, allocations: 87.92 kB / 452.5 MB, free: 86.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/1.072, allocations: 0 / 452.5 MB, free: 86.62 MB / 346.7 MB Notification: Performance of Templates: time 0.05154/1.124, allocations: 33.83 MB / 486.3 MB, free: 72.72 MB / 346.7 MB