Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.028/2.028, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.338e-05/4.343e-05, allocations: 3.984 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4927/0.6101, allocations: 94.91 MB / 416.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.6106, allocations: 78.64 kB / 416.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6946/1.305, allocations: 97.89 MB / 0.5027 GB, free: 95.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.305, allocations: 0 / 0.5027 GB, free: 95.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002598/1.305, allocations: 88.45 kB / 0.5028 GB, free: 95.47 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.02643/1.332, allocations: 4.667 MB / 0.5073 GB, free: 93.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/1.332, allocations: 9.719 kB / 0.5073 GB, free: 93.63 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005402/1.337, allocations: 0.9431 MB / 0.5082 GB, free: 93.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02873/1.366, allocations: 3.625 MB / 0.5118 GB, free: 93.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02072/1.387, allocations: 4.902 MB / 0.5166 GB, free: 92.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006996/1.388, allocations: 377.3 kB / 0.5169 GB, free: 92.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003587/1.391, allocations: 0.4933 MB / 0.5174 GB, free: 92.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04023/1.432, allocations: 12.08 MB / 0.5292 GB, free: 91.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003288/1.432, allocations: 39.47 kB / 0.5293 GB, free: 91.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00306/1.435, allocations: 227.2 kB / 0.5295 GB, free: 91.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002902/1.438, allocations: 1.316 MB / 0.5308 GB, free: 91.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03253/1.471, allocations: 11.23 MB / 0.5417 GB, free: 90.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08251/1.553, allocations: 41.99 MB / 0.5827 GB, free: 64.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01544/1.569, allocations: 4.824 MB / 0.5874 GB, free: 60.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004807/1.573, allocations: 2.358 MB / 0.5897 GB, free: 58.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.588, allocations: 6.574 MB / 0.5962 GB, free: 52.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/1.588, allocations: 56.5 kB / 0.5962 GB, free: 52.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 7.133e-06/1.588, allocations: 0 / 0.5962 GB, free: 52.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.07065/1.659, allocations: 16.08 MB / 0.6119 GB, free: 39.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/1.659, allocations: 77.11 kB / 0.612 GB, free: 39.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005561/1.665, allocations: 2.815 MB / 0.6147 GB, free: 36.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005552/1.665, allocations: 57.7 kB / 0.6148 GB, free: 36.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002229/1.668, allocations: 3.277 MB / 0.618 GB, free: 33.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001365/1.669, allocations: 0.9396 MB / 0.6189 GB, free: 32.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006615/1.67, allocations: 120 kB / 0.619 GB, free: 32.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004122/1.67, allocations: 0.5782 MB / 0.6196 GB, free: 32.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005756/1.676, allocations: 2.407 MB / 0.6219 GB, free: 29.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00798/1.684, allocations: 5.732 MB / 0.6275 GB, free: 22.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00824/1.692, allocations: 3.777 MB / 0.6312 GB, free: 18.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/1.692, allocations: 32 kB / 0.6313 GB, free: 18.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03281/1.725, allocations: 9.544 MB / 0.6406 GB, free: 9.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/1.725, allocations: 59.98 kB / 0.6406 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001562/1.726, allocations: 120 kB / 0.6407 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01628/1.742, allocations: 2.346 MB / 0.643 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008527/1.75, allocations: 1.365 MB / 0.6444 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02951/1.78, allocations: 10.61 MB / 0.6547 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006968/1.787, allocations: 335.5 kB / 0.6551 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/1.789, allocations: 359.9 kB / 0.6554 GB, free: 10.05 MB / 442.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.00251/1.791, allocations: 0.5504 MB / 0.6559 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009067/1.792, allocations: 300.1 kB / 0.6562 GB, free: 9.195 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/1.808, allocations: 4.593 MB / 0.6607 GB, free: 4.543 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001318/1.808, allocations: 51.27 kB / 0.6608 GB, free: 4.496 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/1.808, allocations: 4 kB / 0.6608 GB, free: 4.492 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.273e-05/1.808, allocations: 11.97 kB / 0.6608 GB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3418/2.15, allocations: 10.77 MB / 0.6713 GB, free: 98.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.364e-05/2.15, allocations: 3.625 kB / 0.6713 GB, free: 98.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004077/2.154, allocations: 422.2 kB / 0.6717 GB, free: 98.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003862/2.158, allocations: 0.6898 MB / 0.6724 GB, free: 98.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005915/2.158, allocations: 54.12 kB / 0.6724 GB, free: 98.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004469/2.163, allocations: 2.414 MB / 0.6748 GB, free: 97.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/2.163, allocations: 5.031 kB / 0.6748 GB, free: 97.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01882/2.182, allocations: 7.391 MB / 0.682 GB, free: 96.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/2.183, allocations: 363.5 kB / 0.6823 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/2.184, allocations: 42.55 kB / 0.6824 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/2.187, allocations: 142.4 kB / 0.6825 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006383/2.188, allocations: 137.5 kB / 0.6827 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/2.188, allocations: 75.48 kB / 0.6827 GB, free: 96.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004999/2.193, allocations: 1.902 MB / 0.6846 GB, free: 96.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.193, allocations: 0 / 0.6846 GB, free: 96.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00735/2.201, allocations: 1.134 MB / 0.6857 GB, free: 96.3 MB / 442.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.01767/2.218, allocations: 9.008 MB / 0.6945 GB, free: 94.02 MB / 442.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.01432/2.233, allocations: 5.86 MB / 0.7002 GB, free: 93.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/2.233, allocations: 1.969 kB / 0.7002 GB, free: 93.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007264/2.24, allocations: 2.491 MB / 0.7026 GB, free: 93.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/2.244, allocations: 418.4 kB / 0.703 GB, free: 93.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03621/2.28, allocations: 11.61 MB / 0.7144 GB, free: 89.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008492/2.289, allocations: 3.875 MB / 0.7182 GB, free: 88.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005376/2.294, allocations: 2.178 MB / 0.7203 GB, free: 86.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.824e-06/2.294, allocations: 0 / 0.7203 GB, free: 86.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.987/7.281, allocations: 141.3 MB / 0.8583 GB, free: 93.93 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat