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.Elementary.FreeBody.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.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.048/2.048, allocations: 194.8 MB / 211.1 MB, free: 7.602 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.0003806, allocations: 8 kB / 264.1 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2954, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4493, allocations: 87.03 MB / 395.6 MB, free: 5.488 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/0.4496, allocations: 87.95 kB / 395.7 MB, free: 5.402 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5252/0.9749, allocations: 71.62 MB / 467.3 MB, free: 57.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.975, allocations: 0 / 467.3 MB, free: 57.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002146/0.9752, allocations: 68 kB / 467.4 MB, free: 57.27 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02258/0.9978, allocations: 4 MB / 471.4 MB, free: 53.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.9979, allocations: 12.03 kB / 471.4 MB, free: 53.19 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003482/1.001, allocations: 0.6636 MB / 472 MB, free: 52.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01692/1.018, allocations: 2.156 MB / 474.2 MB, free: 50.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01694/1.035, allocations: 4.451 MB / 478.6 MB, free: 45.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/1.036, allocations: 283.2 kB / 478.9 MB, free: 45.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001797/1.037, allocations: 371.7 kB / 479.3 MB, free: 45.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02356/1.061, allocations: 9.064 MB / 488.4 MB, free: 35.17 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002026/1.061, allocations: 55.56 kB / 488.4 MB, free: 35.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/1.062, allocations: 183.9 kB / 488.6 MB, free: 34.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00173/1.064, allocations: 0.8646 MB / 489.5 MB, free: 34.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02385/1.088, allocations: 7.359 MB / 496.8 MB, free: 26.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06322/1.151, allocations: 43.17 MB / 0.5273 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01389/1.165, allocations: 3.161 MB / 0.5304 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01556/1.181, allocations: 6.07 MB / 0.5363 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/1.181, allocations: 43.12 kB / 0.5364 GB, free: 4.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=118): time 5.741e-06/1.181, allocations: 4 kB / 0.5364 GB, free: 4.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.04536/1.226, allocations: 10.92 MB / 0.547 GB, free: 9.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001825/1.228, allocations: 1.619 MB / 0.5486 GB, free: 7.504 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007877/1.236, allocations: 3.151 MB / 0.5517 GB, free: 4.355 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004115/1.237, allocations: 41.7 kB / 0.5517 GB, free: 4.309 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003358/1.24, allocations: 2.77 MB / 0.5545 GB, free: 1.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.241, allocations: 0.5211 MB / 0.555 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006218/1.242, allocations: 108 kB / 0.5551 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004864/1.242, allocations: 0.5253 MB / 0.5556 GB, free: 344 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3105/1.553, allocations: 1.869 MB / 0.5574 GB, free: 102.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006809/1.56, allocations: 5.278 MB / 0.5626 GB, free: 97.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006868/1.567, allocations: 3.057 MB / 0.5655 GB, free: 97.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/1.567, allocations: 33.06 kB / 0.5656 GB, free: 97.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.03057/1.597, allocations: 8.355 MB / 0.5737 GB, free: 97.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.203e-05/1.598, allocations: 63.97 kB / 0.5738 GB, free: 97.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01651/1.614, allocations: 3.099 MB / 0.5768 GB, free: 97.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01678/1.631, allocations: 1.943 MB / 0.5787 GB, free: 97.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007012/1.638, allocations: 1.218 MB / 0.5799 GB, free: 97.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/1.651, allocations: 5.965 MB / 0.5857 GB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006332/1.657, allocations: 366.5 kB / 0.5861 GB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009962/1.658, allocations: 340.9 kB / 0.5864 GB, free: 93.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (657): * Single equations (assignments): 648 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004164/1.662, allocations: 1.824 MB / 0.5882 GB, free: 92.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007636/1.663, allocations: 294.9 kB / 0.5885 GB, free: 92.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008563/1.672, allocations: 2.672 MB / 0.5911 GB, free: 91.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007385/1.679, allocations: 2.266 MB / 0.5933 GB, free: 91.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/1.679, allocations: 3.562 kB / 0.5933 GB, free: 91.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-05/1.679, allocations: 3.375 kB / 0.5933 GB, free: 91.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0075/1.687, allocations: 3.351 MB / 0.5966 GB, free: 89.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/1.687, allocations: 0 / 0.5966 GB, free: 89.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/1.689, allocations: 208.3 kB / 0.5968 GB, free: 89.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005248/1.694, allocations: 1.043 MB / 0.5978 GB, free: 89.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002005/1.694, allocations: 27.42 kB / 0.5978 GB, free: 89.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008204/1.702, allocations: 5.097 MB / 0.6028 GB, free: 86.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001092/1.703, allocations: 1.481 MB / 0.6042 GB, free: 84.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.715, allocations: 4.878 MB / 0.609 GB, free: 80.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/1.716, allocations: 363.5 kB / 0.6093 GB, free: 80.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005697/1.717, allocations: 31.61 kB / 0.6094 GB, free: 80.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/1.719, allocations: 119.4 kB / 0.6095 GB, free: 80.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/1.72, allocations: 78.41 kB / 0.6096 GB, free: 80.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/1.72, allocations: 44.52 kB / 0.6096 GB, free: 80.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004234/1.724, allocations: 2.178 MB / 0.6117 GB, free: 78.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.724, allocations: 3.938 kB / 0.6117 GB, free: 78.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00576/1.73, allocations: 0.9328 MB / 0.6126 GB, free: 77.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01167/1.741, allocations: 5.68 MB / 0.6182 GB, free: 72.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01281/1.754, allocations: 5.096 MB / 0.6232 GB, free: 68.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.754, allocations: 0 / 0.6232 GB, free: 68.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005972/1.76, allocations: 1.999 MB / 0.6251 GB, free: 66.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/1.763, allocations: 354.2 kB / 0.6255 GB, free: 66.22 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3805/2.144, allocations: 114.1 MB / 0.7369 GB, free: 88.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004076/2.148, allocations: 2.936 MB / 0.7398 GB, free: 87.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006656/2.154, allocations: 1.66 MB / 0.7414 GB, free: 87.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002967/2.157, allocations: 1.559 MB / 0.7429 GB, free: 87.92 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/2.157, allocations: 0 / 0.7429 GB, free: 87.92 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1482/2.306, allocations: 68.61 MB / 0.8099 GB, free: 36.45 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/2.306, allocations: 217.9 kB / 0.8102 GB, free: 36.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.797/8.103, allocations: 4 kB / 0.8102 GB, free: 36.21 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat