Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.165/2.165, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005355/0.0005356, allocations: 12 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1286, allocations: 44.5 MB / 308.5 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5051/0.6338, allocations: 89 MB / 397.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.6342, allocations: 93.2 kB / 397.6 MB, free: 14.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.136/0.7702, allocations: 38.01 MB / 435.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.7703, allocations: 224 / 435.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001369/0.7704, allocations: 39.77 kB / 435.7 MB, free: 15.89 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.006809/0.7772, allocations: 1.625 MB / 437.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.7773, allocations: 8.031 kB / 437.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009442/0.7783, allocations: 231.5 kB / 437.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007921/0.7791, allocations: 181.9 kB / 437.7 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002316/0.7814, allocations: 0.789 MB / 438.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005074/0.782, allocations: 241.9 kB / 438.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/0.7827, allocations: 162.2 kB / 438.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006466/0.7892, allocations: 1.651 MB / 440.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.7893, allocations: 11.45 kB / 440.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/0.7896, allocations: 60 kB / 440.6 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.508e-05/0.7897, allocations: 36 kB / 440.7 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007007/0.7967, allocations: 1.545 MB / 442.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01884/0.8156, allocations: 6.045 MB / 448.3 MB, free: 5.938 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004109/0.8198, allocations: 0.9412 MB / 449.2 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001824/0.82, allocations: 20.91 kB / 449.2 MB, free: 4.953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002828/0.8228, allocations: 0.6645 MB / 449.9 MB, free: 4.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 4.809e-06/0.8229, allocations: 0 / 449.9 MB, free: 4.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.07998/0.9029, allocations: 9.869 MB / 459.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002426/0.9032, allocations: 299.7 kB / 460 MB, free: 9.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002302/0.9055, allocations: 0.695 MB / 460.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004517/0.906, allocations: 53.7 kB / 460.8 MB, free: 9.137 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.9071, allocations: 0.6765 MB / 461.5 MB, free: 8.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008912/0.908, allocations: 413.8 kB / 461.9 MB, free: 8.055 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.9082, allocations: 24 kB / 461.9 MB, free: 8.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002386/0.9085, allocations: 362.8 kB / 462.2 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005173/0.9137, allocations: 0.8316 MB / 463.1 MB, free: 6.836 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005727/0.9195, allocations: 1.15 MB / 464.2 MB, free: 5.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005087/0.9246, allocations: 0.8145 MB / 465 MB, free: 4.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.9247, allocations: 3.938 kB / 465 MB, free: 4.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01196/0.9366, allocations: 2.061 MB / 467.1 MB, free: 2.676 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.9367, allocations: 8.625 kB / 467.1 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.475e-05/0.9368, allocations: 8 kB / 467.1 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008446/0.9377, allocations: 182.5 kB / 467.3 MB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004331/0.942, allocations: 375.4 kB / 467.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005902/0.948, allocations: 4.474 MB / 472.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003019/0.951, allocations: 199.9 kB / 472.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/0.9513, allocations: 55.98 kB / 472.4 MB, free: 12.98 MB / 362.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): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001312/0.9527, allocations: 395.7 kB / 472.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003767/0.9531, allocations: 106.7 kB / 472.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008014/0.9611, allocations: 1.846 MB / 474.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.9612, allocations: 12 kB / 474.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.9612, allocations: 0 / 474.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.002e-05/0.9612, allocations: 7.984 kB / 474.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.9766, allocations: 4.502 MB / 479.3 MB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/0.9767, allocations: 8 kB / 479.3 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/0.979, allocations: 284.2 kB / 479.5 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.9801, allocations: 333.5 kB / 479.9 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002279/0.9803, allocations: 43.98 kB / 479.9 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.9828, allocations: 2.099 MB / 482 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-05/0.9829, allocations: 15.92 kB / 482 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/0.9934, allocations: 2.983 MB / 485 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.9945, allocations: 331.6 kB / 485.3 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/0.9949, allocations: 40 kB / 485.4 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/0.9968, allocations: 163.9 kB / 485.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005983/0.9974, allocations: 192.5 kB / 485.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.9976, allocations: 47.98 kB / 485.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001302/0.9989, allocations: 0.5263 MB / 486.3 MB, free: 14.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9989, allocations: 0 / 486.3 MB, free: 14.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002085/1.001, allocations: 352 kB / 486.6 MB, free: 14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (114): * Single equations (assignments): 112 * 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.01111/1.012, allocations: 6.294 MB / 492.9 MB, free: 7.414 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008282/1.02, allocations: 2.103 MB / 495 MB, free: 5.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/1.021, allocations: 4 kB / 495 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004236/1.025, allocations: 1.053 MB / 496.1 MB, free: 4.199 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/1.027, allocations: 172 kB / 496.3 MB, free: 4.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03298/1.06, allocations: 13.42 MB / 0.4977 GB, free: 6.141 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/1.061, allocations: 1.202 MB / 0.4989 GB, free: 4.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001718/1.063, allocations: 0.5305 MB / 0.4994 GB, free: 4.379 MB / 394.7 MB Notification: Performance of SimCode: time 1.573e-06/1.063, allocations: 0 / 0.4994 GB, free: 4.379 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.844/4.907, allocations: 40.52 MB / 0.539 GB, free: 122.3 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat