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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.036/1.036, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.261e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0554/0.05546, allocations: 25.18 MB / 173.4 MB, free: 12.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2839/0.3394, allocations: 45.93 MB / 219.3 MB, free: 3.125 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.3397, allocations: 71.83 kB / 219.4 MB, free: 3.113 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2046/0.5443, allocations: 47.98 MB / 267.4 MB, free: 13.89 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5444, allocations: 0 / 267.4 MB, free: 13.89 MB / 218.7 MB Notification: Performance of Transformations before backend: time 9.994e-05/0.5445, allocations: 35.98 kB / 267.4 MB, free: 13.85 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.005311/0.5498, allocations: 1.498 MB / 268.9 MB, free: 12.3 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.5499, allocations: 8.031 kB / 268.9 MB, free: 12.3 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006881/0.5506, allocations: 178 kB / 269.1 MB, free: 12.12 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.5526, allocations: 0.775 MB / 269.9 MB, free: 11.3 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004405/0.5531, allocations: 192 kB / 270.1 MB, free: 11.1 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/0.5535, allocations: 95.95 kB / 270.2 MB, free: 11 MB / 218.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004326/0.5578, allocations: 1.4 MB / 271.6 MB, free: 9.602 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004123/0.562, allocations: 1.37 MB / 272.9 MB, free: 8.203 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.031e-05/0.5621, allocations: 7.906 kB / 272.9 MB, free: 8.195 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.5623, allocations: 0 / 272.9 MB, free: 8.195 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.211e-05/0.5624, allocations: 36 kB / 273 MB, free: 8.16 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01628/0.5787, allocations: 5.857 MB / 278.8 MB, free: 2.078 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.5813, allocations: 0.8511 MB / 279.7 MB, free: 1.207 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.5825, allocations: 472 kB / 280.1 MB, free: 0.7422 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.5827, allocations: 93.84 kB / 280.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.5842, allocations: 0.601 MB / 280.8 MB, free: 15.98 MB / 234.7 MB Notification: Performance of pre-optimization done (n=89): time 6.813e-06/0.5842, allocations: 4 kB / 280.8 MB, free: 15.98 MB / 234.7 MB Notification: Performance of matching and sorting (n=98): time 0.009002/0.5932, allocations: 2.991 MB / 283.8 MB, free: 12.89 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/0.5935, allocations: 299.5 kB / 284.1 MB, free: 12.53 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/0.5948, allocations: 0.6207 MB / 284.7 MB, free: 11.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002281/0.5951, allocations: 33.7 kB / 284.8 MB, free: 11.87 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007165/0.5958, allocations: 0.6644 MB / 285.4 MB, free: 11.2 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000442/0.5963, allocations: 327.2 kB / 285.8 MB, free: 10.87 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.5964, allocations: 0 / 285.8 MB, free: 10.87 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.5966, allocations: 358.8 kB / 286.1 MB, free: 10.51 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.5979, allocations: 482.6 kB / 286.6 MB, free: 10.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.5995, allocations: 0.762 MB / 287.3 MB, free: 9.164 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.6009, allocations: 0.4907 MB / 287.8 MB, free: 8.672 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.601, allocations: 4 kB / 287.8 MB, free: 8.668 MB / 234.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003676/0.6047, allocations: 1.288 MB / 289.1 MB, free: 7.363 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.6047, allocations: 11.12 kB / 289.1 MB, free: 7.355 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.6048, allocations: 8 kB / 289.1 MB, free: 7.348 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005924/0.6054, allocations: 170.4 kB / 289.3 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00264/0.608, allocations: 327.5 kB / 289.6 MB, free: 6.852 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005529/0.6136, allocations: 4.316 MB / 293.9 MB, free: 2.195 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/0.6162, allocations: 151.9 kB / 294.1 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002518/0.6165, allocations: 55.98 kB / 294.1 MB, free: 1.992 MB / 234.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0004989/0.617, allocations: 150.9 kB / 294.3 MB, free: 1.836 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003155/0.6201, allocations: 0.9967 MB / 295.3 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004357/0.6206, allocations: 102.8 kB / 295.4 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1585/0.7791, allocations: 1.059 MB / 296.4 MB, free: 62.05 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/0.7792, allocations: 9.156 kB / 296.5 MB, free: 62.05 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.7792, allocations: 7.156 kB / 296.5 MB, free: 62.05 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.749e-05/0.7793, allocations: 9.734 kB / 296.5 MB, free: 62.05 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009286/0.7885, allocations: 3.105 MB / 299.6 MB, free: 61.57 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.7886, allocations: 2.781 kB / 299.6 MB, free: 61.57 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/0.7907, allocations: 237.1 kB / 299.8 MB, free: 61.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.7918, allocations: 471.9 kB / 300.3 MB, free: 61.55 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002016/0.792, allocations: 15.22 kB / 300.3 MB, free: 61.55 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.7941, allocations: 2.145 MB / 302.4 MB, free: 59.85 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/0.7941, allocations: 6.75 kB / 302.4 MB, free: 59.85 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.7986, allocations: 1.988 MB / 304.4 MB, free: 59.28 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008275/0.7995, allocations: 303.4 kB / 304.7 MB, free: 59.18 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/0.7998, allocations: 19.73 kB / 304.7 MB, free: 59.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.8015, allocations: 135.7 kB / 304.9 MB, free: 59.18 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/0.8021, allocations: 151.5 kB / 305 MB, free: 59.18 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.8023, allocations: 36.48 kB / 305.1 MB, free: 59.18 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009339/0.8032, allocations: 475.1 kB / 305.5 MB, free: 59.09 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8032, allocations: 0 / 305.5 MB, free: 59.09 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001841/0.8051, allocations: 268 kB / 305.8 MB, free: 59.09 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.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,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) * 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.004962/0.8101, allocations: 3.632 MB / 309.4 MB, free: 56.93 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002987/0.8131, allocations: 1.389 MB / 310.8 MB, free: 56.62 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.8132, allocations: 2.344 kB / 310.8 MB, free: 56.62 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.8148, allocations: 0.6668 MB / 311.5 MB, free: 56.52 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.8165, allocations: 151.2 kB / 311.6 MB, free: 56.5 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/0.8239, allocations: 2.318 MB / 313.9 MB, free: 55.71 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007952/0.8248, allocations: 1.161 MB / 315.1 MB, free: 54.99 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/0.8261, allocations: 496.2 kB / 315.6 MB, free: 54.98 MB / 234.7 MB Notification: Performance of SimCode: time 1.263e-06/0.8261, allocations: 0 / 315.6 MB, free: 54.98 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.426/4.252, allocations: 36.67 MB / 352.3 MB, free: 35.26 MB / 234.7 MB