Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.999/1.999, allocations: 209.3 MB / 221.9 MB, free: 1.852 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.001e-05/4.022e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1142, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.5559, allocations: 91.15 MB / 413 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003851/0.5564, allocations: 79.95 kB / 413.1 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4293/0.9856, allocations: 90.94 MB / 0.4922 GB, free: 3.043 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.9857, allocations: 0 / 0.4922 GB, free: 3.043 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002173/0.9859, allocations: 76 kB / 0.4923 GB, free: 2.969 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.3385/1.324, allocations: 4.3 MB / 0.4965 GB, free: 96.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/1.324, allocations: 10.19 kB / 0.4965 GB, free: 96.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004533/1.329, allocations: 0.8649 MB / 0.4973 GB, free: 96.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02896/1.358, allocations: 3.581 MB / 0.5008 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.379, allocations: 4.7 MB / 0.5054 GB, free: 96.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005732/1.379, allocations: 337 kB / 0.5057 GB, free: 96.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003257/1.383, allocations: 446.2 kB / 0.5061 GB, free: 96.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03857/1.421, allocations: 11.39 MB / 0.5173 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/1.422, allocations: 27.03 kB / 0.5173 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/1.424, allocations: 209.7 kB / 0.5175 GB, free: 94.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002779/1.427, allocations: 1.249 MB / 0.5187 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03174/1.459, allocations: 10.94 MB / 0.5294 GB, free: 94.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08389/1.543, allocations: 38.03 MB / 0.5665 GB, free: 72.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/1.557, allocations: 4.654 MB / 0.5711 GB, free: 70.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00468/1.561, allocations: 2.216 MB / 0.5733 GB, free: 69.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001602/1.563, allocations: 1.321 MB / 0.5745 GB, free: 68.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/1.563, allocations: 54.88 kB / 0.5746 GB, free: 68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 6.803e-06/1.563, allocations: 0 / 0.5746 GB, free: 68 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.05676/1.62, allocations: 11.28 MB / 0.5856 GB, free: 60.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/1.62, allocations: 73.41 kB / 0.5857 GB, free: 60.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005132/1.625, allocations: 2.491 MB / 0.5881 GB, free: 58.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005398/1.626, allocations: 54.64 kB / 0.5882 GB, free: 58.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/1.628, allocations: 2.95 MB / 0.591 GB, free: 55.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001366/1.629, allocations: 0.947 MB / 0.592 GB, free: 54.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006204/1.63, allocations: 112 kB / 0.5921 GB, free: 54.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003985/1.63, allocations: 0.5542 MB / 0.5926 GB, free: 53.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005338/1.636, allocations: 2.227 MB / 0.5948 GB, free: 51.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007614/1.643, allocations: 5.366 MB / 0.6 GB, free: 45.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007681/1.651, allocations: 3.51 MB / 0.6035 GB, free: 42.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/1.651, allocations: 35.95 kB / 0.6035 GB, free: 42.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02307/1.674, allocations: 8.231 MB / 0.6115 GB, free: 35.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/1.674, allocations: 48 kB / 0.6116 GB, free: 35.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/1.675, allocations: 112 kB / 0.6117 GB, free: 35.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006359/1.681, allocations: 1.029 MB / 0.6127 GB, free: 34.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008203/1.689, allocations: 1.314 MB / 0.614 GB, free: 33.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00387/1.693, allocations: 2.463 MB / 0.6164 GB, free: 31.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006055/1.699, allocations: 317.3 kB / 0.6167 GB, free: 30.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/1.701, allocations: 335.1 kB / 0.617 GB, free: 30.46 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.001307/1.702, allocations: 0.5195 MB / 0.6175 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007079/1.703, allocations: 280.3 kB / 0.6178 GB, free: 29.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/1.718, allocations: 4.847 MB / 0.6225 GB, free: 25.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/1.718, allocations: 47.98 kB / 0.6226 GB, free: 25.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/1.718, allocations: 4 kB / 0.6226 GB, free: 25.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.013e-05/1.718, allocations: 11.95 kB / 0.6226 GB, free: 25.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03145/1.749, allocations: 11.46 MB / 0.6338 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-05/1.749, allocations: 16.06 kB / 0.6338 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003549/1.753, allocations: 415.3 kB / 0.6342 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005191/1.758, allocations: 0.611 MB / 0.6348 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005924/1.759, allocations: 51.98 kB / 0.6348 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/1.762, allocations: 2.071 MB / 0.6368 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/1.762, allocations: 19.89 kB / 0.6369 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01885/1.781, allocations: 7.656 MB / 0.6443 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.782, allocations: 329.3 kB / 0.6446 GB, free: 1.738 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.784, allocations: 55.98 kB / 0.6447 GB, free: 1.684 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004161/1.788, allocations: 119.8 kB / 0.6448 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001042/1.789, allocations: 165.6 kB / 0.645 GB, free: 1.402 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004232/1.789, allocations: 75.81 kB / 0.645 GB, free: 1.332 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006375/1.796, allocations: 1.686 MB / 0.6467 GB, free: 15.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.542e-06/1.796, allocations: 0 / 0.6467 GB, free: 15.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009765/1.806, allocations: 0.9922 MB / 0.6477 GB, free: 14.65 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.02299/1.829, allocations: 10.61 MB / 0.658 GB, free: 3.695 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.3037/2.132, allocations: 5.891 MB / 0.6638 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/2.132, allocations: 1.25 kB / 0.6638 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007723/2.14, allocations: 2.357 MB / 0.6661 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003671/2.144, allocations: 394.5 kB / 0.6665 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0392/2.183, allocations: 11.26 MB / 0.6775 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009602/2.193, allocations: 3.621 MB / 0.681 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005421/2.198, allocations: 1.99 MB / 0.6829 GB, free: 100.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/2.198, allocations: 0 / 0.6829 GB, free: 100.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.512/6.71, allocations: 139.7 MB / 0.8194 GB, free: 5.211 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat