Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.812/2.812, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.912e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4235, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.215/0.6386, allocations: 101 MB / 455.4 MB, free: 10.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/0.639, allocations: 79.95 kB / 455.5 MB, free: 10.01 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7842/1.423, allocations: 96.07 MB / 0.5386 GB, free: 25.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.657e-06/1.423, allocations: 0 / 0.5386 GB, free: 25.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002314/1.424, allocations: 91.94 kB / 0.5387 GB, free: 25.46 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02635/1.45, allocations: 4.659 MB / 0.5433 GB, free: 20.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/1.45, allocations: 8.031 kB / 0.5433 GB, free: 20.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03217/1.482, allocations: 3.624 MB / 0.5468 GB, free: 17.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02148/1.504, allocations: 4.89 MB / 0.5516 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/1.504, allocations: 164.3 kB / 0.5517 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003209/1.507, allocations: 295.9 kB / 0.552 GB, free: 11.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02225/1.53, allocations: 8.447 MB / 0.5603 GB, free: 3.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03715/1.567, allocations: 11.14 MB / 0.5711 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003055/1.567, allocations: 31.66 kB / 0.5712 GB, free: 7.539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002675/1.57, allocations: 23.98 kB / 0.5712 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003969/1.574, allocations: 1.314 MB / 0.5725 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1086/1.683, allocations: 39.48 MB / 0.611 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/1.694, allocations: 4.307 MB / 0.6152 GB, free: 9.359 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006464/1.7, allocations: 2.296 MB / 0.6175 GB, free: 7.055 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002355/1.702, allocations: 1.323 MB / 0.6188 GB, free: 5.516 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.781e-05/1.703, allocations: 60.59 kB / 0.6188 GB, free: 5.445 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 7.845e-06/1.703, allocations: 0 / 0.6188 GB, free: 5.445 MB / 458.7 MB Notification: Performance of matching and sorting (n=285): time 0.485/2.188, allocations: 18.02 MB / 0.6364 GB, free: 103.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.391e-05/2.188, allocations: 104.3 kB / 0.6365 GB, free: 103.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00998/2.198, allocations: 2.581 MB / 0.6391 GB, free: 103 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008763/2.199, allocations: 29.27 kB / 0.6391 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00426/2.203, allocations: 3.298 MB / 0.6423 GB, free: 101.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002448/2.206, allocations: 1.024 MB / 0.6433 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/2.207, allocations: 0 / 0.6433 GB, free: 100.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00085/2.208, allocations: 0.5907 MB / 0.6439 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01002/2.218, allocations: 2.419 MB / 0.6462 GB, free: 100.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.232, allocations: 6.028 MB / 0.6521 GB, free: 95.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01513/2.247, allocations: 3.862 MB / 0.6559 GB, free: 95.46 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003209/2.247, allocations: 36.28 kB / 0.6559 GB, free: 95.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.05378/2.301, allocations: 9.601 MB / 0.6653 GB, free: 94.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/2.301, allocations: 59.16 kB / 0.6654 GB, free: 94.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/2.301, allocations: 130.9 kB / 0.6655 GB, free: 94.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02019/2.321, allocations: 2.336 MB / 0.6678 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/2.332, allocations: 1.473 MB / 0.6692 GB, free: 94.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03687/2.369, allocations: 9.857 MB / 0.6788 GB, free: 89.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007509/2.376, allocations: 216 kB / 0.679 GB, free: 89.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/2.378, allocations: 387.1 kB / 0.6794 GB, free: 89.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (794): * Single equations (assignments): 786 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.001562/2.38, allocations: 431.4 kB / 0.6798 GB, free: 89.18 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01397/2.394, allocations: 4.381 MB / 0.6841 GB, free: 87.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/2.395, allocations: 309 kB / 0.6844 GB, free: 87.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/2.409, allocations: 4.996 MB / 0.6893 GB, free: 84.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/2.41, allocations: 50.72 kB / 0.6893 GB, free: 84.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/2.41, allocations: 0 / 0.6893 GB, free: 84.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-05/2.41, allocations: 14.91 kB / 0.6893 GB, free: 84.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03107/2.441, allocations: 10.96 MB / 0.7 GB, free: 75.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/2.441, allocations: 8 kB / 0.7001 GB, free: 75.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004616/2.445, allocations: 483 kB / 0.7005 GB, free: 74.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004179/2.45, allocations: 0.6914 MB / 0.7012 GB, free: 74.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/2.45, allocations: 38.03 kB / 0.7012 GB, free: 74.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004006/2.454, allocations: 2.33 MB / 0.7035 GB, free: 72.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/2.454, allocations: 15.94 kB / 0.7035 GB, free: 72.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01849/2.473, allocations: 8.293 MB / 0.7116 GB, free: 64.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/2.474, allocations: 342.1 kB / 0.7119 GB, free: 63.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001305/2.475, allocations: 25.44 kB / 0.712 GB, free: 63.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00323/2.478, allocations: 112.9 kB / 0.7121 GB, free: 63.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006607/2.479, allocations: 177.3 kB / 0.7122 GB, free: 63.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003196/2.479, allocations: 87.19 kB / 0.7123 GB, free: 63.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003626/2.483, allocations: 1.679 MB / 0.714 GB, free: 62.13 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.483, allocations: 0 / 0.714 GB, free: 62.13 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008006/2.491, allocations: 1.004 MB / 0.7149 GB, free: 61.14 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (236): * Single equations (assignments): 227 * 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.01943/2.511, allocations: 11.02 MB / 0.7257 GB, free: 50.74 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:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 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 freeMotionScalarInit.angle_1 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: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.01578/2.526, allocations: 6.056 MB / 0.7316 GB, free: 45.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/2.526, allocations: 256 / 0.7316 GB, free: 45.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008142/2.535, allocations: 2.65 MB / 0.7342 GB, free: 42.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/2.538, allocations: 315.8 kB / 0.7345 GB, free: 42.63 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03688/2.575, allocations: 11.31 MB / 0.7456 GB, free: 32.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008283/2.583, allocations: 3.872 MB / 0.7493 GB, free: 29.75 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01113/2.594, allocations: 2.297 MB / 0.7516 GB, free: 27.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005568/2.6, allocations: 2.171 MB / 0.7537 GB, free: 25.38 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/2.6, allocations: 0 / 0.7537 GB, free: 25.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6255/3.226, allocations: 79.27 MB / 0.8311 GB, free: 125.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003083/3.226, allocations: 148.2 kB / 0.8313 GB, free: 125.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.839/9.065, allocations: 3.938 kB / 0.8313 GB, free: 125.1 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat