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 2.021/2.021, allocations: 209.4 MB / 216.9 MB, free: 6.727 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.762e-05, allocations: 4 kB / 267.6 MB, free: 5.398 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 48.69 MB / 316.3 MB, free: 4.605 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.5476, allocations: 92.17 MB / 408.5 MB, free: 444 kB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.548, allocations: 74.16 kB / 408.5 MB, free: 408 kB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.9299/1.478, allocations: 138.9 MB / 0.5346 GB, free: 80.62 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.515e-06/1.478, allocations: 0 / 0.5346 GB, free: 80.62 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0006784/1.479, allocations: 153.1 kB / 0.5348 GB, free: 80.62 MB / 410.8 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.06313/1.542, allocations: 8.677 MB / 0.5433 GB, free: 77.25 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/1.542, allocations: 11.47 kB / 0.5433 GB, free: 77.25 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07832/1.62, allocations: 7.697 MB / 0.5508 GB, free: 74.44 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03933/1.66, allocations: 10.9 MB / 0.5614 GB, free: 67.41 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004681/1.66, allocations: 244 kB / 0.5617 GB, free: 67.18 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003851/1.664, allocations: 463.7 kB / 0.5621 GB, free: 66.72 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02496/1.689, allocations: 10.04 MB / 0.5719 GB, free: 56.68 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03881/1.728, allocations: 15.13 MB / 0.5867 GB, free: 40.05 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006677/1.729, allocations: 111 kB / 0.5868 GB, free: 39.94 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003471/1.732, allocations: 51.75 kB / 0.5868 GB, free: 39.89 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003751/1.736, allocations: 1.604 MB / 0.5884 GB, free: 38.29 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4728/2.209, allocations: 77.64 MB / 0.6642 GB, free: 45.69 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/2.219, allocations: 4.369 MB / 0.6685 GB, free: 45.02 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006785/2.226, allocations: 3.06 MB / 0.6715 GB, free: 44.98 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003748/2.226, allocations: 43.89 kB / 0.6715 GB, free: 44.98 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.578e-05/2.226, allocations: 63.25 kB / 0.6716 GB, free: 44.94 MB / 426.8 MB Notification: Performance of pre-optimization done (n=265): time 7.834e-06/2.226, allocations: 1 kB / 0.6716 GB, free: 44.94 MB / 426.8 MB Notification: Performance of matching and sorting (n=293): time 0.08916/2.315, allocations: 21.65 MB / 0.6927 GB, free: 40.4 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/2.316, allocations: 237.1 kB / 0.693 GB, free: 40.15 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01401/2.33, allocations: 5.142 MB / 0.698 GB, free: 38.29 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009749/2.331, allocations: 31.64 kB / 0.698 GB, free: 38.25 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00481/2.335, allocations: 5.124 MB / 0.703 GB, free: 34.25 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002267/2.338, allocations: 1.18 MB / 0.7042 GB, free: 33.39 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001712/2.339, allocations: 3.094 kB / 0.7042 GB, free: 33.39 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.001088/2.341, allocations: 0.7331 MB / 0.7049 GB, free: 32.89 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009098/2.35, allocations: 3.686 MB / 0.7085 GB, free: 31.57 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01311/2.363, allocations: 9.565 MB / 0.7178 GB, free: 22.3 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/2.376, allocations: 5.812 MB / 0.7235 GB, free: 20.47 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002801/2.376, allocations: 65.48 kB / 0.7236 GB, free: 20.47 MB / 426.8 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.0438/2.42, allocations: 13.86 MB / 0.7371 GB, free: 15.21 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001643/2.42, allocations: 94.97 kB / 0.7372 GB, free: 15.12 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02167/2.442, allocations: 6.591 MB / 0.7436 GB, free: 9.746 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01466/2.457, allocations: 2.789 MB / 0.7464 GB, free: 7.738 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01532/2.472, allocations: 2.407 MB / 0.7487 GB, free: 5.672 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01559/2.488, allocations: 10.88 MB / 0.7593 GB, free: 11.01 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01487/2.503, allocations: 0.6815 MB / 0.76 GB, free: 10.55 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00301/2.506, allocations: 0.6011 MB / 0.7606 GB, free: 9.973 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * 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 (1234): * Single equations (assignments): 1209 * 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.004941/2.511, allocations: 0.6427 MB / 0.7612 GB, free: 9.332 MB / 442.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02891/2.54, allocations: 7.47 MB / 0.7685 GB, free: 3.27 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002511/2.542, allocations: 0.5476 MB / 0.769 GB, free: 2.715 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03763/2.58, allocations: 7.862 MB / 0.7767 GB, free: 14.29 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02536/2.605, allocations: 6.571 MB / 0.7831 GB, free: 8.41 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.275e-05/2.606, allocations: 11.95 kB / 0.7831 GB, free: 8.398 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001212/2.606, allocations: 11.95 kB / 0.7832 GB, free: 8.387 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03904/2.645, allocations: 11.05 MB / 0.7939 GB, free: 13.32 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/2.645, allocations: 7.656 kB / 0.794 GB, free: 13.31 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006693/2.652, allocations: 0.6085 MB / 0.7945 GB, free: 12.7 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01799/2.67, allocations: 3.07 MB / 0.7975 GB, free: 9.59 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/2.671, allocations: 67.53 kB / 0.7976 GB, free: 9.527 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02625/2.697, allocations: 13.81 MB / 0.8111 GB, free: 11.05 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006066/2.703, allocations: 5.77 MB / 0.8167 GB, free: 4.805 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3745/3.078, allocations: 11.52 MB / 0.828 GB, free: 134.7 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005212/3.083, allocations: 1.105 MB / 0.8291 GB, free: 134.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00292/3.086, allocations: 36.73 kB / 0.8291 GB, free: 134.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007962/3.094, allocations: 334.8 kB / 0.8294 GB, free: 134.6 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001645/3.096, allocations: 223.6 kB / 0.8296 GB, free: 134.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000677/3.096, allocations: 89.92 kB / 0.8297 GB, free: 134.6 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01147/3.108, allocations: 3.446 MB / 0.8331 GB, free: 134.4 MB / 490.8 MB Notification: Performance of sort global known variables: time 7.42e-07/3.108, allocations: 0 / 0.8331 GB, free: 134.4 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01608/3.124, allocations: 1.86 MB / 0.8349 GB, free: 134.4 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET140041366487435.x[3],$STATESET140041366487435.x[2],$STATESET140041366487435.x[1],$STATESET140041366487434.x[3],$STATESET140041366487434.x[2],$STATESET140041366487434.x[1],$STATESET140041366487433.x[3],$STATESET140041366487433.x[2],$STATESET140041366487433.x[1],$STATESET140041366487432.x[3],$STATESET140041366487432.x[2],$STATESET140041366487432.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 (239): * Single equations (assignments): 222 * 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.03629/3.16, allocations: 12.35 MB / 0.847 GB, free: 133 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02813/3.189, allocations: 10.35 MB / 0.8571 GB, free: 131 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/3.189, allocations: 6.125 kB / 0.8571 GB, free: 131 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01636/3.205, allocations: 5.287 MB / 0.8622 GB, free: 128.4 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007629/3.213, allocations: 0.6974 MB / 0.8629 GB, free: 128.1 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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.06751/3.28, allocations: 19.53 MB / 0.882 GB, free: 120.6 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01442/3.295, allocations: 5.399 MB / 0.8873 GB, free: 118.9 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009662/3.305, allocations: 3.672 MB / 0.8909 GB, free: 115.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.983e-06/3.305, allocations: 0 / 0.8909 GB, free: 115.9 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.024/11.33, allocations: 0.5408 GB / 1.432 GB, free: 82.2 MB / 490.8 MB 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