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.329/2.329, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.26e-05/4.264e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.409, allocations: 54.84 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1804/0.5894, allocations: 99.28 MB / 463.9 MB, free: 13.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5898, allocations: 80.61 kB / 464 MB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9161/1.506, allocations: 142.6 MB / 0.5924 GB, free: 96.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.506, allocations: 0 / 0.5924 GB, free: 96.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005561/1.507, allocations: 154.5 kB / 0.5925 GB, free: 96.84 MB / 458.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.06038/1.567, allocations: 8.68 MB / 0.601 GB, free: 91.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/1.567, allocations: 9.438 kB / 0.601 GB, free: 91.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006289/1.573, allocations: 1.3 MB / 0.6023 GB, free: 90.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05815/1.631, allocations: 7.745 MB / 0.6098 GB, free: 82.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04596/1.677, allocations: 10.96 MB / 0.6205 GB, free: 71.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006718/1.678, allocations: 0.5577 MB / 0.6211 GB, free: 71.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003993/1.682, allocations: 0.7573 MB / 0.6218 GB, free: 70.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05493/1.737, allocations: 17.45 MB / 0.6389 GB, free: 51.47 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005456/1.738, allocations: 107.1 kB / 0.639 GB, free: 51.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00287/1.741, allocations: 359.8 kB / 0.6393 GB, free: 51.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003423/1.744, allocations: 1.6 MB / 0.6409 GB, free: 49.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04646/1.791, allocations: 14.03 MB / 0.6546 GB, free: 35.35 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.566/2.357, allocations: 79 MB / 0.7317 GB, free: 50.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03642/2.393, allocations: 6.911 MB / 0.7385 GB, free: 49.69 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007254/2.4, allocations: 3.198 MB / 0.7416 GB, free: 49.65 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03796/2.438, allocations: 14.71 MB / 0.756 GB, free: 46.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.555e-05/2.439, allocations: 68.69 kB / 0.756 GB, free: 46.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 7.104e-06/2.439, allocations: 0 / 0.756 GB, free: 46.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1079/2.547, allocations: 22.98 MB / 0.7785 GB, free: 40.44 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004909/2.551, allocations: 6.249 MB / 0.7846 GB, free: 34.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01524/2.567, allocations: 5.754 MB / 0.7902 GB, free: 32.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009864/2.568, allocations: 73.78 kB / 0.7903 GB, free: 32.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004745/2.573, allocations: 5.06 MB / 0.7952 GB, free: 28.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002229/2.575, allocations: 1.179 MB / 0.7964 GB, free: 27.31 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001757/2.577, allocations: 196 kB / 0.7965 GB, free: 27.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001057/2.578, allocations: 0.7259 MB / 0.7973 GB, free: 26.67 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01/2.588, allocations: 3.818 MB / 0.801 GB, free: 25.37 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01388/2.602, allocations: 9.612 MB / 0.8104 GB, free: 16.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01405/2.616, allocations: 5.927 MB / 0.8162 GB, free: 13.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002416/2.616, allocations: 63.94 kB / 0.8162 GB, free: 13.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05699/2.673, allocations: 15.91 MB / 0.8318 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/2.673, allocations: 92 kB / 0.8318 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04212/2.716, allocations: 8.06 MB / 0.8397 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03044/2.746, allocations: 3.901 MB / 0.8435 GB, free: 9.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0158/2.762, allocations: 2.304 MB / 0.8458 GB, free: 7.238 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/2.79, allocations: 13.57 MB / 0.859 GB, free: 8.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01476/2.804, allocations: 0.8588 MB / 0.8599 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002754/2.807, allocations: 0.5956 MB / 0.8604 GB, free: 7.445 MB / 0.4948 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 () * 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.004231/2.812, allocations: 0.8624 MB / 0.8613 GB, free: 6.582 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00218/2.814, allocations: 0.5855 MB / 0.8619 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03047/2.844, allocations: 7.538 MB / 0.8692 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02739/2.872, allocations: 6.691 MB / 0.8758 GB, free: 7.656 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.876e-05/2.872, allocations: 8 kB / 0.8758 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.455e-05/2.872, allocations: 15.91 kB / 0.8758 GB, free: 7.633 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02353/2.895, allocations: 7.426 MB / 0.883 GB, free: 228 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.228e-05/2.896, allocations: 4.562 kB / 0.883 GB, free: 224 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006787/2.902, allocations: 0.6006 MB / 0.8836 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01851/2.921, allocations: 3.136 MB / 0.8867 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001079/2.922, allocations: 91.91 kB / 0.8868 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02549/2.948, allocations: 13.98 MB / 0.9004 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005903/2.954, allocations: 6.026 MB / 0.9063 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3996/3.353, allocations: 11.65 MB / 0.9177 GB, free: 162.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002605/3.356, allocations: 0.6335 MB / 0.9183 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002663/3.359, allocations: 78.11 kB / 0.9184 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00787/3.366, allocations: 377.6 kB / 0.9187 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001631/3.368, allocations: 214.8 kB / 0.9189 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007568/3.369, allocations: 90.39 kB / 0.919 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01307/3.382, allocations: 4.007 MB / 0.9229 GB, free: 162.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.032e-06/3.382, allocations: 0 / 0.9229 GB, free: 162.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01483/3.397, allocations: 2.035 MB / 0.9249 GB, free: 162.2 MB / 0.5417 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 () * 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.03735/3.434, allocations: 12.51 MB / 0.9371 GB, free: 160.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03297/3.467, allocations: 11.14 MB / 0.948 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/3.467, allocations: 3.594 kB / 0.948 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.03752/3.505, allocations: 5.301 MB / 0.9532 GB, free: 157.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02222/3.527, allocations: 0.8212 MB / 0.954 GB, free: 156.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06914/3.596, allocations: 19.85 MB / 0.9734 GB, free: 149.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01363/3.61, allocations: 5.404 MB / 0.9787 GB, free: 147.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01231/3.622, allocations: 3.674 MB / 0.9823 GB, free: 144.4 MB / 0.5417 GB Notification: Performance of SimCode: time 2.474e-06/3.623, allocations: 4 kB / 0.9823 GB, free: 144.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.208/11.83, allocations: 0.5456 GB / 1.528 GB, free: 161.6 MB / 0.5417 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