Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodiesEnforceStatesFalse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.449/2.449, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.858e-05/3.869e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4048, allocations: 54.85 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5929, allocations: 99.28 MB / 459.1 MB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5933, allocations: 75.95 kB / 459.2 MB, free: 13.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9608/1.554, allocations: 142.6 MB / 0.5877 GB, free: 94.95 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.554, allocations: 0 / 0.5877 GB, free: 94.95 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005573/1.555, allocations: 150.2 kB / 0.5878 GB, free: 94.95 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.07696/1.632, allocations: 8.679 MB / 0.5963 GB, free: 89.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/1.632, allocations: 10.09 kB / 0.5963 GB, free: 89.86 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006611/1.638, allocations: 1.304 MB / 0.5976 GB, free: 89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05847/1.697, allocations: 7.752 MB / 0.6051 GB, free: 83.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03997/1.737, allocations: 10.94 MB / 0.6158 GB, free: 72.42 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007249/1.738, allocations: 0.5555 MB / 0.6164 GB, free: 71.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003971/1.742, allocations: 0.7666 MB / 0.6171 GB, free: 71.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05512/1.797, allocations: 17.36 MB / 0.6341 GB, free: 52.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000592/1.797, allocations: 107 kB / 0.6342 GB, free: 52.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003471/1.801, allocations: 359.8 kB / 0.6345 GB, free: 51.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003788/1.805, allocations: 1.6 MB / 0.6361 GB, free: 50.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04612/1.851, allocations: 13.74 MB / 0.6495 GB, free: 36.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5086/2.36, allocations: 79.07 MB / 0.7267 GB, free: 49.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03699/2.397, allocations: 6.901 MB / 0.7335 GB, free: 48.67 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007668/2.404, allocations: 3.211 MB / 0.7366 GB, free: 48.64 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0372/2.442, allocations: 14.79 MB / 0.751 GB, free: 45.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.561e-05/2.442, allocations: 60 kB / 0.7511 GB, free: 45.42 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 7.414e-06/2.442, allocations: 3.281 kB / 0.7511 GB, free: 45.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.111/2.553, allocations: 23.04 MB / 0.7736 GB, free: 38.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005108/2.558, allocations: 6.243 MB / 0.7797 GB, free: 32.82 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01581/2.574, allocations: 5.764 MB / 0.7853 GB, free: 30.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009788/2.575, allocations: 67.62 kB / 0.7854 GB, free: 30.64 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004817/2.58, allocations: 5.057 MB / 0.7903 GB, free: 26.63 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002277/2.582, allocations: 1.184 MB / 0.7915 GB, free: 25.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001634/2.584, allocations: 195.2 kB / 0.7917 GB, free: 25.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001011/2.585, allocations: 0.7245 MB / 0.7924 GB, free: 25.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01252/2.597, allocations: 3.838 MB / 0.7961 GB, free: 23.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03556/2.633, allocations: 9.571 MB / 0.8055 GB, free: 14.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03512/2.668, allocations: 5.961 MB / 0.8113 GB, free: 12.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003051/2.668, allocations: 55.94 kB / 0.8113 GB, free: 12.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05762/2.726, allocations: 15.39 MB / 0.8264 GB, free: 1.352 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001521/2.726, allocations: 92 kB / 0.8265 GB, free: 1.262 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04015/2.766, allocations: 7.96 MB / 0.8342 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02989/2.796, allocations: 3.903 MB / 0.838 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01509/2.812, allocations: 2.302 MB / 0.8403 GB, free: 7.328 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/2.839, allocations: 13.57 MB / 0.8535 GB, free: 9.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01518/2.854, allocations: 0.858 MB / 0.8544 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002857/2.857, allocations: 0.5884 MB / 0.855 GB, free: 8.195 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.004295/2.861, allocations: 0.8581 MB / 0.8558 GB, free: 7.332 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002151/2.863, allocations: 0.5897 MB / 0.8564 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03047/2.894, allocations: 7.551 MB / 0.8637 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02699/2.921, allocations: 6.716 MB / 0.8703 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-05/2.921, allocations: 8 kB / 0.8703 GB, free: 8.355 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-05/2.921, allocations: 11.95 kB / 0.8703 GB, free: 8.344 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/2.948, allocations: 7.457 MB / 0.8776 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-05/2.948, allocations: 4 kB / 0.8776 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008058/2.956, allocations: 0.6007 MB / 0.8782 GB, free: 304 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01829/2.975, allocations: 3.133 MB / 0.8813 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/2.976, allocations: 91.91 kB / 0.8813 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02769/3.004, allocations: 14.03 MB / 0.895 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006156/3.01, allocations: 6.01 MB / 0.9009 GB, free: 7.656 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4089/3.419, allocations: 11.67 MB / 0.9123 GB, free: 161 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003068/3.422, allocations: 0.6347 MB / 0.9129 GB, free: 160.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00311/3.425, allocations: 82.2 kB / 0.913 GB, free: 160.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008363/3.433, allocations: 378.7 kB / 0.9134 GB, free: 160.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/3.435, allocations: 216.4 kB / 0.9136 GB, free: 160.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008273/3.436, allocations: 89.81 kB / 0.9137 GB, free: 160.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01397/3.45, allocations: 4.003 MB / 0.9176 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.032e-06/3.45, allocations: 3.219 kB / 0.9176 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01563/3.466, allocations: 2.031 MB / 0.9196 GB, free: 160.6 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.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.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.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.frame_a.r_0[1],bodyBox.body.frame_a.r_0[2],bodyBox.body.frame_a.r_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_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.03835/3.504, allocations: 12.53 MB / 0.9318 GB, free: 159.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02937/3.533, allocations: 10.85 MB / 0.9424 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/3.534, allocations: 0.6562 kB / 0.9424 GB, free: 157.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01694/3.551, allocations: 5.296 MB / 0.9476 GB, free: 155.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008005/3.559, allocations: 0.8364 MB / 0.9484 GB, free: 155.6 MB / 0.5417 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[1] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[1] has attribute stateSelect=StateSelect.never, but was selected as a state Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06336/3.622, allocations: 19.85 MB / 0.9678 GB, free: 147.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01289/3.635, allocations: 5.41 MB / 0.973 GB, free: 146.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008913/3.644, allocations: 3.684 MB / 0.9766 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.503e-06/3.644, allocations: 0 / 0.9766 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.466/12.11, allocations: 0.5438 GB / 1.52 GB, free: 160.4 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse_res.mat does not exist to compare? outputFormat=mat