Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.076/2.076, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.096e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 48.71 MB / 316.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4287/0.5379, allocations: 90.75 MB / 407.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.5382, allocations: 71.59 kB / 407.1 MB, free: 1.781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6433/1.181, allocations: 89.34 MB / 496.5 MB, free: 88.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.182, allocations: 1.406 kB / 496.5 MB, free: 88.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00024/1.182, allocations: 81.92 kB / 496.6 MB, free: 88.85 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02537/1.207, allocations: 4.302 MB / 0.4891 GB, free: 87.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.207, allocations: 10.69 kB / 0.4891 GB, free: 87.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0292/1.236, allocations: 3.576 MB / 0.4926 GB, free: 86.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01952/1.256, allocations: 4.7 MB / 0.4972 GB, free: 86.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/1.256, allocations: 142.7 kB / 0.4973 GB, free: 86.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003209/1.26, allocations: 260.4 kB / 0.4976 GB, free: 86.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0208/1.281, allocations: 7.929 MB / 0.5053 GB, free: 86.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02975/1.31, allocations: 10.36 MB / 0.5155 GB, free: 84.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002519/1.311, allocations: 26.81 kB / 0.5155 GB, free: 84.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002485/1.313, allocations: 16.41 kB / 0.5155 GB, free: 84.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002639/1.316, allocations: 1.251 MB / 0.5167 GB, free: 84.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0751/1.391, allocations: 35.37 MB / 0.5513 GB, free: 66.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006787/1.398, allocations: 4.091 MB / 0.5553 GB, free: 64.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004246/1.402, allocations: 2.17 MB / 0.5574 GB, free: 63.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001574/1.404, allocations: 1.316 MB / 0.5587 GB, free: 62.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/1.404, allocations: 51.16 kB / 0.5587 GB, free: 62.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 7.013e-06/1.404, allocations: 0 / 0.5587 GB, free: 62.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=258): time 0.04063/1.444, allocations: 10.5 MB / 0.569 GB, free: 54.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/1.445, allocations: 73.41 kB / 0.569 GB, free: 54.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004411/1.449, allocations: 2.403 MB / 0.5714 GB, free: 52.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005488/1.45, allocations: 33.7 kB / 0.5714 GB, free: 52.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002156/1.452, allocations: 3.048 MB / 0.5744 GB, free: 49.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/1.453, allocations: 0.9275 MB / 0.5753 GB, free: 48.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005747/1.454, allocations: 0 / 0.5753 GB, free: 48.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000414/1.454, allocations: 0.5729 MB / 0.5759 GB, free: 48.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004794/1.459, allocations: 2.195 MB / 0.578 GB, free: 46.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00734/1.466, allocations: 5.568 MB / 0.5834 GB, free: 39.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007967/1.474, allocations: 3.546 MB / 0.5869 GB, free: 36.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/1.475, allocations: 36 kB / 0.5869 GB, free: 36.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02384/1.498, allocations: 7.836 MB / 0.5946 GB, free: 29.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/1.499, allocations: 59.94 kB / 0.5946 GB, free: 29.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001574/1.499, allocations: 124 kB / 0.5948 GB, free: 29.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006471/1.505, allocations: 1.033 MB / 0.5958 GB, free: 28.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008689/1.514, allocations: 1.399 MB / 0.5971 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003762/1.518, allocations: 2.402 MB / 0.5995 GB, free: 25.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006054/1.524, allocations: 214.8 kB / 0.5997 GB, free: 25.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.525, allocations: 354.9 kB / 0.6 GB, free: 24.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * Number of states: 0 () * Number of discrete variables: 21 (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 (757): * Single equations (assignments): 748 * 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 {(3,100.0%),(2,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 prepare postOptimizeDAE: time 0.00195/1.527, allocations: 399.9 kB / 0.6004 GB, free: 24.57 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01357/1.541, allocations: 4.204 MB / 0.6045 GB, free: 20.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.542, allocations: 290.3 kB / 0.6048 GB, free: 20.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01448/1.557, allocations: 4.725 MB / 0.6094 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001217/1.557, allocations: 49.08 kB / 0.6095 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/1.557, allocations: 4 kB / 0.6095 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.834e-05/1.557, allocations: 7.969 kB / 0.6095 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.586, allocations: 10.29 MB / 0.6195 GB, free: 5.164 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-05/1.586, allocations: 8 kB / 0.6195 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003654/1.59, allocations: 419.4 kB / 0.6199 GB, free: 4.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005125/1.595, allocations: 0.5953 MB / 0.6205 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/1.596, allocations: 27.98 kB / 0.6205 GB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002946/1.599, allocations: 2.013 MB / 0.6225 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.424e-05/1.599, allocations: 15.94 kB / 0.6225 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0192/1.618, allocations: 7.61 MB / 0.6299 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.619, allocations: 333.4 kB / 0.6303 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/1.62, allocations: 12 kB / 0.6303 GB, free: 9.594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002657/1.623, allocations: 95.83 kB / 0.6304 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006852/1.624, allocations: 161.6 kB / 0.6305 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/1.624, allocations: 79.97 kB / 0.6306 GB, free: 9.266 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003979/1.628, allocations: 1.569 MB / 0.6321 GB, free: 7.691 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.628, allocations: 0 / 0.6321 GB, free: 7.691 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007222/1.635, allocations: 0.8672 MB / 0.633 GB, free: 6.824 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 200 * 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.3104/1.946, allocations: 10.64 MB / 0.6434 GB, free: 91.7 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01583/1.961, allocations: 5.752 MB / 0.649 GB, free: 91.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.125e-05/1.962, allocations: 4.469 kB / 0.649 GB, free: 91.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007801/1.969, allocations: 2.302 MB / 0.6512 GB, free: 91.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003173/1.973, allocations: 292.5 kB / 0.6515 GB, free: 91.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/2.009, allocations: 11.08 MB / 0.6623 GB, free: 89.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007566/2.016, allocations: 3.614 MB / 0.6659 GB, free: 88.22 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005111/2.021, allocations: 1.994 MB / 0.6678 GB, free: 88.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.844e-06/2.021, allocations: 0 / 0.6678 GB, free: 88.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.702/6.723, allocations: 138.6 MB / 0.8032 GB, free: 93.72 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat