Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.019e-05/4.04e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4177, allocations: 54.86 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.6025, allocations: 101.6 MB / 461.5 MB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.6028, allocations: 75.97 kB / 461.6 MB, free: 11.13 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7191/1.322, allocations: 97.92 MB / 0.5464 GB, free: 104.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.322, allocations: 0.75 kB / 0.5464 GB, free: 104.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002611/1.322, allocations: 90.94 kB / 0.5465 GB, free: 104.2 MB / 458.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.02522/1.347, allocations: 4.655 MB / 0.551 GB, free: 102.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/1.348, allocations: 15.41 kB / 0.551 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005566/1.353, allocations: 0.948 MB / 0.5519 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02767/1.381, allocations: 3.622 MB / 0.5555 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01917/1.4, allocations: 4.901 MB / 0.5603 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005232/1.401, allocations: 376.1 kB / 0.5606 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003247/1.404, allocations: 0.4887 MB / 0.5611 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03763/1.442, allocations: 12.08 MB / 0.5729 GB, free: 98.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000322/1.442, allocations: 41.64 kB / 0.5729 GB, free: 98.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002971/1.445, allocations: 232.2 kB / 0.5732 GB, free: 98.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/1.448, allocations: 1.315 MB / 0.5745 GB, free: 97.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/1.481, allocations: 11.24 MB / 0.5854 GB, free: 94.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0852/1.567, allocations: 41.98 MB / 0.6264 GB, free: 59.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01579/1.582, allocations: 4.812 MB / 0.6311 GB, free: 54.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005146/1.588, allocations: 2.358 MB / 0.6334 GB, free: 52.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01625/1.604, allocations: 6.586 MB / 0.6399 GB, free: 45.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/1.604, allocations: 56.55 kB / 0.6399 GB, free: 45.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=231): time 7.013e-06/1.604, allocations: 0 / 0.6399 GB, free: 45.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.07298/1.677, allocations: 16.08 MB / 0.6556 GB, free: 29.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/1.677, allocations: 73.41 kB / 0.6557 GB, free: 29.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005839/1.683, allocations: 2.809 MB / 0.6584 GB, free: 26.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005438/1.684, allocations: 61.7 kB / 0.6585 GB, free: 26.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002314/1.686, allocations: 3.278 MB / 0.6617 GB, free: 22.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001394/1.687, allocations: 0.9398 MB / 0.6626 GB, free: 22.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007273/1.688, allocations: 120 kB / 0.6627 GB, free: 21.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000508/1.689, allocations: 0.5752 MB / 0.6633 GB, free: 21.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005955/1.695, allocations: 2.41 MB / 0.6656 GB, free: 18.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008293/1.703, allocations: 5.74 MB / 0.6712 GB, free: 11.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008255/1.711, allocations: 3.769 MB / 0.6749 GB, free: 7.766 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/1.711, allocations: 39.95 kB / 0.675 GB, free: 7.727 MB / 458.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.0342/1.746, allocations: 9.556 MB / 0.6843 GB, free: 14.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/1.746, allocations: 55.94 kB / 0.6843 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002146/1.746, allocations: 120 kB / 0.6845 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01737/1.763, allocations: 2.335 MB / 0.6867 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008861/1.772, allocations: 1.357 MB / 0.6881 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3584/2.131, allocations: 10.63 MB / 0.6984 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006707/2.138, allocations: 330.1 kB / 0.6988 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001655/2.139, allocations: 356.8 kB / 0.6991 GB, free: 102.9 MB / 474.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.002359/2.142, allocations: 0.5374 MB / 0.6996 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008468/2.143, allocations: 306.1 kB / 0.6999 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/2.159, allocations: 4.593 MB / 0.7044 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001386/2.16, allocations: 46.27 kB / 0.7044 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.781e-05/2.16, allocations: 5.375 kB / 0.7044 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.347e-05/2.16, allocations: 12.05 kB / 0.7045 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0371/2.197, allocations: 10.77 MB / 0.715 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.153e-05/2.197, allocations: 4.25 kB / 0.715 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004045/2.201, allocations: 418 kB / 0.7154 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003834/2.205, allocations: 0.6938 MB / 0.7161 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006354/2.205, allocations: 53.62 kB / 0.7161 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004117/2.21, allocations: 2.412 MB / 0.7185 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.756e-06/2.21, allocations: 10.14 kB / 0.7185 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01702/2.227, allocations: 7.393 MB / 0.7257 GB, free: 99.85 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/2.228, allocations: 350 kB / 0.726 GB, free: 99.76 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/2.229, allocations: 51.56 kB / 0.7261 GB, free: 99.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00311/2.232, allocations: 139.7 kB / 0.7262 GB, free: 99.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006585/2.233, allocations: 141.9 kB / 0.7263 GB, free: 99.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/2.233, allocations: 73.88 kB / 0.7264 GB, free: 99.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004913/2.238, allocations: 1.899 MB / 0.7283 GB, free: 99.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.12e-07/2.238, allocations: 0 / 0.7283 GB, free: 99.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007779/2.246, allocations: 1.132 MB / 0.7294 GB, free: 98.95 MB / 474.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.01789/2.264, allocations: 9.001 MB / 0.7382 GB, free: 94.54 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960: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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.01428/2.278, allocations: 5.872 MB / 0.7439 GB, free: 92.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/2.278, allocations: 1.406 kB / 0.7439 GB, free: 92.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007104/2.285, allocations: 2.485 MB / 0.7463 GB, free: 91.91 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003666/2.289, allocations: 418.2 kB / 0.7467 GB, free: 91.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03651/2.326, allocations: 11.61 MB / 0.7581 GB, free: 87.65 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01219/2.338, allocations: 3.873 MB / 0.7619 GB, free: 86.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007465/2.345, allocations: 2.175 MB / 0.764 GB, free: 84.49 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/2.346, allocations: 2.625 kB / 0.764 GB, free: 84.49 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.376/7.722, allocations: 141.3 MB / 0.902 GB, free: 117.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat