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.972/1.972, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.468e-05/3.48e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 48.69 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.537, allocations: 92.58 MB / 414.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.5374, allocations: 75.95 kB / 414.5 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.871/1.408, allocations: 142.4 MB / 0.5438 GB, free: 87.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.408, allocations: 0 / 0.5438 GB, free: 87.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005811/1.409, allocations: 157.1 kB / 0.544 GB, free: 87.12 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.06134/1.47, allocations: 8.669 MB / 0.5524 GB, free: 84.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.47, allocations: 9.938 kB / 0.5524 GB, free: 84.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006719/1.477, allocations: 1.299 MB / 0.5537 GB, free: 84.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07738/1.555, allocations: 7.697 MB / 0.5612 GB, free: 83.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04381/1.598, allocations: 10.92 MB / 0.5719 GB, free: 80.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006958/1.599, allocations: 0.5621 MB / 0.5724 GB, free: 80.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00394/1.603, allocations: 0.7609 MB / 0.5732 GB, free: 79.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05398/1.657, allocations: 17.45 MB / 0.5902 GB, free: 63.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005656/1.658, allocations: 103.1 kB / 0.5903 GB, free: 63.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003331/1.661, allocations: 364.5 kB / 0.5907 GB, free: 62.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003677/1.665, allocations: 1.604 MB / 0.5922 GB, free: 61.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04598/1.711, allocations: 14.03 MB / 0.6059 GB, free: 47.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4739/2.185, allocations: 79.04 MB / 0.6831 GB, free: 43.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0399/2.225, allocations: 6.925 MB / 0.6899 GB, free: 42.51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01049/2.235, allocations: 3.226 MB / 0.693 GB, free: 42.46 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04804/2.283, allocations: 14.75 MB / 0.7074 GB, free: 39.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.121e-05/2.283, allocations: 64.94 kB / 0.7075 GB, free: 39.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=259): time 8.636e-06/2.284, allocations: 0 / 0.7075 GB, free: 39.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=287): time 0.1134/2.397, allocations: 23.05 MB / 0.73 GB, free: 34.53 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004743/2.402, allocations: 6.257 MB / 0.7361 GB, free: 28.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01463/2.416, allocations: 5.753 MB / 0.7417 GB, free: 26.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009048/2.417, allocations: 65.5 kB / 0.7418 GB, free: 26.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004505/2.422, allocations: 5.073 MB / 0.7468 GB, free: 22.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/2.424, allocations: 1.183 MB / 0.7479 GB, free: 21.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001417/2.425, allocations: 192.2 kB / 0.7481 GB, free: 21.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000805/2.426, allocations: 0.7205 MB / 0.7488 GB, free: 20.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009634/2.436, allocations: 3.816 MB / 0.7525 GB, free: 19.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/2.449, allocations: 9.606 MB / 0.7619 GB, free: 10.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01338/2.463, allocations: 5.932 MB / 0.7677 GB, free: 8.637 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002343/2.463, allocations: 58.78 kB / 0.7677 GB, free: 8.637 MB / 442.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.04482/2.508, allocations: 14.96 MB / 0.7824 GB, free: 1.328 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/2.508, allocations: 92 kB / 0.7824 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02875/2.537, allocations: 7.025 MB / 0.7893 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01637/2.553, allocations: 2.831 MB / 0.7921 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02192/2.575, allocations: 2.355 MB / 0.7944 GB, free: 8.352 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02408/2.599, allocations: 11.29 MB / 0.8054 GB, free: 13.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02065/2.62, allocations: 0.8624 MB / 0.8062 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003863/2.624, allocations: 0.5925 MB / 0.8068 GB, free: 12.02 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.004921/2.629, allocations: 0.8605 MB / 0.8077 GB, free: 11.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002521/2.631, allocations: 0.5935 MB / 0.8082 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03151/2.663, allocations: 7.55 MB / 0.8156 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02669/2.69, allocations: 6.709 MB / 0.8222 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.164e-05/2.69, allocations: 8 kB / 0.8222 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.506e-05/2.69, allocations: 15.94 kB / 0.8222 GB, free: 14.58 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02324/2.713, allocations: 7.471 MB / 0.8295 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.672e-05/2.713, allocations: 4 kB / 0.8295 GB, free: 7.121 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006755/2.72, allocations: 0.5967 MB / 0.8301 GB, free: 6.523 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01847/2.738, allocations: 3.131 MB / 0.8331 GB, free: 3.348 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009934/2.74, allocations: 99.91 kB / 0.8332 GB, free: 3.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02625/2.766, allocations: 14.05 MB / 0.8469 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3227/3.088, allocations: 6.007 MB / 0.8528 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03788/3.126, allocations: 11.67 MB / 0.8642 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005024/3.131, allocations: 1.138 MB / 0.8653 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002573/3.134, allocations: 76.72 kB / 0.8654 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007586/3.142, allocations: 378.5 kB / 0.8657 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001415/3.143, allocations: 218.8 kB / 0.8659 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005157/3.144, allocations: 88.27 kB / 0.866 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01209/3.156, allocations: 4.002 MB / 0.8699 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.31e-07/3.156, allocations: 0 / 0.8699 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01307/3.169, allocations: 2.013 MB / 0.8719 GB, free: 138.6 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.03496/3.204, allocations: 12.53 MB / 0.8841 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02884/3.233, allocations: 10.76 MB / 0.8946 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/3.233, allocations: 0.9375 kB / 0.8946 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01692/3.25, allocations: 5.343 MB / 0.8999 GB, free: 131.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007962/3.258, allocations: 0.8362 MB / 0.9007 GB, free: 131.4 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.06335/3.321, allocations: 19.89 MB / 0.9201 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01345/3.335, allocations: 5.398 MB / 0.9254 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009433/3.344, allocations: 3.686 MB / 0.929 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.723e-06/3.344, allocations: 0 / 0.929 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.248/11.59, allocations: 0.5441 GB / 1.473 GB, free: 112.6 MB / 0.5105 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