Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.008/2.008, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.497e-05, allocations: 15.92 kB / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 48.69 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4545/0.5655, allocations: 90.72 MB / 407 MB, free: 1.898 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.5658, allocations: 78.77 kB / 407.1 MB, free: 1.859 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7178/1.284, allocations: 89.34 MB / 496.5 MB, free: 89.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.284, allocations: 0 / 496.5 MB, free: 89.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002621/1.284, allocations: 82.31 kB / 496.5 MB, free: 89.05 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.02485/1.309, allocations: 4.301 MB / 0.4891 GB, free: 87.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.579e-05/1.309, allocations: 12.42 kB / 0.4891 GB, free: 87.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0297/1.339, allocations: 3.58 MB / 0.4926 GB, free: 87.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02093/1.36, allocations: 4.694 MB / 0.4972 GB, free: 86.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004093/1.36, allocations: 143 kB / 0.4973 GB, free: 86.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003451/1.364, allocations: 260.3 kB / 0.4976 GB, free: 86.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0205/1.384, allocations: 7.928 MB / 0.5053 GB, free: 86.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03073/1.415, allocations: 10.37 MB / 0.5154 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002697/1.415, allocations: 25.53 kB / 0.5155 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002787/1.418, allocations: 14.41 kB / 0.5155 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002761/1.421, allocations: 1.256 MB / 0.5167 GB, free: 85.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07415/1.495, allocations: 35.38 MB / 0.5513 GB, free: 66.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006887/1.502, allocations: 4.09 MB / 0.5553 GB, free: 64.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004303/1.506, allocations: 2.162 MB / 0.5574 GB, free: 63.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001558/1.508, allocations: 1.317 MB / 0.5587 GB, free: 62.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/1.508, allocations: 51.84 kB / 0.5587 GB, free: 62.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 7.264e-06/1.508, allocations: 3.969 kB / 0.5587 GB, free: 62.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=258): time 0.05309/1.561, allocations: 10.5 MB / 0.569 GB, free: 54.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/1.561, allocations: 77.41 kB / 0.569 GB, free: 54.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005981/1.567, allocations: 2.399 MB / 0.5714 GB, free: 52.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006003/1.568, allocations: 25.7 kB / 0.5714 GB, free: 52.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002902/1.571, allocations: 3.044 MB / 0.5744 GB, free: 49.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00164/1.573, allocations: 0.9254 MB / 0.5753 GB, free: 48.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006206/1.573, allocations: 0 / 0.5753 GB, free: 48.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005272/1.574, allocations: 0.5667 MB / 0.5758 GB, free: 48.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006131/1.58, allocations: 2.195 MB / 0.578 GB, free: 46.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007145/1.587, allocations: 5.574 MB / 0.5834 GB, free: 39.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007419/1.595, allocations: 3.549 MB / 0.5869 GB, free: 36.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/1.595, allocations: 39.94 kB / 0.5869 GB, free: 36.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02315/1.618, allocations: 7.887 MB / 0.5946 GB, free: 29.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.134e-05/1.618, allocations: 56 kB / 0.5947 GB, free: 29.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/1.618, allocations: 127.9 kB / 0.5948 GB, free: 29.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006266/1.624, allocations: 1.03 MB / 0.5958 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008542/1.633, allocations: 1.403 MB / 0.5972 GB, free: 27.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/1.637, allocations: 2.395 MB / 0.5995 GB, free: 25.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005894/1.643, allocations: 211.4 kB / 0.5997 GB, free: 25.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/1.644, allocations: 355 kB / 0.6001 GB, free: 24.83 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.001687/1.646, allocations: 407.2 kB / 0.6004 GB, free: 24.43 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01312/1.659, allocations: 4.203 MB / 0.6046 GB, free: 20.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009946/1.66, allocations: 284.3 kB / 0.6048 GB, free: 20.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/1.674, allocations: 4.733 MB / 0.6094 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001239/1.674, allocations: 53.39 kB / 0.6095 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.674, allocations: 0 / 0.6095 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.916e-05/1.674, allocations: 7.969 kB / 0.6095 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02916/1.703, allocations: 10.29 MB / 0.6195 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/1.703, allocations: 15.98 kB / 0.6196 GB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003601/1.707, allocations: 415.3 kB / 0.62 GB, free: 4.496 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005031/1.712, allocations: 0.5953 MB / 0.6205 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005482/1.713, allocations: 27.98 kB / 0.6206 GB, free: 3.867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002933/1.715, allocations: 2.003 MB / 0.6225 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.334e-05/1.716, allocations: 11.94 kB / 0.6225 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01941/1.735, allocations: 7.617 MB / 0.63 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009972/1.736, allocations: 329.4 kB / 0.6303 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/1.737, allocations: 23.94 kB / 0.6303 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002465/1.74, allocations: 95.83 kB / 0.6304 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006066/1.74, allocations: 161.6 kB / 0.6306 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002724/1.74, allocations: 75.98 kB / 0.6306 GB, free: 9.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004192/1.745, allocations: 1.573 MB / 0.6322 GB, free: 7.441 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.82e-07/1.745, allocations: 0 / 0.6322 GB, free: 7.441 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007291/1.752, allocations: 0.8594 MB / 0.633 GB, free: 6.582 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.305/2.057, allocations: 10.65 MB / 0.6434 GB, free: 92.09 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.01548/2.073, allocations: 5.743 MB / 0.649 GB, free: 91.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/2.073, allocations: 3.125 kB / 0.649 GB, free: 91.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006887/2.08, allocations: 2.305 MB / 0.6513 GB, free: 91.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/2.083, allocations: 281.6 kB / 0.6515 GB, free: 91.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04838/2.131, allocations: 10.57 MB / 0.6619 GB, free: 89.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01121/2.143, allocations: 3.603 MB / 0.6654 GB, free: 88.65 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01309/2.156, allocations: 2.182 MB / 0.6675 GB, free: 88.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006806/2.163, allocations: 1.956 MB / 0.6694 GB, free: 88.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.773e-06/2.163, allocations: 0 / 0.6694 GB, free: 88.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/2.369, allocations: 67.42 MB / 0.7353 GB, free: 54.26 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/2.369, allocations: 143.4 kB / 0.7354 GB, free: 54.07 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.676/7.046, allocations: 3.938 kB / 0.7354 GB, free: 54.07 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat