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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.086/1.086, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 8 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05275/0.05306, allocations: 25.17 MB / 183.6 MB, free: 5.859 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2318/0.2849, allocations: 46.68 MB / 230.3 MB, free: 15.45 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.2853, allocations: 83.56 kB / 230.4 MB, free: 15.4 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.211/0.4964, allocations: 48.21 MB / 278.6 MB, free: 3.406 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4964, allocations: 0 / 278.6 MB, free: 3.406 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001485/0.4966, allocations: 36.16 kB / 278.6 MB, free: 3.371 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.006709/0.5033, allocations: 1.604 MB / 280.2 MB, free: 1.707 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.5034, allocations: 8.031 kB / 280.2 MB, free: 1.699 MB / 218.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.5044, allocations: 223.5 kB / 280.4 MB, free: 1.469 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007179/0.5052, allocations: 178 kB / 280.6 MB, free: 1.293 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/0.5076, allocations: 0.7905 MB / 281.4 MB, free: 468 kB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00056/0.5082, allocations: 248 kB / 281.7 MB, free: 200 kB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007269/0.509, allocations: 151.9 kB / 281.8 MB, free: 48 kB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007632/0.5166, allocations: 1.751 MB / 283.6 MB, free: 14.27 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.843e-05/0.5168, allocations: 4 kB / 283.6 MB, free: 14.26 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003048/0.5171, allocations: 60 kB / 283.6 MB, free: 14.2 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-05/0.5171, allocations: 36 kB / 283.7 MB, free: 14.17 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008291/0.5254, allocations: 1.799 MB / 285.5 MB, free: 12.36 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0195/0.545, allocations: 6.108 MB / 291.6 MB, free: 6.023 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005031/0.5501, allocations: 1.091 MB / 292.7 MB, free: 4.898 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.5504, allocations: 98.17 kB / 292.7 MB, free: 4.785 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003355/0.5538, allocations: 0.7777 MB / 293.5 MB, free: 3.969 MB / 234.7 MB Notification: Performance of pre-optimization done (n=89): time 4.178e-06/0.5539, allocations: 0 / 293.5 MB, free: 3.969 MB / 234.7 MB Notification: Performance of matching and sorting (n=98): time 0.1811/0.735, allocations: 4.773 MB / 298.3 MB, free: 60.16 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.7351, allocations: 295.2 kB / 298.6 MB, free: 59.82 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.737, allocations: 0.7103 MB / 299.3 MB, free: 59.69 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003329/0.7374, allocations: 52.11 kB / 299.3 MB, free: 59.66 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006434/0.7381, allocations: 0.6659 MB / 300 MB, free: 59.32 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005604/0.7386, allocations: 335.2 kB / 300.3 MB, free: 59.15 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.7388, allocations: 25.09 kB / 300.4 MB, free: 59.15 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.7389, allocations: 357.7 kB / 300.7 MB, free: 58.84 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00292/0.7419, allocations: 0.6449 MB / 301.4 MB, free: 58.84 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003113/0.7451, allocations: 0.9499 MB / 302.3 MB, free: 58.53 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002777/0.7479, allocations: 0.6511 MB / 303 MB, free: 58.53 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/0.748, allocations: 5.906 kB / 303 MB, free: 58.53 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.007134/0.7551, allocations: 1.701 MB / 304.7 MB, free: 58.42 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.702e-05/0.7552, allocations: 7.906 kB / 304.7 MB, free: 58.42 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/0.7553, allocations: 5.844 kB / 304.7 MB, free: 58.42 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006445/0.7559, allocations: 183.3 kB / 304.9 MB, free: 58.4 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/0.7585, allocations: 325.8 kB / 305.2 MB, free: 58.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.7636, allocations: 4.497 MB / 309.7 MB, free: 54.55 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/0.7662, allocations: 181.5 kB / 309.9 MB, free: 54.55 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/0.7666, allocations: 51.75 kB / 309.9 MB, free: 54.55 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.001408/0.768, allocations: 363.2 kB / 310.3 MB, free: 54.43 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/0.7684, allocations: 98.97 kB / 310.4 MB, free: 54.38 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006135/0.7746, allocations: 1.452 MB / 311.8 MB, free: 54.29 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/0.7746, allocations: 9.688 kB / 311.8 MB, free: 54.29 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.7747, allocations: 10.11 kB / 311.8 MB, free: 54.29 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-05/0.7747, allocations: 7.719 kB / 311.8 MB, free: 54.29 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0132/0.7879, allocations: 3.641 MB / 315.5 MB, free: 53.72 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/0.788, allocations: 3.938 kB / 315.5 MB, free: 53.72 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/0.7901, allocations: 238.1 kB / 315.7 MB, free: 53.72 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.7914, allocations: 475.1 kB / 316.2 MB, free: 53.7 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002883/0.7917, allocations: 27.69 kB / 316.2 MB, free: 53.7 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.7939, allocations: 2.174 MB / 318.4 MB, free: 51.92 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.794, allocations: 7.25 kB / 318.4 MB, free: 51.92 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008692/0.8027, allocations: 2.514 MB / 320.9 MB, free: 51.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.8038, allocations: 311.6 kB / 321.2 MB, free: 50.85 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.8043, allocations: 36.38 kB / 321.2 MB, free: 50.83 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/0.8063, allocations: 153.5 kB / 321.4 MB, free: 50.81 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006656/0.8071, allocations: 148 kB / 321.5 MB, free: 50.78 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/0.8072, allocations: 35.39 kB / 321.6 MB, free: 50.77 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.00121/0.8084, allocations: 0.5392 MB / 322.1 MB, free: 50.53 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8085, allocations: 0 / 322.1 MB, free: 50.53 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00207/0.8106, allocations: 303.4 kB / 322.4 MB, free: 50.5 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.009037/0.8197, allocations: 4.181 MB / 326.6 MB, free: 47.54 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006139/0.8259, allocations: 1.768 MB / 328.4 MB, free: 46.7 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/0.8259, allocations: 1.812 kB / 328.4 MB, free: 46.7 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003138/0.8291, allocations: 0.8492 MB / 329.2 MB, free: 46.33 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.8313, allocations: 196.6 kB / 329.4 MB, free: 46.27 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/0.8562, allocations: 12.28 MB / 341.7 MB, free: 37.53 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008055/0.857, allocations: 1.162 MB / 342.8 MB, free: 36.81 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/0.8584, allocations: 0.4895 MB / 343.3 MB, free: 36.42 MB / 234.7 MB Notification: Performance of SimCode: time 1.393e-06/0.8584, allocations: 3.031 kB / 343.3 MB, free: 36.42 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.427/4.285, allocations: 37.13 MB / 380.5 MB, free: 5.754 MB / 234.7 MB