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.475/2.475, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.519e-05/4.523e-05, allocations: 4 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4593, allocations: 54.85 MB / 359.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1838/0.6432, allocations: 97.89 MB / 457.8 MB, free: 14.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.6435, allocations: 79.95 kB / 457.9 MB, free: 14.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7165/1.36, allocations: 90.94 MB / 0.5359 GB, free: 105.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.757e-06/1.36, allocations: 2.656 kB / 0.5359 GB, free: 105.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002093/1.36, allocations: 82.91 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.025/1.385, allocations: 4.302 MB / 0.5402 GB, free: 103.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/1.385, allocations: 9.906 kB / 0.5402 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004796/1.39, allocations: 0.8639 MB / 0.5411 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/1.419, allocations: 3.577 MB / 0.5446 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02022/1.439, allocations: 4.71 MB / 0.5492 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005159/1.44, allocations: 337.4 kB / 0.5495 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003085/1.443, allocations: 444.2 kB / 0.5499 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0363/1.479, allocations: 11.35 MB / 0.561 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000286/1.48, allocations: 30.47 kB / 0.561 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002924/1.483, allocations: 203.5 kB / 0.5612 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002851/1.485, allocations: 1.249 MB / 0.5624 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/1.517, allocations: 10.82 MB / 0.573 GB, free: 98.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08177/1.599, allocations: 38.02 MB / 0.6101 GB, free: 72.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/1.613, allocations: 4.636 MB / 0.6147 GB, free: 68.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004701/1.618, allocations: 2.214 MB / 0.6168 GB, free: 66.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001538/1.619, allocations: 1.323 MB / 0.6181 GB, free: 64.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/1.619, allocations: 60.5 kB / 0.6182 GB, free: 64.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.354e-06/1.619, allocations: 0 / 0.6182 GB, free: 64.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.05842/1.678, allocations: 11.27 MB / 0.6292 GB, free: 55.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/1.678, allocations: 77.41 kB / 0.6293 GB, free: 55.69 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005343/1.683, allocations: 2.485 MB / 0.6317 GB, free: 53.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005419/1.684, allocations: 57.7 kB / 0.6317 GB, free: 53.22 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002256/1.686, allocations: 2.948 MB / 0.6346 GB, free: 50.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/1.688, allocations: 0.9466 MB / 0.6355 GB, free: 49.33 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006485/1.688, allocations: 108 kB / 0.6356 GB, free: 49.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003896/1.689, allocations: 0.5539 MB / 0.6362 GB, free: 48.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005105/1.694, allocations: 2.229 MB / 0.6384 GB, free: 46.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007524/1.701, allocations: 5.324 MB / 0.6436 GB, free: 39.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007592/1.709, allocations: 3.515 MB / 0.647 GB, free: 36.06 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-05/1.709, allocations: 32 kB / 0.647 GB, free: 36.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0246/1.734, allocations: 7.984 MB / 0.6548 GB, free: 28.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/1.734, allocations: 53.72 kB / 0.6549 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/1.734, allocations: 108 kB / 0.655 GB, free: 27.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006377/1.741, allocations: 1.04 MB / 0.656 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008534/1.749, allocations: 1.31 MB / 0.6573 GB, free: 25.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/1.753, allocations: 2.474 MB / 0.6597 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006427/1.76, allocations: 307.7 kB / 0.66 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/1.761, allocations: 336 kB / 0.6603 GB, free: 22.27 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.001748/1.763, allocations: 0.5177 MB / 0.6608 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007261/1.764, allocations: 280.3 kB / 0.6611 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/1.779, allocations: 4.858 MB / 0.6658 GB, free: 16.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/1.779, allocations: 48 kB / 0.6659 GB, free: 16.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.779, allocations: 3.953 kB / 0.6659 GB, free: 16.49 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.015e-05/1.779, allocations: 11.95 kB / 0.6659 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/1.812, allocations: 11.43 MB / 0.677 GB, free: 4.918 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.416e-05/1.812, allocations: 11.95 kB / 0.677 GB, free: 4.906 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003727/1.816, allocations: 427.5 kB / 0.6775 GB, free: 4.488 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005225/1.822, allocations: 0.606 MB / 0.678 GB, free: 3.875 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006183/1.822, allocations: 51.98 kB / 0.6781 GB, free: 3.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003104/1.825, allocations: 2.069 MB / 0.6801 GB, free: 1.625 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/1.825, allocations: 11.94 kB / 0.6801 GB, free: 1.613 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02036/1.846, allocations: 7.656 MB / 0.6876 GB, free: 9.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.847, allocations: 337.3 kB / 0.6879 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.848, allocations: 47.98 kB / 0.688 GB, free: 9.176 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.851, allocations: 135.8 kB / 0.6881 GB, free: 9.043 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.851, allocations: 153.6 kB / 0.6883 GB, free: 8.895 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/1.852, allocations: 79.98 kB / 0.6883 GB, free: 8.816 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004529/1.856, allocations: 1.682 MB / 0.69 GB, free: 7.125 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.856, allocations: 0 / 0.69 GB, free: 7.125 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007191/1.863, allocations: 0.9998 MB / 0.6909 GB, free: 6.129 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.3714/2.235, allocations: 10.61 MB / 0.7013 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.02494/2.26, allocations: 5.716 MB / 0.7069 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.058e-05/2.26, allocations: 2 kB / 0.7069 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01158/2.272, allocations: 2.328 MB / 0.7092 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005277/2.277, allocations: 386.8 kB / 0.7095 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05411/2.331, allocations: 10.73 MB / 0.72 GB, free: 104.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01151/2.343, allocations: 3.608 MB / 0.7235 GB, free: 104 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008865/2.352, allocations: 2.069 MB / 0.7256 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0048/2.357, allocations: 1.944 MB / 0.7274 GB, free: 103.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.623e-06/2.357, allocations: 0 / 0.7274 GB, free: 103.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/2.521, allocations: 70.06 MB / 0.7959 GB, free: 67.36 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/2.522, allocations: 175.5 kB / 0.796 GB, free: 67.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.995/7.517, allocations: 4 kB / 0.796 GB, free: 67.13 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