Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.421/2.421, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.978e-05/3.984e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4029, allocations: 54.86 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1819/0.5849, allocations: 97.9 MB / 457.8 MB, free: 14.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.5852, allocations: 75.97 kB / 457.8 MB, free: 14.88 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7266/1.312, allocations: 90.95 MB / 0.5359 GB, free: 104.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.915e-06/1.312, allocations: 0 / 0.5359 GB, free: 104.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003069/1.312, allocations: 85.11 kB / 0.536 GB, free: 104.4 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02466/1.337, allocations: 4.301 MB / 0.5402 GB, free: 102.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/1.337, allocations: 9.219 kB / 0.5402 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004684/1.342, allocations: 0.8703 MB / 0.5411 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02828/1.37, allocations: 3.572 MB / 0.5445 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.39, allocations: 4.705 MB / 0.5491 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004828/1.391, allocations: 339 kB / 0.5495 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003082/1.394, allocations: 449.8 kB / 0.5499 GB, free: 101.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03494/1.429, allocations: 11.36 MB / 0.561 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002484/1.429, allocations: 21.56 kB / 0.561 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002657/1.432, allocations: 196 kB / 0.5612 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/1.435, allocations: 1.251 MB / 0.5624 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/1.466, allocations: 10.82 MB / 0.573 GB, free: 97.73 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07565/1.541, allocations: 38.02 MB / 0.6101 GB, free: 72.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01332/1.555, allocations: 4.635 MB / 0.6146 GB, free: 68.15 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004556/1.559, allocations: 2.223 MB / 0.6168 GB, free: 66.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001483/1.561, allocations: 1.317 MB / 0.6181 GB, free: 64.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/1.561, allocations: 52.56 kB / 0.6181 GB, free: 64.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 6.482e-06/1.561, allocations: 0 / 0.6181 GB, free: 64.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.05693/1.618, allocations: 11.28 MB / 0.6292 GB, free: 55.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/1.618, allocations: 73.41 kB / 0.6292 GB, free: 55.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004688/1.623, allocations: 2.479 MB / 0.6316 GB, free: 53.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005571/1.623, allocations: 65.64 kB / 0.6317 GB, free: 53.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/1.625, allocations: 2.946 MB / 0.6346 GB, free: 50.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/1.627, allocations: 0.9472 MB / 0.6355 GB, free: 49.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005272/1.627, allocations: 108 kB / 0.6356 GB, free: 49.15 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003573/1.627, allocations: 0.5586 MB / 0.6362 GB, free: 48.58 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005128/1.633, allocations: 2.229 MB / 0.6383 GB, free: 46.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007308/1.64, allocations: 5.328 MB / 0.6435 GB, free: 39.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007491/1.647, allocations: 3.499 MB / 0.647 GB, free: 35.98 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.586e-05/1.648, allocations: 36 kB / 0.647 GB, free: 35.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02383/1.671, allocations: 7.922 MB / 0.6547 GB, free: 28.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/1.672, allocations: 56.25 kB / 0.6548 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.672, allocations: 108 kB / 0.6549 GB, free: 27.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006356/1.678, allocations: 1.036 MB / 0.6559 GB, free: 26.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008242/1.686, allocations: 1.31 MB / 0.6572 GB, free: 25.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/1.69, allocations: 2.478 MB / 0.6596 GB, free: 22.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005913/1.696, allocations: 311.7 kB / 0.6599 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001332/1.698, allocations: 331.9 kB / 0.6602 GB, free: 22.25 MB / 458.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.001919/1.7, allocations: 0.516 MB / 0.6607 GB, free: 21.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006972/1.7, allocations: 280.3 kB / 0.661 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0157/1.716, allocations: 4.85 MB / 0.6657 GB, free: 16.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/1.716, allocations: 47.98 kB / 0.6658 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/1.716, allocations: 7.953 kB / 0.6658 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.816e-05/1.716, allocations: 11.97 kB / 0.6658 GB, free: 16.46 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03336/1.75, allocations: 11.44 MB / 0.6769 GB, free: 4.891 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-05/1.75, allocations: 11.95 kB / 0.677 GB, free: 4.879 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003712/1.754, allocations: 412.2 kB / 0.6774 GB, free: 4.477 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005203/1.759, allocations: 0.611 MB / 0.678 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005743/1.759, allocations: 59.89 kB / 0.678 GB, free: 3.801 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00308/1.763, allocations: 2.065 MB / 0.68 GB, free: 1.605 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.317e-06/1.763, allocations: 12.06 kB / 0.68 GB, free: 1.594 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02001/1.783, allocations: 7.655 MB / 0.6875 GB, free: 9.551 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.784, allocations: 329.3 kB / 0.6878 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.785, allocations: 51.91 kB / 0.6879 GB, free: 9.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00276/1.788, allocations: 127.9 kB / 0.688 GB, free: 9.035 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006179/1.788, allocations: 172.9 kB / 0.6882 GB, free: 8.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002705/1.788, allocations: 71.98 kB / 0.6882 GB, free: 8.805 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004516/1.793, allocations: 1.69 MB / 0.6899 GB, free: 7.105 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.793, allocations: 0 / 0.6899 GB, free: 7.105 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007035/1.8, allocations: 0.9957 MB / 0.6909 GB, free: 6.113 MB / 474.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.3502/2.15, allocations: 10.61 MB / 0.7012 GB, free: 106.7 MB / 474.7 MB [/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 $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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01597/2.166, allocations: 5.715 MB / 0.7068 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/2.166, allocations: 1.281 kB / 0.7068 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0075/2.174, allocations: 2.334 MB / 0.7091 GB, free: 106.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003591/2.178, allocations: 385.8 kB / 0.7094 GB, free: 106.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03804/2.216, allocations: 11.23 MB / 0.7204 GB, free: 104.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007904/2.224, allocations: 3.616 MB / 0.7239 GB, free: 103.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004874/2.229, allocations: 1.991 MB / 0.7259 GB, free: 103.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.593e-06/2.229, allocations: 0 / 0.7259 GB, free: 103.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.509/6.737, allocations: 138.9 MB / 0.8615 GB, free: 15.72 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat