Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadModel(Modelica): time 1.052/1.052, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002546/0.0002547, allocations: 4 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05182/0.05211, allocations: 25.17 MB / 184.1 MB, free: 6.008 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.2729, allocations: 46.67 MB / 230.7 MB, free: 15.98 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.2733, allocations: 82.08 kB / 230.8 MB, free: 15.94 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2043/0.4776, allocations: 48.23 MB / 279 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4776, allocations: 0 / 279 MB, free: 3.664 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001191/0.4778, allocations: 32 kB / 279.1 MB, free: 3.633 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.005231/0.483, allocations: 1.6 MB / 280.7 MB, free: 1.977 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4831, allocations: 12.02 kB / 280.7 MB, free: 1.965 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006174/0.4837, allocations: 174 kB / 280.8 MB, free: 1.793 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.4855, allocations: 0.7827 MB / 281.6 MB, free: 0.9688 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004326/0.4859, allocations: 252 kB / 281.9 MB, free: 0.7031 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004246/0.4864, allocations: 156 kB / 282 MB, free: 0.5508 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00613/0.4925, allocations: 1.754 MB / 283.8 MB, free: 14.76 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.191e-05/0.4926, allocations: 11.89 kB / 283.8 MB, free: 14.75 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.4929, allocations: 60 kB / 283.8 MB, free: 14.69 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.484e-05/0.4929, allocations: 36 kB / 283.9 MB, free: 14.66 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007326/0.5003, allocations: 1.799 MB / 285.7 MB, free: 12.85 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/0.5166, allocations: 6.104 MB / 291.8 MB, free: 6.512 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004604/0.5213, allocations: 1.091 MB / 292.9 MB, free: 5.387 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002293/0.5216, allocations: 90.09 kB / 293 MB, free: 5.281 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002904/0.5245, allocations: 0.7855 MB / 293.8 MB, free: 4.457 MB / 234.7 MB Notification: Performance of pre-optimization done (n=89): time 6.051e-06/0.5245, allocations: 0 / 293.8 MB, free: 4.457 MB / 234.7 MB Notification: Performance of matching and sorting (n=98): time 0.1659/0.6904, allocations: 4.776 MB / 298.5 MB, free: 60.36 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.911e-05/0.6906, allocations: 297 kB / 298.8 MB, free: 60.02 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.6923, allocations: 0.7883 MB / 299.6 MB, free: 59.89 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003074/0.6927, allocations: 50.3 kB / 299.7 MB, free: 59.86 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005372/0.6932, allocations: 0.6623 MB / 300.3 MB, free: 59.67 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/0.6936, allocations: 334.1 kB / 300.6 MB, free: 59.5 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.6938, allocations: 28.16 kB / 300.7 MB, free: 59.5 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.6939, allocations: 362.1 kB / 301 MB, free: 59.19 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/0.6965, allocations: 0.6491 MB / 301.7 MB, free: 59.19 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/0.6993, allocations: 0.9498 MB / 302.6 MB, free: 58.88 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.7019, allocations: 0.6558 MB / 303.3 MB, free: 58.88 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.7019, allocations: 3.906 kB / 303.3 MB, free: 58.88 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.006264/0.7082, allocations: 1.698 MB / 305 MB, free: 58.77 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.7083, allocations: 8.25 kB / 305 MB, free: 58.77 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.7083, allocations: 9.688 kB / 305 MB, free: 58.77 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/0.7089, allocations: 174.6 kB / 305.2 MB, free: 58.75 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/0.7114, allocations: 326.7 kB / 305.5 MB, free: 58.75 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.716, allocations: 4.499 MB / 310 MB, free: 54.9 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/0.7185, allocations: 183.7 kB / 310.2 MB, free: 54.9 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002501/0.7188, allocations: 49.31 kB / 310.2 MB, free: 54.9 MB / 234.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 (146): * Single equations (assignments): 143 * 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.001058/0.7198, allocations: 369.2 kB / 310.6 MB, free: 54.78 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.7201, allocations: 99.47 kB / 310.7 MB, free: 54.73 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005766/0.7259, allocations: 1.449 MB / 312.1 MB, free: 54.64 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.726, allocations: 13.17 kB / 312.1 MB, free: 54.64 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.726, allocations: 1.25 kB / 312.1 MB, free: 54.64 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.726, allocations: 10.52 kB / 312.1 MB, free: 54.64 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.7384, allocations: 3.635 MB / 315.8 MB, free: 54.07 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.497e-05/0.7385, allocations: 3.156 kB / 315.8 MB, free: 54.07 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/0.7407, allocations: 246.8 kB / 316 MB, free: 54.07 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.7419, allocations: 472.2 kB / 316.5 MB, free: 54.05 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/0.7422, allocations: 27.56 kB / 316.5 MB, free: 54.05 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002133/0.7443, allocations: 2.184 MB / 318.7 MB, free: 52.28 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.7444, allocations: 7.797 kB / 318.7 MB, free: 52.28 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008351/0.7527, allocations: 2.329 MB / 321 MB, free: 51.42 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008491/0.7536, allocations: 308.3 kB / 321.3 MB, free: 51.18 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003095/0.7539, allocations: 34.75 kB / 321.4 MB, free: 51.16 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.7556, allocations: 151.4 kB / 321.5 MB, free: 51.14 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004754/0.7561, allocations: 155.5 kB / 321.7 MB, free: 51.11 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.7563, allocations: 40.14 kB / 321.7 MB, free: 51.1 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001081/0.7574, allocations: 0.5254 MB / 322.2 MB, free: 50.86 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7574, allocations: 0 / 322.2 MB, free: 50.86 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001708/0.7591, allocations: 320.1 kB / 322.5 MB, free: 50.82 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (90): * Single equations (assignments): 88 * 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.0004207/0.7595, allocations: 181.4 kB / 322.7 MB, free: 50.7 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005814/0.7654, allocations: 1.761 MB / 324.5 MB, free: 49.87 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.7654, allocations: 0 / 324.5 MB, free: 49.87 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003076/0.7685, allocations: 0.8458 MB / 325.3 MB, free: 49.5 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.7705, allocations: 198.9 kB / 325.5 MB, free: 49.45 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008066/0.7786, allocations: 3.394 MB / 328.9 MB, free: 47.35 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007585/0.7794, allocations: 1.155 MB / 330.1 MB, free: 46.63 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007695/0.7802, allocations: 79.92 kB / 330.2 MB, free: 46.62 MB / 234.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7802, allocations: 0 / 330.2 MB, free: 46.62 MB / 234.7 MB Notification: Performance of Templates: time 0.04551/0.8257, allocations: 31.14 MB / 361.3 MB, free: 26.01 MB / 234.7 MB