Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.034/2.034, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.49e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4371/0.5455, allocations: 94.5 MB / 410.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.5458, allocations: 76.19 kB / 410.9 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.681/1.227, allocations: 96.04 MB / 0.495 GB, free: 89.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.227, allocations: 2.844 kB / 0.495 GB, free: 89.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002616/1.227, allocations: 93.25 kB / 0.4951 GB, free: 89.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02533/1.252, allocations: 4.663 MB / 0.4997 GB, free: 87.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/1.253, allocations: 10.03 kB / 0.4997 GB, free: 87.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02838/1.281, allocations: 3.619 MB / 0.5032 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01897/1.3, allocations: 4.902 MB / 0.508 GB, free: 86.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003265/1.3, allocations: 159.8 kB / 0.5082 GB, free: 86.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003058/1.303, allocations: 301 kB / 0.5084 GB, free: 86.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01986/1.323, allocations: 8.436 MB / 0.5167 GB, free: 86.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03265/1.356, allocations: 11.14 MB / 0.5276 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002642/1.356, allocations: 39.86 kB / 0.5276 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002395/1.359, allocations: 18.94 kB / 0.5276 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002847/1.362, allocations: 1.317 MB / 0.5289 GB, free: 83.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07953/1.441, allocations: 39.49 MB / 0.5675 GB, free: 58.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007221/1.448, allocations: 4.309 MB / 0.5717 GB, free: 54.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004313/1.453, allocations: 2.29 MB / 0.5739 GB, free: 51.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001472/1.454, allocations: 1.335 MB / 0.5752 GB, free: 50.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.32e-05/1.454, allocations: 52.56 kB / 0.5753 GB, free: 50.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=265): time 6.873e-06/1.454, allocations: 0 / 0.5753 GB, free: 50.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=285): time 0.05663/1.511, allocations: 18.02 MB / 0.5929 GB, free: 34.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/1.511, allocations: 103.1 kB / 0.593 GB, free: 34.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005251/1.516, allocations: 2.583 MB / 0.5955 GB, free: 32.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006169/1.517, allocations: 25.7 kB / 0.5955 GB, free: 32.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002524/1.52, allocations: 3.302 MB / 0.5987 GB, free: 28.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001554/1.521, allocations: 1.021 MB / 0.5997 GB, free: 27.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007498/1.522, allocations: 0 / 0.5997 GB, free: 27.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005538/1.523, allocations: 0.5997 MB / 0.6003 GB, free: 27.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005638/1.528, allocations: 2.414 MB / 0.6027 GB, free: 24.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008321/1.537, allocations: 6.029 MB / 0.6086 GB, free: 16.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00841/1.545, allocations: 3.869 MB / 0.6124 GB, free: 12.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.545, allocations: 36 kB / 0.6124 GB, free: 12.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.03313/1.578, allocations: 9.547 MB / 0.6217 GB, free: 3.398 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.579, allocations: 64.06 kB / 0.6218 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001694/1.579, allocations: 131.9 kB / 0.6219 GB, free: 3.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01653/1.595, allocations: 2.341 MB / 0.6242 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009349/1.605, allocations: 1.462 MB / 0.6256 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02899/1.634, allocations: 9.825 MB / 0.6352 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006789/1.641, allocations: 231.6 kB / 0.6354 GB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001839/1.642, allocations: 388 kB / 0.6358 GB, free: 4.828 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (794): * Single equations (assignments): 786 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.002514/1.645, allocations: 424.7 kB / 0.6362 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.31/1.955, allocations: 4.385 MB / 0.6405 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/1.957, allocations: 307.6 kB / 0.6408 GB, free: 91.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/1.973, allocations: 4.995 MB / 0.6457 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001405/1.973, allocations: 56.27 kB / 0.6457 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/1.973, allocations: 5.953 kB / 0.6457 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.483e-05/1.973, allocations: 12.53 kB / 0.6457 GB, free: 90.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03557/2.009, allocations: 10.94 MB / 0.6564 GB, free: 90.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.656e-05/2.009, allocations: 8.375 kB / 0.6564 GB, free: 90.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004452/2.013, allocations: 479.3 kB / 0.6569 GB, free: 90.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/2.017, allocations: 0.6936 MB / 0.6576 GB, free: 90.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006811/2.018, allocations: 40.75 kB / 0.6576 GB, free: 90.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003571/2.022, allocations: 2.336 MB / 0.6599 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.424e-05/2.022, allocations: 15.94 kB / 0.6599 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01694/2.039, allocations: 8.291 MB / 0.668 GB, free: 87.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/2.04, allocations: 355.3 kB / 0.6683 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/2.041, allocations: 20.62 kB / 0.6683 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003043/2.044, allocations: 112.4 kB / 0.6685 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007423/2.045, allocations: 166.5 kB / 0.6686 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002895/2.045, allocations: 84.77 kB / 0.6687 GB, free: 87.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003701/2.049, allocations: 1.699 MB / 0.6703 GB, free: 87.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.049, allocations: 0 / 0.6703 GB, free: 87.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007613/2.057, allocations: 0.9932 MB / 0.6713 GB, free: 87.08 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (236): * Single equations (assignments): 227 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.02044/2.077, allocations: 11.02 MB / 0.6821 GB, free: 82.1 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1990:5-1992:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02138/2.098, allocations: 6.07 MB / 0.688 GB, free: 80.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.251e-05/2.099, allocations: 3.25 kB / 0.688 GB, free: 80.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01107/2.11, allocations: 2.64 MB / 0.6906 GB, free: 79.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004672/2.114, allocations: 318.7 kB / 0.6909 GB, free: 79.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05368/2.168, allocations: 11.86 MB / 0.7025 GB, free: 75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01272/2.181, allocations: 3.887 MB / 0.7063 GB, free: 73.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008426/2.189, allocations: 2.221 MB / 0.7084 GB, free: 71.8 MB / 426.7 MB Notification: Performance of SimCode: time 2.284e-06/2.189, allocations: 3.938 kB / 0.7084 GB, free: 71.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.061/7.251, allocations: 141.6 MB / 0.8467 GB, free: 98.1 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat