Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 235 MB / 247.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.887e-05/4.902e-05, allocations: 4.938 kB / 305 MB, free: 5.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.395, allocations: 54.85 MB / 359.9 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.5779, allocations: 97.89 MB / 457.7 MB, free: 15.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/0.5783, allocations: 71.97 kB / 457.8 MB, free: 14.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6939/1.272, allocations: 90.95 MB / 0.5359 GB, free: 105.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.272, allocations: 0 / 0.5359 GB, free: 105.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002647/1.272, allocations: 83.06 kB / 0.536 GB, free: 105.1 MB / 458.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.02461/1.297, allocations: 4.307 MB / 0.5402 GB, free: 103.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/1.297, allocations: 8.875 kB / 0.5402 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004529/1.302, allocations: 0.8672 MB / 0.541 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02817/1.33, allocations: 3.577 MB / 0.5445 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0197/1.35, allocations: 4.699 MB / 0.5491 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004538/1.35, allocations: 341.7 kB / 0.5495 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003216/1.353, allocations: 446.8 kB / 0.5499 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03608/1.39, allocations: 11.4 MB / 0.561 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002491/1.39, allocations: 28.28 kB / 0.561 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00276/1.393, allocations: 205 kB / 0.5612 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002771/1.395, allocations: 1.257 MB / 0.5625 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03126/1.427, allocations: 10.93 MB / 0.5731 GB, free: 97.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07722/1.504, allocations: 38.03 MB / 0.6103 GB, free: 72.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/1.518, allocations: 4.652 MB / 0.6148 GB, free: 68.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004662/1.522, allocations: 2.216 MB / 0.617 GB, free: 66.26 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001536/1.524, allocations: 1.318 MB / 0.6183 GB, free: 64.83 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/1.524, allocations: 55.19 kB / 0.6183 GB, free: 64.77 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 6.983e-06/1.524, allocations: 0 / 0.6183 GB, free: 64.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.05714/1.581, allocations: 11.28 MB / 0.6293 GB, free: 55.63 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/1.581, allocations: 73.41 kB / 0.6294 GB, free: 55.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005316/1.587, allocations: 2.481 MB / 0.6318 GB, free: 53.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005405/1.587, allocations: 65.7 kB / 0.6319 GB, free: 53.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/1.589, allocations: 2.944 MB / 0.6348 GB, free: 50.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/1.591, allocations: 0.9472 MB / 0.6357 GB, free: 49.22 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006235/1.591, allocations: 112 kB / 0.6358 GB, free: 49.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004003/1.592, allocations: 0.55 MB / 0.6363 GB, free: 48.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005385/1.597, allocations: 2.233 MB / 0.6385 GB, free: 46.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00754/1.605, allocations: 5.359 MB / 0.6438 GB, free: 39.42 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007651/1.612, allocations: 3.507 MB / 0.6472 GB, free: 35.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.697e-05/1.613, allocations: 36 kB / 0.6472 GB, free: 35.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0316/1.644, allocations: 8.286 MB / 0.6553 GB, free: 27.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/1.644, allocations: 56.22 kB / 0.6554 GB, free: 27.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00764/1.652, allocations: 115.9 kB / 0.6555 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/1.666, allocations: 1.025 MB / 0.6565 GB, free: 26.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01847/1.684, allocations: 1.318 MB / 0.6578 GB, free: 25.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/1.689, allocations: 2.47 MB / 0.6602 GB, free: 22.44 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008342/1.698, allocations: 315.6 kB / 0.6605 GB, free: 22.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/1.699, allocations: 332 kB / 0.6608 GB, free: 21.81 MB / 458.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.001874/1.701, allocations: 0.5196 MB / 0.6613 GB, free: 21.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009077/1.702, allocations: 280.3 kB / 0.6616 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/1.721, allocations: 4.854 MB / 0.6663 GB, free: 16.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/1.721, allocations: 47.98 kB / 0.6663 GB, free: 16.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.721, allocations: 4 kB / 0.6664 GB, free: 16.04 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.872e-05/1.721, allocations: 15.62 kB / 0.6664 GB, free: 16.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/1.756, allocations: 11.46 MB / 0.6776 GB, free: 4.441 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.084e-05/1.756, allocations: 8 kB / 0.6776 GB, free: 4.434 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003674/1.759, allocations: 416.1 kB / 0.678 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005188/1.765, allocations: 0.611 MB / 0.6786 GB, free: 3.406 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005963/1.765, allocations: 55.98 kB / 0.6786 GB, free: 3.352 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/1.768, allocations: 2.072 MB / 0.6806 GB, free: 1.152 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/1.768, allocations: 20 kB / 0.6807 GB, free: 1.133 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/1.789, allocations: 7.652 MB / 0.6881 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/1.79, allocations: 333.3 kB / 0.6884 GB, free: 8.742 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/1.791, allocations: 47.91 kB / 0.6885 GB, free: 8.699 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002918/1.794, allocations: 127.8 kB / 0.6886 GB, free: 8.574 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007703/1.795, allocations: 157.6 kB / 0.6888 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/1.795, allocations: 75.98 kB / 0.6888 GB, free: 8.344 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005047/1.8, allocations: 1.693 MB / 0.6905 GB, free: 6.641 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.8, allocations: 0 / 0.6905 GB, free: 6.641 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006954/1.807, allocations: 0.9958 MB / 0.6915 GB, free: 5.648 MB / 474.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.3478/2.155, allocations: 10.61 MB / 0.7018 GB, free: 107.4 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01659/2.172, allocations: 5.888 MB / 0.7076 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/2.172, allocations: 2 kB / 0.7076 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007309/2.179, allocations: 2.355 MB / 0.7099 GB, free: 106.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/2.183, allocations: 395 kB / 0.7102 GB, free: 106.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03372/2.216, allocations: 10.75 MB / 0.7207 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006997/2.223, allocations: 3.611 MB / 0.7243 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008431/2.232, allocations: 2.06 MB / 0.7263 GB, free: 103.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004602/2.237, allocations: 1.942 MB / 0.7282 GB, free: 103.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.944e-06/2.237, allocations: 0 / 0.7282 GB, free: 103.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1608/2.397, allocations: 70.54 MB / 0.7971 GB, free: 66.41 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/2.398, allocations: 180.8 kB / 0.7972 GB, free: 66.19 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.751/7.149, allocations: 3.562 kB / 0.7972 GB, free: 66.19 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat