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.122/2.122, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.619e-05/4.638e-05, allocations: 0 / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1292, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4832/0.6125, allocations: 91.16 MB / 413 MB, free: 14.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.6128, allocations: 83.02 kB / 413.1 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4128/1.026, allocations: 90.93 MB / 0.4922 GB, free: 3.023 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.026, allocations: 0 / 0.4922 GB, free: 3.023 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002208/1.026, allocations: 83.98 kB / 0.4923 GB, free: 2.941 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.319/1.345, allocations: 4.289 MB / 0.4965 GB, free: 96.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/1.345, allocations: 10.03 kB / 0.4965 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005579/1.351, allocations: 0.8676 MB / 0.4973 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0301/1.381, allocations: 3.576 MB / 0.5008 GB, free: 96.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02072/1.402, allocations: 4.702 MB / 0.5054 GB, free: 96.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006068/1.402, allocations: 338.9 kB / 0.5057 GB, free: 96.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003745/1.406, allocations: 441.7 kB / 0.5062 GB, free: 96.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04071/1.447, allocations: 11.35 MB / 0.5173 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002807/1.447, allocations: 23.28 kB / 0.5173 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002872/1.45, allocations: 202.3 kB / 0.5175 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/1.453, allocations: 1.258 MB / 0.5187 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03192/1.485, allocations: 10.81 MB / 0.5293 GB, free: 94.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08003/1.565, allocations: 38.05 MB / 0.5664 GB, free: 72.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01326/1.578, allocations: 4.625 MB / 0.5709 GB, free: 70.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004559/1.583, allocations: 2.217 MB / 0.5731 GB, free: 69.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001518/1.585, allocations: 1.324 MB / 0.5744 GB, free: 68.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/1.585, allocations: 55.56 kB / 0.5744 GB, free: 68.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 6.482e-06/1.585, allocations: 0 / 0.5744 GB, free: 68.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.05811/1.643, allocations: 11.27 MB / 0.5854 GB, free: 60.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/1.643, allocations: 73.41 kB / 0.5855 GB, free: 60.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005072/1.648, allocations: 2.485 MB / 0.5879 GB, free: 58.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005364/1.649, allocations: 58.95 kB / 0.588 GB, free: 58.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001956/1.651, allocations: 2.945 MB / 0.5909 GB, free: 55.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001305/1.652, allocations: 0.9438 MB / 0.5918 GB, free: 54.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/1.652, allocations: 115.9 kB / 0.5919 GB, free: 54.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003602/1.653, allocations: 0.555 MB / 0.5924 GB, free: 54.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004898/1.658, allocations: 2.232 MB / 0.5946 GB, free: 52.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007293/1.665, allocations: 5.33 MB / 0.5998 GB, free: 45.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007571/1.673, allocations: 3.508 MB / 0.6033 GB, free: 42.67 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001074/1.673, allocations: 39.95 kB / 0.6033 GB, free: 42.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0239/1.697, allocations: 7.913 MB / 0.611 GB, free: 35.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.582e-05/1.697, allocations: 55.31 kB / 0.6111 GB, free: 35.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.697, allocations: 119.9 kB / 0.6112 GB, free: 35.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006433/1.704, allocations: 1.026 MB / 0.6122 GB, free: 35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008496/1.712, allocations: 1.313 MB / 0.6135 GB, free: 33.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003906/1.716, allocations: 2.464 MB / 0.6159 GB, free: 31.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00586/1.722, allocations: 317.9 kB / 0.6162 GB, free: 31.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001268/1.723, allocations: 331.9 kB / 0.6165 GB, free: 30.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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 (710): * Single equations (assignments): 701 * 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.001153/1.724, allocations: 0.519 MB / 0.617 GB, free: 30.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006398/1.725, allocations: 280.3 kB / 0.6173 GB, free: 30.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/1.74, allocations: 4.85 MB / 0.622 GB, free: 25.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/1.74, allocations: 47.98 kB / 0.6221 GB, free: 25.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/1.74, allocations: 0 / 0.6221 GB, free: 25.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.839e-05/1.74, allocations: 15.95 kB / 0.6221 GB, free: 25.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03433/1.775, allocations: 11.44 MB / 0.6332 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.133e-05/1.775, allocations: 12 kB / 0.6333 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/1.779, allocations: 411.3 kB / 0.6336 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005295/1.784, allocations: 0.6118 MB / 0.6342 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005948/1.785, allocations: 55.92 kB / 0.6343 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/1.788, allocations: 2.069 MB / 0.6363 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/1.788, allocations: 23.95 kB / 0.6363 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0178/1.806, allocations: 7.652 MB / 0.6438 GB, free: 2.629 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009446/1.807, allocations: 333.3 kB / 0.6441 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009298/1.808, allocations: 51.98 kB / 0.6442 GB, free: 2.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002686/1.81, allocations: 119.8 kB / 0.6443 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006898/1.811, allocations: 165.6 kB / 0.6445 GB, free: 1.953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.811, allocations: 71.98 kB / 0.6445 GB, free: 1.883 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003992/1.815, allocations: 1.69 MB / 0.6462 GB, free: 188 kB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.815, allocations: 0 / 0.6462 GB, free: 188 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.00774/1.823, allocations: 0.9961 MB / 0.6471 GB, free: 15.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (207): * Single equations (assignments): 198 * 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.02386/1.847, allocations: 10.61 MB / 0.6575 GB, free: 4.25 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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.3081/2.155, allocations: 5.718 MB / 0.6631 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/2.155, allocations: 1.031 kB / 0.6631 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008176/2.163, allocations: 2.327 MB / 0.6654 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003605/2.167, allocations: 391 kB / 0.6657 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04058/2.208, allocations: 11.24 MB / 0.6767 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009551/2.217, allocations: 3.619 MB / 0.6802 GB, free: 99.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005321/2.223, allocations: 1.992 MB / 0.6822 GB, free: 99.41 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/2.223, allocations: 0 / 0.6822 GB, free: 99.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.508/6.731, allocations: 138.9 MB / 0.8178 GB, free: 5.445 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