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 3.19/3.19, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.358e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4582/0.4583, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2365/0.6949, allocations: 101 MB / 455.4 MB, free: 10.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.6952, allocations: 79.95 kB / 455.5 MB, free: 9.984 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9412/1.636, allocations: 96.42 MB / 0.5389 GB, free: 25.19 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.637, allocations: 0 / 0.5389 GB, free: 25.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002578/1.637, allocations: 91.94 kB / 0.539 GB, free: 25.1 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.03071/1.668, allocations: 4.648 MB / 0.5436 GB, free: 20.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/1.668, allocations: 12.03 kB / 0.5436 GB, free: 20.37 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004556/1.672, allocations: 0.7445 MB / 0.5443 GB, free: 19.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03927/1.712, allocations: 3.62 MB / 0.5478 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0263/1.738, allocations: 4.902 MB / 0.5526 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004364/1.738, allocations: 214 kB / 0.5528 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003497/1.742, allocations: 295.9 kB / 0.5531 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02757/1.77, allocations: 8.443 MB / 0.5614 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0443/1.814, allocations: 11.14 MB / 0.5722 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003805/1.814, allocations: 39.62 kB / 0.5723 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003267/1.818, allocations: 20 kB / 0.5723 GB, free: 6.348 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004533/1.822, allocations: 1.314 MB / 0.5736 GB, free: 5.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/1.941, allocations: 39.48 MB / 0.6121 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/1.952, allocations: 4.311 MB / 0.6164 GB, free: 8.191 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006794/1.959, allocations: 2.288 MB / 0.6186 GB, free: 5.895 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002403/1.962, allocations: 1.323 MB / 0.6199 GB, free: 4.352 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.043e-05/1.962, allocations: 52.56 kB / 0.6199 GB, free: 4.289 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 8.095e-06/1.962, allocations: 0 / 0.6199 GB, free: 4.289 MB / 458.7 MB Notification: Performance of matching and sorting (n=285): time 0.5245/2.486, allocations: 18.03 MB / 0.6375 GB, free: 103.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/2.487, allocations: 107.7 kB / 0.6376 GB, free: 103.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006481/2.493, allocations: 2.579 MB / 0.6402 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007028/2.494, allocations: 25.7 kB / 0.6402 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002971/2.497, allocations: 3.296 MB / 0.6434 GB, free: 101 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001752/2.499, allocations: 1.03 MB / 0.6444 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008185/2.5, allocations: 0 / 0.6444 GB, free: 100.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005472/2.5, allocations: 0.5873 MB / 0.645 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006722/2.507, allocations: 2.417 MB / 0.6473 GB, free: 100.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009781/2.517, allocations: 6.027 MB / 0.6532 GB, free: 95.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/2.527, allocations: 3.87 MB / 0.657 GB, free: 95.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001806/2.527, allocations: 35.94 kB / 0.657 GB, free: 95.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.044/2.571, allocations: 9.602 MB / 0.6664 GB, free: 94.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/2.572, allocations: 59.53 kB / 0.6665 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002352/2.572, allocations: 129.2 kB / 0.6666 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02287/2.595, allocations: 2.338 MB / 0.6689 GB, free: 93.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01195/2.607, allocations: 1.469 MB / 0.6703 GB, free: 93.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03422/2.641, allocations: 9.846 MB / 0.6799 GB, free: 89.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00852/2.65, allocations: 222.5 kB / 0.6801 GB, free: 89.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/2.652, allocations: 386.6 kB / 0.6805 GB, free: 89.15 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.00215/2.654, allocations: 433.1 kB / 0.6809 GB, free: 88.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/2.655, allocations: 315.8 kB / 0.6812 GB, free: 88.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0184/2.673, allocations: 5.002 MB / 0.6861 GB, free: 86.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001436/2.674, allocations: 48.06 kB / 0.6861 GB, free: 86.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/2.674, allocations: 4 kB / 0.6862 GB, free: 86.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.26e-05/2.674, allocations: 10.45 kB / 0.6862 GB, free: 86.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04001/2.714, allocations: 10.96 MB / 0.6969 GB, free: 77.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.741e-05/2.714, allocations: 8 kB / 0.6969 GB, free: 77.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006211/2.72, allocations: 477.5 kB / 0.6973 GB, free: 77.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005367/2.725, allocations: 0.6967 MB / 0.698 GB, free: 76.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007518/2.726, allocations: 38.77 kB / 0.698 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005014/2.731, allocations: 2.319 MB / 0.7003 GB, free: 74.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.63e-05/2.731, allocations: 15.89 kB / 0.7003 GB, free: 74.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.031/2.762, allocations: 8.298 MB / 0.7084 GB, free: 66.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/2.764, allocations: 344.1 kB / 0.7088 GB, free: 66.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002089/2.766, allocations: 24 kB / 0.7088 GB, free: 66.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006422/2.773, allocations: 115 kB / 0.7089 GB, free: 66.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00134/2.774, allocations: 172.8 kB / 0.7091 GB, free: 66.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006928/2.775, allocations: 82.89 kB / 0.7091 GB, free: 66.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004931/2.78, allocations: 1.687 MB / 0.7108 GB, free: 64.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.074e-06/2.78, allocations: 0 / 0.7108 GB, free: 64.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01009/2.79, allocations: 0.9982 MB / 0.7118 GB, free: 63.71 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.02536/2.815, allocations: 11.02 MB / 0.7225 GB, free: 53.31 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.01887/2.834, allocations: 6.059 MB / 0.7284 GB, free: 47.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.761e-05/2.834, allocations: 0 / 0.7284 GB, free: 47.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009613/2.844, allocations: 2.654 MB / 0.731 GB, free: 45.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004575/2.849, allocations: 317.3 kB / 0.7313 GB, free: 45.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04062/2.889, allocations: 11.3 MB / 0.7424 GB, free: 35.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008494/2.898, allocations: 3.873 MB / 0.7462 GB, free: 32.32 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01215/2.91, allocations: 2.293 MB / 0.7484 GB, free: 30.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00643/2.916, allocations: 2.171 MB / 0.7505 GB, free: 28.57 MB / 458.7 MB Notification: Performance of SimCode: time 1.794e-06/2.916, allocations: 0 / 0.7505 GB, free: 28.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7123/3.629, allocations: 80.3 MB / 0.8289 GB, free: 122.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003377/3.629, allocations: 143.9 kB / 0.8291 GB, free: 122.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.104/10.73, allocations: 3.5 kB / 0.8291 GB, free: 122.1 MB / 490.7 MB