Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FreeBodiesEnforceStatesFalse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.973/1.973, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.583e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5442, allocations: 92.58 MB / 414.4 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5445, allocations: 75.95 kB / 414.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8796/1.424, allocations: 142.4 MB / 0.5438 GB, free: 87.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.305e-06/1.424, allocations: 0 / 0.5438 GB, free: 87.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005688/1.425, allocations: 160 kB / 0.544 GB, free: 87.45 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.06259/1.487, allocations: 8.668 MB / 0.5524 GB, free: 84.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/1.487, allocations: 13.45 kB / 0.5525 GB, free: 84.62 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006626/1.494, allocations: 1.299 MB / 0.5537 GB, free: 84.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05801/1.552, allocations: 7.692 MB / 0.5612 GB, free: 84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04001/1.592, allocations: 10.93 MB / 0.5719 GB, free: 80.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007519/1.593, allocations: 0.5644 MB / 0.5725 GB, free: 80.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004041/1.597, allocations: 0.7554 MB / 0.5732 GB, free: 79.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05379/1.651, allocations: 17.36 MB / 0.5902 GB, free: 63.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006084/1.652, allocations: 107 kB / 0.5903 GB, free: 63.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003517/1.655, allocations: 361.2 kB / 0.5906 GB, free: 62.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003725/1.659, allocations: 1.599 MB / 0.5922 GB, free: 61.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04616/1.705, allocations: 13.74 MB / 0.6056 GB, free: 47.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4804/2.186, allocations: 79.04 MB / 0.6828 GB, free: 44.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04584/2.232, allocations: 6.898 MB / 0.6895 GB, free: 43.65 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01062/2.242, allocations: 3.233 MB / 0.6927 GB, free: 43.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04831/2.291, allocations: 14.75 MB / 0.7071 GB, free: 40.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/2.291, allocations: 65.22 kB / 0.7071 GB, free: 40.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=259): time 6.673e-06/2.291, allocations: 0 / 0.7071 GB, free: 40.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=287): time 0.1071/2.398, allocations: 23.05 MB / 0.7296 GB, free: 34.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004656/2.402, allocations: 6.239 MB / 0.7357 GB, free: 28.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0161/2.419, allocations: 5.758 MB / 0.7414 GB, free: 26.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009316/2.42, allocations: 67.39 kB / 0.7414 GB, free: 26.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004472/2.424, allocations: 5.061 MB / 0.7464 GB, free: 22.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002126/2.426, allocations: 1.189 MB / 0.7475 GB, free: 21.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00137/2.428, allocations: 192.4 kB / 0.7477 GB, free: 21.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000686/2.428, allocations: 0.7225 MB / 0.7484 GB, free: 21.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009488/2.438, allocations: 3.813 MB / 0.7521 GB, free: 19.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01309/2.451, allocations: 9.555 MB / 0.7615 GB, free: 10.83 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/2.464, allocations: 5.931 MB / 0.7673 GB, free: 9.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002252/2.465, allocations: 63.69 kB / 0.7673 GB, free: 9.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04357/2.508, allocations: 14.39 MB / 0.7814 GB, free: 2.301 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/2.508, allocations: 92 kB / 0.7815 GB, free: 2.211 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02363/2.532, allocations: 6.785 MB / 0.7881 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0158/2.548, allocations: 2.84 MB / 0.7909 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/2.564, allocations: 2.348 MB / 0.7931 GB, free: 8.688 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/2.582, allocations: 11.27 MB / 0.8042 GB, free: 13.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01472/2.596, allocations: 0.8572 MB / 0.805 GB, free: 12.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002628/2.599, allocations: 0.5884 MB / 0.8056 GB, free: 12.36 MB / 474.7 MB 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 (1204): * Single equations (assignments): 1179 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * 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: 3 {1,1,1} * 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: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.003782/2.603, allocations: 0.8552 MB / 0.8064 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001929/2.605, allocations: 0.586 MB / 0.807 GB, free: 10.91 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02888/2.634, allocations: 7.554 MB / 0.8144 GB, free: 4.969 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02579/2.659, allocations: 6.709 MB / 0.8209 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.105e-05/2.66, allocations: 11.98 kB / 0.8209 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.251e-05/2.66, allocations: 15.91 kB / 0.8209 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02304/2.683, allocations: 7.464 MB / 0.8282 GB, free: 7.938 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-05/2.683, allocations: 0 / 0.8282 GB, free: 7.938 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006894/2.69, allocations: 0.6006 MB / 0.8288 GB, free: 7.336 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01856/2.708, allocations: 3.136 MB / 0.8319 GB, free: 4.156 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001062/2.709, allocations: 102.7 kB / 0.832 GB, free: 4.059 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02707/2.737, allocations: 14.03 MB / 0.8457 GB, free: 5.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3364/3.073, allocations: 6.011 MB / 0.8515 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03782/3.111, allocations: 11.67 MB / 0.8629 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004951/3.116, allocations: 1.137 MB / 0.864 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00264/3.119, allocations: 77.97 kB / 0.8641 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007754/3.126, allocations: 379.4 kB / 0.8645 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/3.128, allocations: 212.8 kB / 0.8647 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008027/3.129, allocations: 91.31 kB / 0.8648 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01227/3.141, allocations: 4.005 MB / 0.8687 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.31e-07/3.141, allocations: 0 / 0.8687 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0131/3.154, allocations: 2.014 MB / 0.8706 GB, free: 140.2 MB / 0.4948 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.03472/3.189, allocations: 12.52 MB / 0.8829 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02836/3.217, allocations: 10.45 MB / 0.8931 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/3.217, allocations: 4.938 kB / 0.8931 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01677/3.234, allocations: 5.299 MB / 0.8983 GB, free: 133.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008108/3.242, allocations: 0.8309 MB / 0.8991 GB, free: 133 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1845:5-1847: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.1/Mechanics/MultiBody/Parts.mo:1845:5-1847: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.1/Mechanics/MultiBody/Parts.mo:1845:5-1847: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.1/Mechanics/MultiBody/Parts.mo:1842:5-1844: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.1/Mechanics/MultiBody/Parts.mo:1842:5-1844: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.1/Mechanics/MultiBody/Parts.mo:1842:5-1844: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.06078/3.303, allocations: 19.84 MB / 0.9184 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01279/3.316, allocations: 5.41 MB / 0.9237 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008264/3.324, allocations: 3.681 MB / 0.9273 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.874e-06/3.324, allocations: 0 / 0.9273 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.895/11.22, allocations: 0.5426 GB / 1.47 GB, free: 90.77 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse_res.mat does not exist to compare? outputFormat=mat