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.14/2.14, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.122e-05/5.135e-05, allocations: 4 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 48.7 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.5484, allocations: 91.17 MB / 413.1 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.5487, allocations: 71.97 kB / 413.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3916/0.9404, allocations: 90.93 MB / 0.4922 GB, free: 2.609 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.9404, allocations: 0 / 0.4922 GB, free: 2.609 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002276/0.9407, allocations: 87.98 kB / 0.4923 GB, free: 2.523 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.3532/1.294, allocations: 4.293 MB / 0.4965 GB, free: 96.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.578e-05/1.294, allocations: 9.438 kB / 0.4965 GB, free: 96.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005623/1.3, allocations: 0.866 MB / 0.4974 GB, free: 96.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04137/1.341, allocations: 3.579 MB / 0.5009 GB, free: 96.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03395/1.375, allocations: 4.702 MB / 0.5055 GB, free: 96.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005658/1.376, allocations: 335.2 kB / 0.5058 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003052/1.379, allocations: 447.5 kB / 0.5062 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03618/1.415, allocations: 11.35 MB / 0.5173 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002257/1.415, allocations: 24.34 kB / 0.5173 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002349/1.418, allocations: 203 kB / 0.5175 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/1.42, allocations: 1.248 MB / 0.5187 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03181/1.452, allocations: 10.82 MB / 0.5293 GB, free: 94.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07568/1.528, allocations: 38.04 MB / 0.5664 GB, free: 72.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01387/1.542, allocations: 4.632 MB / 0.571 GB, free: 70.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00457/1.546, allocations: 2.214 MB / 0.5731 GB, free: 69.49 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001504/1.548, allocations: 1.319 MB / 0.5744 GB, free: 68.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/1.548, allocations: 59.5 kB / 0.5745 GB, free: 68.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 5.811e-06/1.548, allocations: 0 / 0.5745 GB, free: 68.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.05463/1.603, allocations: 11.27 MB / 0.5855 GB, free: 60.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/1.603, allocations: 77.41 kB / 0.5855 GB, free: 60.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/1.607, allocations: 2.481 MB / 0.588 GB, free: 58.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005471/1.608, allocations: 61.7 kB / 0.588 GB, free: 57.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/1.61, allocations: 2.95 MB / 0.5909 GB, free: 55.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.612, allocations: 0.9447 MB / 0.5918 GB, free: 54.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005418/1.612, allocations: 115.2 kB / 0.5919 GB, free: 54.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003681/1.612, allocations: 0.5519 MB / 0.5925 GB, free: 53.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005216/1.618, allocations: 2.228 MB / 0.5947 GB, free: 51.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007496/1.625, allocations: 5.327 MB / 0.5999 GB, free: 45.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007352/1.633, allocations: 3.511 MB / 0.6033 GB, free: 42.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.656e-05/1.633, allocations: 35.95 kB / 0.6033 GB, free: 42.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02265/1.655, allocations: 7.986 MB / 0.6111 GB, free: 35.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.31e-05/1.656, allocations: 52 kB / 0.6112 GB, free: 35.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/1.656, allocations: 112 kB / 0.6113 GB, free: 35.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006283/1.662, allocations: 1.028 MB / 0.6123 GB, free: 34.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008115/1.67, allocations: 1.314 MB / 0.6136 GB, free: 33.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/1.674, allocations: 2.463 MB / 0.616 GB, free: 31.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005725/1.68, allocations: 318.1 kB / 0.6163 GB, free: 31.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.681, allocations: 331.8 kB / 0.6166 GB, free: 30.74 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.001125/1.682, allocations: 0.5149 MB / 0.6171 GB, free: 30.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006557/1.683, allocations: 280.3 kB / 0.6174 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/1.697, allocations: 4.856 MB / 0.6221 GB, free: 25.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-05/1.697, allocations: 47.98 kB / 0.6221 GB, free: 25.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/1.697, allocations: 0 / 0.6221 GB, free: 25.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.7e-05/1.697, allocations: 7.969 kB / 0.6222 GB, free: 25.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03094/1.728, allocations: 11.45 MB / 0.6333 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/1.728, allocations: 12 kB / 0.6333 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003593/1.732, allocations: 407.4 kB / 0.6337 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005151/1.737, allocations: 0.6073 MB / 0.6343 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005815/1.738, allocations: 55.92 kB / 0.6344 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/1.741, allocations: 2.065 MB / 0.6364 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/1.741, allocations: 19.89 kB / 0.6364 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/1.758, allocations: 7.66 MB / 0.6439 GB, free: 2.172 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009048/1.759, allocations: 333.3 kB / 0.6442 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/1.76, allocations: 47.09 kB / 0.6443 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002587/1.763, allocations: 131.7 kB / 0.6444 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005921/1.764, allocations: 165.6 kB / 0.6445 GB, free: 1.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/1.764, allocations: 71.98 kB / 0.6446 GB, free: 1.426 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003815/1.768, allocations: 1.686 MB / 0.6463 GB, free: 15.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.163e-06/1.768, allocations: 0 / 0.6463 GB, free: 15.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007295/1.775, allocations: 0.9932 MB / 0.6472 GB, free: 14.74 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.023/1.798, allocations: 10.62 MB / 0.6576 GB, free: 3.793 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.3026/2.101, allocations: 5.714 MB / 0.6632 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/2.101, allocations: 2.109 kB / 0.6632 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008264/2.109, allocations: 2.325 MB / 0.6655 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/2.113, allocations: 394.1 kB / 0.6658 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03987/2.153, allocations: 10.72 MB / 0.6763 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00952/2.162, allocations: 3.611 MB / 0.6798 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.009028/2.171, allocations: 2.065 MB / 0.6818 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004966/2.176, allocations: 1.945 MB / 0.6837 GB, free: 100.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/2.176, allocations: 0 / 0.6837 GB, free: 100.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/2.33, allocations: 70.05 MB / 0.7521 GB, free: 71.75 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/2.331, allocations: 179.6 kB / 0.7523 GB, free: 71.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.141/7.472, allocations: 3.391 kB / 0.7523 GB, free: 71.52 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