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.081/1.081, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.47e-05, allocations: 0 / 154.4 MB, free: 13.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1731, allocations: 25.16 MB / 179.5 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.2782, allocations: 46.59 MB / 226.1 MB, free: 2.477 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003606/0.2786, allocations: 79.95 kB / 226.2 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3467/0.6254, allocations: 48.2 MB / 274.4 MB, free: 32.49 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.6254, allocations: 0 / 274.4 MB, free: 32.49 MB / 202.7 MB Notification: Performance of Transformations before backend: time 8.911e-05/0.6255, allocations: 28 kB / 274.4 MB, free: 32.46 MB / 202.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.004812/0.6303, allocations: 1.497 MB / 275.9 MB, free: 31.02 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.6304, allocations: 8.031 kB / 275.9 MB, free: 31.01 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005762/0.631, allocations: 219.6 kB / 276.2 MB, free: 30.79 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004817/0.6315, allocations: 178 kB / 276.3 MB, free: 30.61 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.6332, allocations: 0.7822 MB / 277.1 MB, free: 29.83 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003926/0.6336, allocations: 255.9 kB / 277.4 MB, free: 29.56 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004079/0.634, allocations: 148 kB / 277.5 MB, free: 29.42 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004756/0.6388, allocations: 1.586 MB / 279.1 MB, free: 27.81 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.819e-05/0.639, allocations: 7.609 kB / 279.1 MB, free: 27.8 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/0.6392, allocations: 67.94 kB / 279.2 MB, free: 27.74 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/0.6393, allocations: 36 kB / 279.2 MB, free: 27.7 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004794/0.6441, allocations: 1.476 MB / 280.7 MB, free: 26.22 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01603/0.6602, allocations: 6.104 MB / 286.8 MB, free: 19.99 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002705/0.6629, allocations: 0.9218 MB / 287.7 MB, free: 19.05 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.6642, allocations: 0.4986 MB / 288.2 MB, free: 18.55 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002159/0.6644, allocations: 89.89 kB / 288.3 MB, free: 18.44 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001462/0.6659, allocations: 0.6297 MB / 288.9 MB, free: 17.77 MB / 202.7 MB Notification: Performance of pre-optimization done (n=89): time 3.687e-06/0.6659, allocations: 0 / 288.9 MB, free: 17.77 MB / 202.7 MB Notification: Performance of matching and sorting (n=98): time 0.008493/0.6744, allocations: 3.177 MB / 292.1 MB, free: 14.5 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.6746, allocations: 303.5 kB / 292.4 MB, free: 14.14 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/0.676, allocations: 0.7029 MB / 293.1 MB, free: 13.43 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002723/0.6763, allocations: 45.7 kB / 293.1 MB, free: 13.38 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005325/0.6768, allocations: 0.6698 MB / 293.8 MB, free: 12.7 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.6772, allocations: 329.9 kB / 294.1 MB, free: 12.39 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.6773, allocations: 24 kB / 294.2 MB, free: 12.36 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.6774, allocations: 358.7 kB / 294.5 MB, free: 12 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.6788, allocations: 0.4908 MB / 295 MB, free: 11.52 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.6803, allocations: 0.7955 MB / 295.8 MB, free: 10.6 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.6816, allocations: 0.5124 MB / 296.3 MB, free: 10.09 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.6816, allocations: 7.938 kB / 296.3 MB, free: 10.08 MB / 202.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.00357/0.6852, allocations: 1.386 MB / 297.7 MB, free: 8.676 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.6853, allocations: 8 kB / 297.7 MB, free: 8.668 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.6853, allocations: 8 kB / 297.7 MB, free: 8.66 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005908/0.6859, allocations: 188.5 kB / 297.9 MB, free: 8.48 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/0.6884, allocations: 315.6 kB / 298.2 MB, free: 8.172 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004374/0.6928, allocations: 4.469 MB / 302.7 MB, free: 3.312 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/0.6953, allocations: 183.9 kB / 302.9 MB, free: 3.133 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.6956, allocations: 44 kB / 302.9 MB, free: 3.09 MB / 202.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 () * 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.0003977/0.696, allocations: 182.9 kB / 303.1 MB, free: 2.902 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.6963, allocations: 98.78 kB / 303.2 MB, free: 2.805 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/0.6995, allocations: 1.164 MB / 304.3 MB, free: 1.621 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.6995, allocations: 8 kB / 304.3 MB, free: 1.613 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.6996, allocations: 4 kB / 304.4 MB, free: 1.609 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.6996, allocations: 3.984 kB / 304.4 MB, free: 1.605 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009745/0.7093, allocations: 3.359 MB / 307.7 MB, free: 14.16 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/0.7094, allocations: 7.375 kB / 307.7 MB, free: 14.16 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/0.7116, allocations: 240.2 kB / 308 MB, free: 13.92 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.7129, allocations: 474.2 kB / 308.4 MB, free: 13.47 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002275/0.7132, allocations: 31.98 kB / 308.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002639/0.7158, allocations: 2.168 MB / 310.6 MB, free: 11.12 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/0.7159, allocations: 7.938 kB / 310.6 MB, free: 11.11 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005492/0.7214, allocations: 2.059 MB / 312.7 MB, free: 8.879 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009976/0.7224, allocations: 311.8 kB / 313 MB, free: 8.555 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.7228, allocations: 32 kB / 313 MB, free: 8.523 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.7246, allocations: 151.9 kB / 313.2 MB, free: 8.375 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005532/0.7252, allocations: 156.4 kB / 313.3 MB, free: 8.223 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.7254, allocations: 35.98 kB / 313.4 MB, free: 8.188 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001244/0.7266, allocations: 0.5187 MB / 313.9 MB, free: 7.676 MB / 218.7 MB Notification: Performance of sort global known variables: time 6.964e-06/0.7266, allocations: 0 / 313.9 MB, free: 7.676 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.00181/0.7285, allocations: 319.9 kB / 314.2 MB, free: 7.363 MB / 218.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.006327/0.7348, allocations: 3.733 MB / 317.9 MB, free: 3.488 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.00408/0.7389, allocations: 1.46 MB / 319.4 MB, free: 1.996 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/0.739, allocations: 4 kB / 319.4 MB, free: 1.992 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.7411, allocations: 0.6968 MB / 320.1 MB, free: 1.281 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.7432, allocations: 202.7 kB / 320.3 MB, free: 1.086 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008906/0.7521, allocations: 2.411 MB / 322.7 MB, free: 14.6 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.7533, allocations: 1.163 MB / 323.9 MB, free: 13.41 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/0.7549, allocations: 495.3 kB / 324.3 MB, free: 12.92 MB / 234.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7549, allocations: 4 kB / 324.3 MB, free: 12.92 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.647/4.402, allocations: 37.18 MB / 361.5 MB, free: 58.57 MB / 234.7 MB