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.151/2.151, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.133e-05/4.169e-05, allocations: 4 kB / 273.2 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1474, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4655/0.613, allocations: 91.15 MB / 413 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/0.6134, allocations: 74.84 kB / 413.1 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4586/1.072, allocations: 90.94 MB / 0.4922 GB, free: 2.766 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.072, allocations: 0 / 0.4922 GB, free: 2.766 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003208/1.072, allocations: 79.98 kB / 0.4923 GB, free: 2.688 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.3366/1.409, allocations: 4.295 MB / 0.4965 GB, free: 97.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/1.409, allocations: 9.25 kB / 0.4965 GB, free: 97.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004022/1.413, allocations: 0.8671 MB / 0.4973 GB, free: 97.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02832/1.442, allocations: 3.58 MB / 0.5008 GB, free: 96.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.462, allocations: 4.7 MB / 0.5054 GB, free: 96.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005785/1.463, allocations: 342.1 kB / 0.5058 GB, free: 96.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003294/1.466, allocations: 439.9 kB / 0.5062 GB, free: 96.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03957/1.506, allocations: 11.4 MB / 0.5173 GB, free: 95.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002951/1.506, allocations: 33.44 kB / 0.5173 GB, free: 95.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002863/1.509, allocations: 195.5 kB / 0.5175 GB, free: 95.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002918/1.512, allocations: 1.253 MB / 0.5187 GB, free: 95.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0321/1.544, allocations: 10.94 MB / 0.5294 GB, free: 94.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08047/1.625, allocations: 38.03 MB / 0.5666 GB, free: 72.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01382/1.638, allocations: 4.651 MB / 0.5711 GB, free: 70.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00483/1.643, allocations: 2.218 MB / 0.5733 GB, free: 69.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001586/1.645, allocations: 1.323 MB / 0.5746 GB, free: 68.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/1.645, allocations: 52.03 kB / 0.5746 GB, free: 68.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 7.404e-06/1.645, allocations: 0 / 0.5746 GB, free: 68.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.05809/1.703, allocations: 11.27 MB / 0.5856 GB, free: 60.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/1.703, allocations: 73.41 kB / 0.5857 GB, free: 60.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004675/1.708, allocations: 2.485 MB / 0.5881 GB, free: 58.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005449/1.709, allocations: 58.02 kB / 0.5882 GB, free: 58.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002045/1.711, allocations: 2.956 MB / 0.5911 GB, free: 55.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001392/1.712, allocations: 0.9413 MB / 0.592 GB, free: 54.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/1.713, allocations: 112 kB / 0.5921 GB, free: 54.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003693/1.713, allocations: 0.554 MB / 0.5926 GB, free: 53.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.718, allocations: 2.225 MB / 0.5948 GB, free: 51.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007518/1.726, allocations: 5.363 MB / 0.6 GB, free: 45.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007834/1.734, allocations: 3.513 MB / 0.6035 GB, free: 42.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/1.734, allocations: 35.95 kB / 0.6035 GB, free: 42.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0247/1.759, allocations: 8.291 MB / 0.6116 GB, free: 35.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.759, allocations: 52 kB / 0.6117 GB, free: 35.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001556/1.759, allocations: 108 kB / 0.6118 GB, free: 35.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006469/1.765, allocations: 1.037 MB / 0.6128 GB, free: 34.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008464/1.774, allocations: 1.315 MB / 0.6141 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003998/1.778, allocations: 2.459 MB / 0.6165 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005965/1.784, allocations: 316.5 kB / 0.6168 GB, free: 30.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/1.785, allocations: 331.6 kB / 0.6171 GB, free: 30.46 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.001978/1.787, allocations: 0.5196 MB / 0.6176 GB, free: 29.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007072/1.788, allocations: 280.3 kB / 0.6179 GB, free: 29.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/1.804, allocations: 4.859 MB / 0.6226 GB, free: 24.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/1.804, allocations: 44 kB / 0.6226 GB, free: 24.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/1.804, allocations: 3.984 kB / 0.6226 GB, free: 24.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-05/1.804, allocations: 7.969 kB / 0.6227 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/1.839, allocations: 11.46 MB / 0.6338 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.441e-05/1.839, allocations: 8 kB / 0.6339 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003796/1.842, allocations: 411.3 kB / 0.6342 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005321/1.848, allocations: 0.6187 MB / 0.6349 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006143/1.849, allocations: 51.98 kB / 0.6349 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003234/1.852, allocations: 2.061 MB / 0.6369 GB, free: 9.887 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/1.852, allocations: 15.89 kB / 0.6369 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/1.87, allocations: 7.664 MB / 0.6444 GB, free: 1.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009311/1.871, allocations: 329.4 kB / 0.6447 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.872, allocations: 51.59 kB / 0.6448 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00294/1.875, allocations: 131.8 kB / 0.6449 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007203/1.876, allocations: 157.6 kB / 0.6451 GB, free: 1.145 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.876, allocations: 75.98 kB / 0.6451 GB, free: 1.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004351/1.881, allocations: 1.682 MB / 0.6468 GB, free: 15.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.01e-07/1.881, allocations: 4 kB / 0.6468 GB, free: 15.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00689/1.888, allocations: 1.001 MB / 0.6477 GB, free: 14.38 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.02343/1.911, allocations: 10.62 MB / 0.6581 GB, free: 3.43 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.3353/2.247, allocations: 5.886 MB / 0.6639 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.589e-05/2.247, allocations: 2.219 kB / 0.6639 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007308/2.254, allocations: 2.351 MB / 0.6662 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/2.257, allocations: 399 kB / 0.6665 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04536/2.303, allocations: 10.74 MB / 0.677 GB, free: 101.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01204/2.315, allocations: 3.615 MB / 0.6806 GB, free: 100.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01291/2.328, allocations: 2.068 MB / 0.6826 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006305/2.334, allocations: 1.938 MB / 0.6845 GB, free: 100.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/2.334, allocations: 0 / 0.6845 GB, free: 100.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/2.496, allocations: 70.54 MB / 0.7534 GB, free: 71.08 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/2.496, allocations: 176.9 kB / 0.7535 GB, free: 70.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.021/7.517, allocations: 4 kB / 0.7535 GB, free: 70.85 MB / 442.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