Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.833/2.833, allocations: 235.1 MB / 242.3 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.143e-05, allocations: 4 kB / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4027/0.4028, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2257/0.6285, allocations: 97.22 MB / 451.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.6289, allocations: 75.97 kB / 451.7 MB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7548/1.384, allocations: 89.36 MB / 0.5284 GB, free: 35.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.568e-06/1.384, allocations: 3.938 kB / 0.5284 GB, free: 35.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002707/1.384, allocations: 87.94 kB / 0.5285 GB, free: 35.39 MB / 394.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.03175/1.416, allocations: 4.294 MB / 0.5327 GB, free: 31.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/1.416, allocations: 8.031 kB / 0.5327 GB, free: 31.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04757/1.464, allocations: 3.578 MB / 0.5362 GB, free: 27.44 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0328/1.496, allocations: 4.686 MB / 0.5408 GB, free: 22.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004674/1.497, allocations: 144 kB / 0.5409 GB, free: 22.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003939/1.501, allocations: 263.9 kB / 0.5412 GB, free: 22.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03211/1.533, allocations: 7.925 MB / 0.5489 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/1.576, allocations: 10.37 MB / 0.559 GB, free: 3.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000527/1.577, allocations: 27.72 kB / 0.5591 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002801/1.579, allocations: 16 kB / 0.5591 GB, free: 3.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003075/1.583, allocations: 1.251 MB / 0.5603 GB, free: 2.219 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09813/1.681, allocations: 35.36 MB / 0.5948 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009743/1.691, allocations: 4.097 MB / 0.5988 GB, free: 9.926 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006053/1.697, allocations: 2.166 MB / 0.6009 GB, free: 7.758 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002293/1.699, allocations: 1.323 MB / 0.6022 GB, free: 6.211 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.882e-05/1.699, allocations: 56.56 kB / 0.6023 GB, free: 6.148 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 6.943e-06/1.699, allocations: 3.938 kB / 0.6023 GB, free: 6.145 MB / 442.7 MB Notification: Performance of matching and sorting (n=258): time 0.05434/1.753, allocations: 10.5 MB / 0.6125 GB, free: 11.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/1.754, allocations: 77.34 kB / 0.6126 GB, free: 11.51 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00963/1.763, allocations: 2.396 MB / 0.615 GB, free: 9.102 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008184/1.764, allocations: 29.7 kB / 0.615 GB, free: 9.066 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005444/1.77, allocations: 3.041 MB / 0.618 GB, free: 5.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002497/1.772, allocations: 0.9248 MB / 0.6189 GB, free: 5.043 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00087/1.773, allocations: 4 kB / 0.6189 GB, free: 5.039 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009436/1.774, allocations: 0.5625 MB / 0.6194 GB, free: 4.469 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01027/1.784, allocations: 2.199 MB / 0.6216 GB, free: 2.266 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4069/2.191, allocations: 5.563 MB / 0.627 GB, free: 106 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/2.202, allocations: 3.549 MB / 0.6305 GB, free: 106 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002766/2.203, allocations: 35.5 kB / 0.6305 GB, free: 106 MB / 458.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02827/2.231, allocations: 7.895 MB / 0.6382 GB, free: 105.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/2.231, allocations: 57.34 kB / 0.6383 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/2.231, allocations: 122.3 kB / 0.6384 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007883/2.239, allocations: 1.03 MB / 0.6394 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01051/2.25, allocations: 1.401 MB / 0.6407 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/2.254, allocations: 2.393 MB / 0.6431 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007176/2.261, allocations: 210 kB / 0.6433 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001745/2.263, allocations: 356.4 kB / 0.6436 GB, free: 104.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * 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 (757): * Single equations (assignments): 748 * 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.002462/2.266, allocations: 412.3 kB / 0.644 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0159/2.282, allocations: 4.205 MB / 0.6481 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/2.283, allocations: 283.3 kB / 0.6484 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01767/2.301, allocations: 4.728 MB / 0.653 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001327/2.301, allocations: 48.97 kB / 0.6531 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/2.301, allocations: 0 / 0.6531 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-05/2.301, allocations: 10.08 kB / 0.6531 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03797/2.339, allocations: 10.3 MB / 0.6631 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.842e-05/2.339, allocations: 10.47 kB / 0.6631 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005608/2.345, allocations: 417.1 kB / 0.6635 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008423/2.353, allocations: 0.5894 MB / 0.6641 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007084/2.354, allocations: 36.58 kB / 0.6641 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/2.359, allocations: 2.019 MB / 0.6661 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.541e-05/2.359, allocations: 13.47 kB / 0.6661 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02924/2.388, allocations: 7.596 MB / 0.6735 GB, free: 96.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/2.39, allocations: 338.2 kB / 0.6739 GB, free: 96.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/2.391, allocations: 14.98 kB / 0.6739 GB, free: 96.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004112/2.395, allocations: 99.98 kB / 0.674 GB, free: 96.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009947/2.396, allocations: 157 kB / 0.6741 GB, free: 96.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004681/2.397, allocations: 75.66 kB / 0.6742 GB, free: 96.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0057/2.402, allocations: 1.573 MB / 0.6757 GB, free: 95.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.203e-06/2.402, allocations: 2.719 kB / 0.6757 GB, free: 95.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008704/2.411, allocations: 0.8663 MB / 0.6766 GB, free: 95.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (209): * Single equations (assignments): 200 * 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.02226/2.433, allocations: 10.65 MB / 0.687 GB, free: 86.62 MB / 458.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/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/hudson/slave/workspace/OpenModelica_TEST_LIBS/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.01691/2.45, allocations: 5.748 MB / 0.6926 GB, free: 81.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/2.45, allocations: 0 / 0.6926 GB, free: 81.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007575/2.458, allocations: 2.308 MB / 0.6949 GB, free: 79.36 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/2.461, allocations: 288.4 kB / 0.6951 GB, free: 79.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03677/2.498, allocations: 10.56 MB / 0.7054 GB, free: 69.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008693/2.507, allocations: 3.596 MB / 0.7089 GB, free: 67.08 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01089/2.518, allocations: 2.187 MB / 0.7111 GB, free: 65.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005319/2.523, allocations: 1.953 MB / 0.713 GB, free: 63.89 MB / 458.7 MB Notification: Performance of SimCode: time 2.004e-06/2.523, allocations: 0 / 0.713 GB, free: 63.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1906/2.714, allocations: 67.43 MB / 0.7788 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003038/2.714, allocations: 155.8 kB / 0.779 GB, free: 408 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.332/8.046, allocations: 4 kB / 0.779 GB, free: 404 kB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat