Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.0003871, allocations: 8 kB / 264.1 MB, free: 2.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3034, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1609/0.4643, allocations: 89.01 MB / 397.6 MB, free: 3.527 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.4647, allocations: 91.94 kB / 397.7 MB, free: 3.438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4014/0.8662, allocations: 38 MB / 435.7 MB, free: 85.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.8662, allocations: 0 / 435.7 MB, free: 85.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001264/0.8664, allocations: 34.97 kB / 435.7 MB, free: 85.1 MB / 346.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.005964/0.8724, allocations: 1.626 MB / 437.3 MB, free: 84.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.8724, allocations: 6.469 kB / 437.3 MB, free: 84.28 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008665/0.8733, allocations: 226.8 kB / 437.6 MB, free: 84.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006649/0.874, allocations: 188.5 kB / 437.8 MB, free: 84.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.8761, allocations: 0.7925 MB / 438.5 MB, free: 83.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000437/0.8766, allocations: 241.4 kB / 438.8 MB, free: 83.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.8771, allocations: 161.1 kB / 438.9 MB, free: 83.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005846/0.883, allocations: 1.655 MB / 440.6 MB, free: 82.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.8832, allocations: 14.39 kB / 440.6 MB, free: 82.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/0.8834, allocations: 62.66 kB / 440.7 MB, free: 82.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.749e-05/0.8835, allocations: 38.92 kB / 440.7 MB, free: 82.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006321/0.8898, allocations: 1.544 MB / 442.3 MB, free: 81.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01606/0.9059, allocations: 6.043 MB / 448.3 MB, free: 74.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/0.9095, allocations: 0.9331 MB / 449.2 MB, free: 73.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001699/0.9098, allocations: 16.44 kB / 449.2 MB, free: 73.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/0.9121, allocations: 0.6723 MB / 449.9 MB, free: 73.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 4.959e-06/0.9122, allocations: 0 / 449.9 MB, free: 73.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.06574/0.9779, allocations: 9.868 MB / 459.8 MB, free: 63.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.9781, allocations: 303.8 kB / 460.1 MB, free: 62.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/0.9795, allocations: 0.6872 MB / 460.8 MB, free: 62.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000365/0.9799, allocations: 57.69 kB / 460.8 MB, free: 62.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005953/0.9805, allocations: 0.6524 MB / 461.5 MB, free: 61.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/0.981, allocations: 418.1 kB / 461.9 MB, free: 61.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.9812, allocations: 24 kB / 461.9 MB, free: 61.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.9814, allocations: 410.7 kB / 462.3 MB, free: 60.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003552/0.985, allocations: 0.8277 MB / 463.1 MB, free: 59.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003889/0.9889, allocations: 1.151 MB / 464.3 MB, free: 58.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003558/0.9925, allocations: 0.8106 MB / 465.1 MB, free: 57.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.9926, allocations: 4 kB / 465.1 MB, free: 57.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00841/1.001, allocations: 2.103 MB / 467.2 MB, free: 55.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/1.001, allocations: 8 kB / 467.2 MB, free: 55.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/1.001, allocations: 8 kB / 467.2 MB, free: 55.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000589/1.002, allocations: 181.6 kB / 467.4 MB, free: 55.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/1.005, allocations: 371.4 kB / 467.8 MB, free: 55.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004452/1.01, allocations: 4.481 MB / 472.2 MB, free: 50.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002937/1.013, allocations: 203.9 kB / 472.4 MB, free: 50.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000218/1.013, allocations: 51.94 kB / 472.5 MB, free: 49.96 MB / 346.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.001138/1.014, allocations: 399.7 kB / 472.9 MB, free: 49.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/1.014, allocations: 102.7 kB / 473 MB, free: 49.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007372/1.022, allocations: 1.838 MB / 474.8 MB, free: 47.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/1.022, allocations: 12 kB / 474.8 MB, free: 47.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.022, allocations: 4 kB / 474.8 MB, free: 47.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.674e-05/1.022, allocations: 4.266 kB / 474.8 MB, free: 47.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/1.035, allocations: 4.516 MB / 479.4 MB, free: 42.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/1.035, allocations: 8 kB / 479.4 MB, free: 42.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.038, allocations: 280.5 kB / 479.6 MB, free: 42.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008708/1.038, allocations: 332.6 kB / 480 MB, free: 42.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/1.039, allocations: 43.98 kB / 480 MB, free: 42.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001904/1.041, allocations: 2.104 MB / 482.1 MB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/1.041, allocations: 11.94 kB / 482.1 MB, free: 40 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008624/1.049, allocations: 2.984 MB / 485.1 MB, free: 36.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009924/1.05, allocations: 331.6 kB / 485.4 MB, free: 36.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/1.051, allocations: 47.94 kB / 485.5 MB, free: 36.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/1.053, allocations: 158.7 kB / 485.6 MB, free: 36.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005412/1.053, allocations: 188.6 kB / 485.8 MB, free: 35.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/1.053, allocations: 47.98 kB / 485.9 MB, free: 35.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001077/1.054, allocations: 0.5302 MB / 486.4 MB, free: 35.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.054, allocations: 0 / 486.4 MB, free: 35.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001943/1.056, allocations: 348 kB / 486.7 MB, free: 34.99 MB / 346.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.009847/1.066, allocations: 6.289 MB / 493 MB, free: 28.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007471/1.074, allocations: 2.111 MB / 495.1 MB, free: 26.26 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.711e-05/1.074, allocations: 0 / 495.1 MB, free: 26.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003916/1.078, allocations: 1.077 MB / 496.2 MB, free: 25.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/1.079, allocations: 169.2 kB / 496.4 MB, free: 25.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02904/1.109, allocations: 13.37 MB / 0.4978 GB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/1.11, allocations: 1.206 MB / 0.499 GB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001671/1.112, allocations: 164.3 kB / 0.4991 GB, free: 9.773 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.113, allocations: 0.5266 MB / 0.4996 GB, free: 9.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/1.113, allocations: 0 / 0.4996 GB, free: 9.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08682/1.2, allocations: 27.24 MB / 0.5263 GB, free: 14.01 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003176/1.201, allocations: 242.2 kB / 0.5265 GB, free: 13.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/5.025, allocations: 0 / 0.5265 GB, free: 13.75 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat