Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.138/2.138, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.845e-05/4.858e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.116, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5533/0.6694, allocations: 94.9 MB / 416.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004055/0.6699, allocations: 79.95 kB / 416.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.732/1.402, allocations: 97.9 MB / 0.5027 GB, free: 96.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.402, allocations: 7 kB / 0.5027 GB, free: 96.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002813/1.402, allocations: 92.3 kB / 0.5028 GB, free: 96.14 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02697/1.429, allocations: 4.655 MB / 0.5073 GB, free: 94.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/1.429, allocations: 8.719 kB / 0.5073 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005368/1.435, allocations: 0.95 MB / 0.5083 GB, free: 94.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02849/1.463, allocations: 3.619 MB / 0.5118 GB, free: 93.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02091/1.484, allocations: 4.9 MB / 0.5166 GB, free: 93.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007204/1.485, allocations: 377.2 kB / 0.5169 GB, free: 93.31 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003605/1.489, allocations: 0.492 MB / 0.5174 GB, free: 93.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05236/1.541, allocations: 12.14 MB / 0.5293 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004396/1.542, allocations: 39.88 kB / 0.5293 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003662/1.545, allocations: 222.8 kB / 0.5295 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004129/1.549, allocations: 1.316 MB / 0.5308 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03444/1.584, allocations: 11.37 MB / 0.5419 GB, free: 90.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08346/1.667, allocations: 41.99 MB / 0.5829 GB, free: 64.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01568/1.683, allocations: 4.835 MB / 0.5876 GB, free: 60.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004916/1.688, allocations: 2.367 MB / 0.5899 GB, free: 58.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01518/1.703, allocations: 6.577 MB / 0.5964 GB, free: 52.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/1.704, allocations: 55.06 kB / 0.5964 GB, free: 52.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 7.354e-06/1.704, allocations: 0 / 0.5964 GB, free: 52.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.07357/1.777, allocations: 16.09 MB / 0.6121 GB, free: 38.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/1.777, allocations: 69.41 kB / 0.6122 GB, free: 38.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005863/1.783, allocations: 2.818 MB / 0.615 GB, free: 36.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005557/1.784, allocations: 61.53 kB / 0.615 GB, free: 36.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002414/1.786, allocations: 3.283 MB / 0.6182 GB, free: 33.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001422/1.788, allocations: 0.9391 MB / 0.6191 GB, free: 32.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007054/1.788, allocations: 124 kB / 0.6193 GB, free: 32.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004861/1.789, allocations: 0.5677 MB / 0.6198 GB, free: 31.94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006575/1.795, allocations: 2.409 MB / 0.6222 GB, free: 29.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008381/1.804, allocations: 5.775 MB / 0.6278 GB, free: 22.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.814, allocations: 3.762 MB / 0.6315 GB, free: 18.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/1.814, allocations: 39.94 kB / 0.6315 GB, free: 18.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.05333/1.868, allocations: 9.959 MB / 0.6412 GB, free: 8.652 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/1.868, allocations: 56 kB / 0.6413 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002328/1.868, allocations: 116 kB / 0.6414 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02639/1.895, allocations: 2.35 MB / 0.6437 GB, free: 6.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01394/1.909, allocations: 1.353 MB / 0.645 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3958/2.304, allocations: 10.59 MB / 0.6554 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/2.315, allocations: 332.3 kB / 0.6557 GB, free: 81.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/2.317, allocations: 356.6 kB / 0.656 GB, free: 81.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (733): * Single equations (assignments): 725 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.003394/2.32, allocations: 0.5497 MB / 0.6565 GB, free: 81.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/2.322, allocations: 305.9 kB / 0.6568 GB, free: 81.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02336/2.346, allocations: 4.589 MB / 0.6613 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001826/2.346, allocations: 48.16 kB / 0.6614 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.02e-05/2.346, allocations: 1.188 kB / 0.6614 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.619e-05/2.346, allocations: 12.14 kB / 0.6614 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03447/2.381, allocations: 10.81 MB / 0.6719 GB, free: 80.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.762e-05/2.381, allocations: 7.562 kB / 0.6719 GB, free: 80.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00397/2.385, allocations: 421.6 kB / 0.6723 GB, free: 80.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003592/2.388, allocations: 0.6846 MB / 0.673 GB, free: 80.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006551/2.389, allocations: 61.92 kB / 0.6731 GB, free: 80.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003918/2.393, allocations: 2.405 MB / 0.6754 GB, free: 78.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/2.393, allocations: 7.422 kB / 0.6754 GB, free: 78.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/2.409, allocations: 7.391 MB / 0.6826 GB, free: 78.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/2.411, allocations: 359.4 kB / 0.683 GB, free: 78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001376/2.412, allocations: 50.59 kB / 0.683 GB, free: 78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/2.415, allocations: 140.3 kB / 0.6832 GB, free: 78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007592/2.416, allocations: 140.2 kB / 0.6833 GB, free: 78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002668/2.416, allocations: 75.09 kB / 0.6834 GB, free: 78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004482/2.421, allocations: 1.9 MB / 0.6852 GB, free: 77.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.421, allocations: 0 / 0.6852 GB, free: 77.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007265/2.428, allocations: 1.133 MB / 0.6863 GB, free: 77.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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.01773/2.446, allocations: 9.025 MB / 0.6952 GB, free: 72.75 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1990:5-1992:161:writable] Warning: Variable freeMotionScalarInit.angle_3 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 freeMotionScalarInit.angle_1 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:1987:5-1989:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01496/2.461, allocations: 6.056 MB / 0.7011 GB, free: 70.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/2.461, allocations: 0 / 0.7011 GB, free: 70.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007326/2.468, allocations: 2.503 MB / 0.7035 GB, free: 70.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003753/2.472, allocations: 414.8 kB / 0.7039 GB, free: 69.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0346/2.507, allocations: 11.08 MB / 0.7147 GB, free: 66.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008297/2.515, allocations: 3.874 MB / 0.7185 GB, free: 64.72 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009492/2.525, allocations: 2.062 MB / 0.7205 GB, free: 64.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005181/2.53, allocations: 2.126 MB / 0.7226 GB, free: 62.93 MB / 426.7 MB Notification: Performance of SimCode: time 2.996e-06/2.53, allocations: 0 / 0.7226 GB, free: 62.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1817/2.712, allocations: 82.29 MB / 0.803 GB, free: 7.773 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003262/2.712, allocations: 195.7 kB / 0.8031 GB, free: 7.543 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.615/8.327, allocations: 0 / 0.8031 GB, free: 7.543 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat