Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.713/1.713, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003906, allocations: 16 kB / 233.4 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08881, allocations: 38.76 MB / 272.1 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3761/0.465, allocations: 83.76 MB / 355.9 MB, free: 5.289 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.4654, allocations: 87.75 kB / 356 MB, free: 5.238 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1474/0.6128, allocations: 38.06 MB / 394 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6129, allocations: 0 / 394 MB, free: 5.207 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.613, allocations: 32 kB / 394.1 MB, free: 5.176 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.006589/0.6196, allocations: 1.623 MB / 395.7 MB, free: 3.605 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/0.6197, allocations: 12.03 kB / 395.7 MB, free: 3.594 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.6209, allocations: 228.3 kB / 395.9 MB, free: 3.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.6221, allocations: 182 kB / 396.1 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.6246, allocations: 0.7983 MB / 396.9 MB, free: 2.355 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005415/0.6252, allocations: 236.1 kB / 397.1 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007119/0.626, allocations: 159.9 kB / 397.3 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006578/0.6326, allocations: 1.682 MB / 399 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.352e-05/0.6327, allocations: 7.906 kB / 399 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/0.633, allocations: 60 kB / 399 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.783e-05/0.6331, allocations: 40 kB / 399.1 MB, free: 136 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006818/0.6399, allocations: 1.601 MB / 400.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.6573, allocations: 6.081 MB / 406.8 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003962/0.6613, allocations: 0.9842 MB / 407.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/0.6615, allocations: 13 kB / 407.8 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00242/0.6639, allocations: 0.6802 MB / 408.4 MB, free: 6.473 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 4.799e-06/0.664, allocations: 0 / 408.4 MB, free: 6.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.06786/0.7319, allocations: 9.964 MB / 418.4 MB, free: 12.37 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.7321, allocations: 307.7 kB / 418.7 MB, free: 12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.7339, allocations: 0.7067 MB / 419.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003504/0.7342, allocations: 53.7 kB / 419.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008/0.735, allocations: 0.6584 MB / 420.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006068/0.7357, allocations: 414.2 kB / 420.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.7359, allocations: 28 kB / 420.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002769/0.7361, allocations: 406.7 kB / 421 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003778/0.7399, allocations: 0.8551 MB / 421.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004217/0.7442, allocations: 1.173 MB / 423 MB, free: 7.578 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.748, allocations: 0.834 MB / 423.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.748, allocations: 4 kB / 423.8 MB, free: 6.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00906/0.7571, allocations: 2.162 MB / 426 MB, free: 4.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.7572, allocations: 8.625 kB / 426 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.7572, allocations: 8 kB / 426 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006342/0.7579, allocations: 186.4 kB / 426.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/0.7612, allocations: 367.5 kB / 426.5 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2773/1.039, allocations: 4.475 MB / 431 MB, free: 92.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003095/1.042, allocations: 208.8 kB / 431.2 MB, free: 92.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00035/1.042, allocations: 53.81 kB / 431.3 MB, free: 92.09 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): 166 * 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.001256/1.043, allocations: 396.4 kB / 431.7 MB, free: 91.97 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000376/1.044, allocations: 101.2 kB / 431.8 MB, free: 91.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003837/1.044, allocations: 132.3 kB / 431.9 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/1.044, allocations: 14.53 kB / 431.9 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/1.044, allocations: 1.375 kB / 431.9 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/1.044, allocations: 5.953 kB / 431.9 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02036/1.065, allocations: 4.569 MB / 436.5 MB, free: 91.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.197e-05/1.065, allocations: 10.94 kB / 436.5 MB, free: 91.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/1.068, allocations: 282.1 kB / 436.8 MB, free: 91.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/1.069, allocations: 482 kB / 437.2 MB, free: 91.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002785/1.07, allocations: 38.55 kB / 437.3 MB, free: 91.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002856/1.073, allocations: 2.193 MB / 439.5 MB, free: 89.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.041e-05/1.073, allocations: 17.83 kB / 439.5 MB, free: 89.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/1.085, allocations: 3.047 MB / 442.5 MB, free: 88.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.086, allocations: 326.2 kB / 442.8 MB, free: 88.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004057/1.087, allocations: 52.77 kB / 442.9 MB, free: 88.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002469/1.089, allocations: 159.3 kB / 443.1 MB, free: 88.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007375/1.09, allocations: 183.3 kB / 443.2 MB, free: 88.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/1.09, allocations: 46.27 kB / 443.3 MB, free: 88.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001703/1.092, allocations: 0.5317 MB / 443.8 MB, free: 88.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.51e-07/1.092, allocations: 0 / 443.8 MB, free: 88.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002954/1.095, allocations: 354.2 kB / 444.2 MB, free: 88.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (113): * Single equations (assignments): 111 * 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.01287/1.108, allocations: 6.237 MB / 450.4 MB, free: 83.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009222/1.117, allocations: 2.093 MB / 452.5 MB, free: 83.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.947e-05/1.117, allocations: 0 / 452.5 MB, free: 83.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004877/1.122, allocations: 1.077 MB / 453.6 MB, free: 83.4 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/1.124, allocations: 166.4 kB / 453.7 MB, free: 83.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02955/1.154, allocations: 13.41 MB / 467.1 MB, free: 75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009535/1.155, allocations: 1.214 MB / 468.4 MB, free: 74.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001725/1.157, allocations: 154.5 kB / 468.5 MB, free: 74.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/1.158, allocations: 0.5248 MB / 469 MB, free: 73.8 MB / 346.7 MB Notification: Performance of SimCode: time 1.633e-06/1.158, allocations: 0 / 469 MB, free: 73.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09629/1.255, allocations: 27.02 MB / 496 MB, free: 61.82 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/1.255, allocations: 229.8 kB / 496.3 MB, free: 61.57 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.6/4.855, allocations: 0 / 496.3 MB, free: 61.57 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat