Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 234.9 MB / 250.5 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006251/0.0006252, allocations: 12 kB / 314.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3646, allocations: 54.85 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1801/0.5447, allocations: 99.37 MB / 468.7 MB, free: 9.262 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.5451, allocations: 75.97 kB / 468.8 MB, free: 9.188 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8715/1.417, allocations: 142.5 MB / 0.5969 GB, free: 35.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.87e-06/1.417, allocations: 0 / 0.5969 GB, free: 35.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005778/1.417, allocations: 159.9 kB / 0.5971 GB, free: 35.09 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06564/1.483, allocations: 9.294 MB / 0.6062 GB, free: 25.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/1.483, allocations: 8.031 kB / 0.6062 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006508/1.49, allocations: 1.3 MB / 0.6075 GB, free: 24.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05859/1.548, allocations: 7.737 MB / 0.615 GB, free: 16.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04019/1.588, allocations: 11 MB / 0.6258 GB, free: 5.555 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007558/1.589, allocations: 0.5577 MB / 0.6263 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00411/1.593, allocations: 0.7612 MB / 0.627 GB, free: 4.234 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06199/1.655, allocations: 17.61 MB / 0.6442 GB, free: 1.086 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006756/1.656, allocations: 107 kB / 0.6443 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003669/1.66, allocations: 363.8 kB / 0.6447 GB, free: 0.625 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004359/1.664, allocations: 1.597 MB / 0.6463 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05301/1.717, allocations: 14.29 MB / 0.6602 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8595/2.577, allocations: 79.02 MB / 0.7374 GB, free: 32.41 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03493/2.612, allocations: 6.94 MB / 0.7442 GB, free: 31.74 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03658/2.648, allocations: 14.7 MB / 0.7585 GB, free: 28.43 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.862e-05/2.649, allocations: 66.73 kB / 0.7586 GB, free: 28.39 MB / 474.8 MB Notification: Performance of pre-optimization done (n=259): time 6.934e-06/2.649, allocations: 0 / 0.7586 GB, free: 28.39 MB / 474.8 MB Notification: Performance of matching and sorting (n=287): time 0.1241/2.773, allocations: 27.72 MB / 0.7856 GB, free: 19.64 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005025/2.778, allocations: 6.291 MB / 0.7918 GB, free: 13.54 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01531/2.793, allocations: 5.858 MB / 0.7975 GB, free: 11.57 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009185/2.794, allocations: 66.11 kB / 0.7976 GB, free: 11.51 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004519/2.799, allocations: 5.067 MB / 0.8025 GB, free: 7.496 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002184/2.801, allocations: 1.188 MB / 0.8037 GB, free: 6.641 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/2.802, allocations: 188.8 kB / 0.8039 GB, free: 6.496 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007364/2.803, allocations: 0.7302 MB / 0.8046 GB, free: 6.004 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01063/2.814, allocations: 3.924 MB / 0.8084 GB, free: 4.699 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01601/2.83, allocations: 9.708 MB / 0.8179 GB, free: 11.64 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01543/2.845, allocations: 5.98 MB / 0.8237 GB, free: 7.098 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002445/2.846, allocations: 56 kB / 0.8238 GB, free: 7.043 MB / 490.8 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.07171/2.917, allocations: 16.72 MB / 0.8401 GB, free: 11.55 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001863/2.918, allocations: 92 kB / 0.8402 GB, free: 11.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03575/2.953, allocations: 7.702 MB / 0.8477 GB, free: 5.402 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03079/2.984, allocations: 3.911 MB / 0.8515 GB, free: 2.789 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01513/2.999, allocations: 2.3 MB / 0.8538 GB, free: 0.8125 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02927/3.029, allocations: 14 MB / 0.8675 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01451/3.043, allocations: 0.8638 MB / 0.8683 GB, free: 2.102 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002776/3.046, allocations: 0.5956 MB / 0.8689 GB, free: 1.508 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.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 (1195): * Single equations (assignments): 1170 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.5314/3.578, allocations: 3.403 MB / 0.8722 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/3.579, allocations: 0.5844 MB / 0.8728 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02917/3.609, allocations: 7.583 MB / 0.8802 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03261/3.641, allocations: 6.756 MB / 0.8868 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.445e-05/3.641, allocations: 6.656 kB / 0.8868 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001145/3.642, allocations: 13.92 kB / 0.8868 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02811/3.67, allocations: 7.421 MB / 0.8941 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.072e-05/3.67, allocations: 2.625 kB / 0.8941 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006211/3.676, allocations: 0.5986 MB / 0.8946 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01676/3.693, allocations: 3.14 MB / 0.8977 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001099/3.694, allocations: 95 kB / 0.8978 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02234/3.716, allocations: 14.29 MB / 0.9117 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004762/3.721, allocations: 6.085 MB / 0.9177 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03327/3.754, allocations: 11.74 MB / 0.9292 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002324/3.757, allocations: 0.6393 MB / 0.9298 GB, free: 107 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002373/3.759, allocations: 73.89 kB / 0.9298 GB, free: 107 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006858/3.766, allocations: 379.6 kB / 0.9302 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/3.767, allocations: 218.6 kB / 0.9304 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003986/3.768, allocations: 88.84 kB / 0.9305 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01129/3.779, allocations: 4.095 MB / 0.9345 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.71e-07/3.779, allocations: 3.562 kB / 0.9345 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0137/3.793, allocations: 2.032 MB / 0.9365 GB, free: 105.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[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 (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03493/3.828, allocations: 12.58 MB / 0.9488 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02934/3.857, allocations: 11.3 MB / 0.9598 GB, free: 95.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/3.857, allocations: 3.938 kB / 0.9598 GB, free: 95.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0161/3.873, allocations: 5.361 MB / 0.9651 GB, free: 90.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007548/3.881, allocations: 0.8243 MB / 0.9659 GB, free: 89.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6076/4.489, allocations: 214.4 MB / 1.175 GB, free: 49.5 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01391/4.503, allocations: 5.414 MB / 1.181 GB, free: 48.62 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009311/4.512, allocations: 3.676 MB / 1.184 GB, free: 48.61 MB / 0.5262 GB Notification: Performance of SimCode: time 1.573e-06/4.512, allocations: 0 / 1.184 GB, free: 48.61 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.741/13.25, allocations: 0.545 GB / 1.729 GB, free: 128 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat