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 1.952/1.952, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.915e-05/3.927e-05, allocations: 8 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5651, allocations: 94.9 MB / 416.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.5655, allocations: 79.95 kB / 416.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7356/1.301, allocations: 97.91 MB / 0.5027 GB, free: 95.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.301, allocations: 0 / 0.5027 GB, free: 95.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003523/1.302, allocations: 87 kB / 0.5027 GB, free: 95.3 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.02744/1.329, allocations: 4.662 MB / 0.5073 GB, free: 93.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/1.329, allocations: 10.34 kB / 0.5073 GB, free: 93.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005506/1.335, allocations: 0.9435 MB / 0.5082 GB, free: 93.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02948/1.364, allocations: 3.626 MB / 0.5118 GB, free: 93.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02247/1.387, allocations: 4.901 MB / 0.5165 GB, free: 92.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007474/1.387, allocations: 375.3 kB / 0.5169 GB, free: 92.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003654/1.391, allocations: 0.4892 MB / 0.5174 GB, free: 92.47 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04083/1.432, allocations: 12.15 MB / 0.5292 GB, free: 90.94 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000497/1.433, allocations: 29.72 kB / 0.5293 GB, free: 90.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003286/1.436, allocations: 227.5 kB / 0.5295 GB, free: 90.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003004/1.439, allocations: 1.323 MB / 0.5308 GB, free: 90.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03462/1.474, allocations: 11.36 MB / 0.5419 GB, free: 89.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08958/1.563, allocations: 41.99 MB / 0.5829 GB, free: 64.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01617/1.579, allocations: 4.843 MB / 0.5876 GB, free: 60.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005228/1.585, allocations: 2.357 MB / 0.5899 GB, free: 58.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01709/1.602, allocations: 6.58 MB / 0.5963 GB, free: 52.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/1.602, allocations: 60.12 kB / 0.5964 GB, free: 52.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 6.983e-06/1.602, allocations: 0 / 0.5964 GB, free: 52.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.0752/1.677, allocations: 16.09 MB / 0.6121 GB, free: 38.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/1.677, allocations: 73.41 kB / 0.6122 GB, free: 38.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006755/1.684, allocations: 2.815 MB / 0.6149 GB, free: 36.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005897/1.685, allocations: 61.61 kB / 0.615 GB, free: 36.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002435/1.687, allocations: 3.269 MB / 0.6182 GB, free: 33.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001465/1.689, allocations: 0.9415 MB / 0.6191 GB, free: 32.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008855/1.69, allocations: 120 kB / 0.6192 GB, free: 32.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000599/1.69, allocations: 0.5723 MB / 0.6198 GB, free: 31.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006293/1.697, allocations: 2.411 MB / 0.6221 GB, free: 29.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008585/1.705, allocations: 5.774 MB / 0.6278 GB, free: 22.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008666/1.714, allocations: 3.769 MB / 0.6314 GB, free: 18.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/1.714, allocations: 32 kB / 0.6315 GB, free: 18.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03393/1.748, allocations: 9.882 MB / 0.6411 GB, free: 8.816 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.748, allocations: 56 kB / 0.6412 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/1.749, allocations: 120 kB / 0.6413 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01681/1.765, allocations: 2.35 MB / 0.6436 GB, free: 6.301 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008696/1.774, allocations: 1.357 MB / 0.6449 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0322/1.806, allocations: 10.61 MB / 0.6553 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00707/1.813, allocations: 330.3 kB / 0.6556 GB, free: 9.859 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001754/1.815, allocations: 359.9 kB / 0.6559 GB, free: 9.508 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.002816/1.818, allocations: 0.5536 MB / 0.6565 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.819, allocations: 304 kB / 0.6568 GB, free: 8.648 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01702/1.836, allocations: 4.583 MB / 0.6612 GB, free: 4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001309/1.837, allocations: 50.88 kB / 0.6613 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/1.837, allocations: 0 / 0.6613 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.08e-05/1.837, allocations: 11.95 kB / 0.6613 GB, free: 3.941 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3534/2.19, allocations: 10.79 MB / 0.6718 GB, free: 98.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.321e-05/2.19, allocations: 6.969 kB / 0.6718 GB, free: 98.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004206/2.194, allocations: 416.2 kB / 0.6722 GB, free: 98.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004081/2.199, allocations: 0.6916 MB / 0.6729 GB, free: 98.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006609/2.199, allocations: 55.55 kB / 0.673 GB, free: 98.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004699/2.204, allocations: 2.41 MB / 0.6753 GB, free: 97.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/2.204, allocations: 4.844 kB / 0.6753 GB, free: 97.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02055/2.225, allocations: 7.404 MB / 0.6826 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/2.226, allocations: 350.1 kB / 0.6829 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001515/2.228, allocations: 42.78 kB / 0.6829 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003604/2.231, allocations: 143.3 kB / 0.6831 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/2.232, allocations: 138.4 kB / 0.6832 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005228/2.233, allocations: 74.12 kB / 0.6833 GB, free: 96.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005567/2.238, allocations: 1.899 MB / 0.6851 GB, free: 96.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.433e-06/2.238, allocations: 2 kB / 0.6851 GB, free: 96.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00771/2.246, allocations: 1.136 MB / 0.6862 GB, free: 96.46 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.01884/2.265, allocations: 9.015 MB / 0.695 GB, free: 94.18 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.015/2.28, allocations: 6.049 MB / 0.7009 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/2.28, allocations: 3.719 kB / 0.7009 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007682/2.288, allocations: 2.506 MB / 0.7034 GB, free: 93.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/2.292, allocations: 419.2 kB / 0.7038 GB, free: 93.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03932/2.331, allocations: 11.62 MB / 0.7151 GB, free: 89.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009229/2.34, allocations: 3.877 MB / 0.7189 GB, free: 88.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005767/2.346, allocations: 2.184 MB / 0.7211 GB, free: 86.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.974e-06/2.346, allocations: 0 / 0.7211 GB, free: 86.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.937/7.283, allocations: 142.2 MB / 0.8599 GB, free: 95.51 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