Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.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.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005483/0.0005484, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09613, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4879/0.584, allocations: 87.12 MB / 395.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5844, allocations: 87.5 kB / 395.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045/1.63, allocations: 184.4 MB / 0.5665 GB, free: 65.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.63, allocations: 0 / 0.5665 GB, free: 65.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004972/1.63, allocations: 166.9 kB / 0.5667 GB, free: 65.17 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2934 * Number of variables: 2934 Notification: Performance of Generate backend data structure: time 0.04242/1.673, allocations: 9.096 MB / 0.5756 GB, free: 61.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.673, allocations: 10.53 kB / 0.5756 GB, free: 61.72 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00711/1.68, allocations: 1.463 MB / 0.577 GB, free: 61.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04405/1.724, allocations: 4.709 MB / 0.5816 GB, free: 61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03912/1.763, allocations: 13.33 MB / 0.5946 GB, free: 59.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009184/1.764, allocations: 0.6221 MB / 0.5952 GB, free: 59.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005527/1.77, allocations: 0.8634 MB / 0.5961 GB, free: 59.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1349/1.905, allocations: 27.97 MB / 0.6234 GB, free: 47.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006021/1.905, allocations: 122.7 kB / 0.6235 GB, free: 47.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003818/1.909, allocations: 409.5 kB / 0.6239 GB, free: 47.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00804/1.917, allocations: 2.134 MB / 0.626 GB, free: 45.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1359/2.053, allocations: 29.82 MB / 0.6551 GB, free: 19.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4969/2.55, allocations: 112 MB / 0.7645 GB, free: 28.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1278/2.678, allocations: 19.38 MB / 0.7834 GB, free: 25.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000829/2.679, allocations: 388.6 kB / 0.7838 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/2.679, allocations: 73.12 kB / 0.7839 GB, free: 25.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=314): time 6.974e-06/2.679, allocations: 5.844 kB / 0.7839 GB, free: 25.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=413): time 1.087/3.766, allocations: 132 MB / 0.9127 GB, free: 85.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002431/3.768, allocations: 3.144 MB / 0.9158 GB, free: 82.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01751/3.786, allocations: 6.773 MB / 0.9224 GB, free: 80.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001735/3.788, allocations: 85.55 kB / 0.9225 GB, free: 80.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005047/3.793, allocations: 5.622 MB / 0.928 GB, free: 76.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003488/3.796, allocations: 1.57 MB / 0.9295 GB, free: 75.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002156/3.798, allocations: 222.4 kB / 0.9297 GB, free: 74.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006368/3.799, allocations: 0.7704 MB / 0.9305 GB, free: 74.22 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01915/3.818, allocations: 7.899 MB / 0.9382 GB, free: 67.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02317/3.841, allocations: 14.02 MB / 0.9519 GB, free: 52.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02378/3.865, allocations: 10.13 MB / 0.9618 GB, free: 43.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001782/3.866, allocations: 60 kB / 0.9619 GB, free: 43.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.4816/4.347, allocations: 34.84 MB / 0.9959 GB, free: 73.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002984/4.348, allocations: 105.3 kB / 0.996 GB, free: 73.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08889/4.441, allocations: 15.02 MB / 1.011 GB, free: 73.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08884/4.53, allocations: 13.93 MB / 1.024 GB, free: 73.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01705/4.547, allocations: 2.628 MB / 1.027 GB, free: 73.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1286/4.675, allocations: 54.98 MB / 1.08 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02235/4.698, allocations: 1.448 MB / 1.082 GB, free: 55.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003468/4.701, allocations: 0.6457 MB / 1.083 GB, free: 55.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 985 * Number of states: 0 () * Number of discrete variables: 84 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1259): * Single equations (assignments): 1245 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,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: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0135/4.715, allocations: 4.042 MB / 1.086 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003296/4.718, allocations: 0.6818 MB / 1.087 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06991/4.788, allocations: 11.91 MB / 1.099 GB, free: 48.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1176/4.906, allocations: 25.2 MB / 1.123 GB, free: 28.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001241/4.906, allocations: 31.69 kB / 1.123 GB, free: 28.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001271/4.906, allocations: 19.92 kB / 1.123 GB, free: 28.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5058/5.412, allocations: 47.21 MB / 1.17 GB, free: 88.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.866e-05/5.412, allocations: 2.844 kB / 1.17 GB, free: 88.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007215/5.419, allocations: 0.7296 MB / 1.17 GB, free: 88.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.09366/5.513, allocations: 13.3 MB / 1.183 GB, free: 88.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002201/5.515, allocations: 110.4 kB / 1.183 GB, free: 88.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1775/5.693, allocations: 51.02 MB / 1.233 GB, free: 77.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002358/5.695, allocations: 2.972 MB / 1.236 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1395/5.835, allocations: 36.46 MB / 1.272 GB, free: 54.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/5.837, allocations: 0.7291 MB / 1.272 GB, free: 53.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003676/5.841, allocations: 83.98 kB / 1.272 GB, free: 53.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0135/5.855, allocations: 0.8206 MB / 1.273 GB, free: 52.99 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003003/5.858, allocations: 314.8 kB / 1.274 GB, free: 52.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009509/5.859, allocations: 132.8 kB / 1.274 GB, free: 52.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01438/5.873, allocations: 4.825 MB / 1.278 GB, free: 47.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.02e-07/5.873, allocations: 0 / 1.278 GB, free: 47.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01834/5.891, allocations: 2.94 MB / 1.281 GB, free: 44.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.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 (266): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.5384/6.43, allocations: 37.69 MB / 1.318 GB, free: 87.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04778/6.478, allocations: 19.05 MB / 1.337 GB, free: 86.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/6.478, allocations: 3.719 kB / 1.337 GB, free: 86.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02004/6.498, allocations: 8.527 MB / 1.345 GB, free: 85.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008488/6.506, allocations: 0.8728 MB / 1.346 GB, free: 85.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7927/7.299, allocations: 260.6 MB / 1.6 GB, free: 85.39 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01649/7.316, allocations: 6.331 MB / 1.607 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01165/7.327, allocations: 4.242 MB / 1.611 GB, free: 80.76 MB / 0.5105 GB Notification: Performance of SimCode: time 1.203e-06/7.327, allocations: 0 / 1.611 GB, free: 80.76 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.468/15.8, allocations: 418.6 MB / 2.02 GB, free: 134.1 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat