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.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_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003493, allocations: 11.98 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09539, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.5495, allocations: 87.02 MB / 395.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5499, allocations: 91.8 kB / 395.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2825/0.8323, allocations: 71.63 MB / 467.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8324, allocations: 0 / 467.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002443/0.8326, allocations: 68 kB / 467.3 MB, free: 3.473 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.02348/0.8561, allocations: 4.003 MB / 471.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.8562, allocations: 8.031 kB / 471.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003153/0.8594, allocations: 0.6697 MB / 472 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/0.8769, allocations: 2.14 MB / 474.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/0.8969, allocations: 4.455 MB / 478.6 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005471/0.8975, allocations: 285.2 kB / 478.9 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002276/0.8998, allocations: 358 kB / 479.2 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02946/0.9293, allocations: 9.075 MB / 488.3 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002354/0.9296, allocations: 59.48 kB / 488.4 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001352/0.9309, allocations: 183 kB / 488.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002168/0.9331, allocations: 0.8719 MB / 489.4 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.9572, allocations: 7.355 MB / 496.8 MB, free: 5.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.402/1.359, allocations: 43.16 MB / 0.5273 GB, free: 68.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01341/1.373, allocations: 3.156 MB / 0.5304 GB, free: 68.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/1.388, allocations: 6.067 MB / 0.5363 GB, free: 66.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/1.388, allocations: 47.72 kB / 0.5363 GB, free: 66.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 5.17e-06/1.388, allocations: 0 / 0.5363 GB, free: 66.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.05385/1.442, allocations: 10.91 MB / 0.547 GB, free: 63.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002106/1.444, allocations: 1.621 MB / 0.5486 GB, free: 62.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/1.456, allocations: 3.144 MB / 0.5517 GB, free: 62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004936/1.456, allocations: 41.47 kB / 0.5517 GB, free: 61.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003501/1.46, allocations: 2.73 MB / 0.5544 GB, free: 60.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/1.461, allocations: 0.52 MB / 0.5549 GB, free: 60.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009882/1.462, allocations: 106.3 kB / 0.555 GB, free: 60.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006633/1.463, allocations: 0.534 MB / 0.5555 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00709/1.47, allocations: 1.87 MB / 0.5573 GB, free: 59.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007188/1.477, allocations: 5.273 MB / 0.5625 GB, free: 55.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006939/1.484, allocations: 3.073 MB / 0.5655 GB, free: 55.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/1.484, allocations: 33.97 kB / 0.5655 GB, free: 55.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.03073/1.515, allocations: 8.261 MB / 0.5736 GB, free: 54.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/1.515, allocations: 61.58 kB / 0.5736 GB, free: 54.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01677/1.532, allocations: 3.097 MB / 0.5767 GB, free: 54.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01701/1.549, allocations: 1.949 MB / 0.5786 GB, free: 54.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006987/1.556, allocations: 1.222 MB / 0.5798 GB, free: 54.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.569, allocations: 5.954 MB / 0.5856 GB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/1.576, allocations: 368.9 kB / 0.5859 GB, free: 50.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.577, allocations: 342.6 kB / 0.5862 GB, free: 50.36 MB / 410.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.00505/1.582, allocations: 1.826 MB / 0.588 GB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007661/1.583, allocations: 303.4 kB / 0.5883 GB, free: 49.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008785/1.592, allocations: 2.668 MB / 0.5909 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007388/1.599, allocations: 2.264 MB / 0.5931 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/1.599, allocations: 11.33 kB / 0.5931 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-05/1.599, allocations: 7.125 kB / 0.5931 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008473/1.608, allocations: 3.337 MB / 0.5964 GB, free: 46.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.589e-05/1.608, allocations: 7.406 kB / 0.5964 GB, free: 46.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002047/1.61, allocations: 207.1 kB / 0.5966 GB, free: 46.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005355/1.615, allocations: 1.037 MB / 0.5976 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003975/1.616, allocations: 34.56 kB / 0.5977 GB, free: 46.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008306/1.624, allocations: 5.086 MB / 0.6026 GB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001117/1.625, allocations: 1.495 MB / 0.6041 GB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.639, allocations: 4.858 MB / 0.6088 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/1.64, allocations: 366.2 kB / 0.6092 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008103/1.641, allocations: 24.86 kB / 0.6092 GB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002635/1.643, allocations: 130.9 kB / 0.6093 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004286/1.644, allocations: 75.95 kB / 0.6094 GB, free: 37.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.644, allocations: 42.81 kB / 0.6094 GB, free: 37.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004919/1.649, allocations: 2.179 MB / 0.6116 GB, free: 35.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.649, allocations: 0 / 0.6116 GB, free: 35.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006498/1.655, allocations: 0.9344 MB / 0.6125 GB, free: 34.65 MB / 410.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.01223/1.668, allocations: 5.688 MB / 0.618 GB, free: 29.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01304/1.681, allocations: 5.095 MB / 0.623 GB, free: 25.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.681, allocations: 4.188 kB / 0.623 GB, free: 25.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00618/1.687, allocations: 2.002 MB / 0.625 GB, free: 23.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002913/1.69, allocations: 351 kB / 0.6253 GB, free: 23.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4207/2.111, allocations: 114.5 MB / 0.7372 GB, free: 105.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0057/2.116, allocations: 2.936 MB / 0.74 GB, free: 104.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003748/2.12, allocations: 1.605 MB / 0.7416 GB, free: 104.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/2.12, allocations: 0 / 0.7416 GB, free: 104.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.699/6.819, allocations: 130.8 MB / 0.8693 GB, free: 139.6 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat