Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.431/2.431, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.982e-05, allocations: 3.938 kB / 347.1 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4168, allocations: 61.88 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.6193, allocations: 110.2 MB / 0.507 GB, free: 12.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.6197, allocations: 79.95 kB / 0.5071 GB, free: 12.29 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7231/1.343, allocations: 97.86 MB / 0.6026 GB, free: 37.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.766e-06/1.343, allocations: 0 / 0.6026 GB, free: 37.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002376/1.343, allocations: 92 kB / 0.6027 GB, free: 37.34 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.02396/1.367, allocations: 4.6 MB / 0.6072 GB, free: 32.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/1.367, allocations: 8.031 kB / 0.6072 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004419/1.372, allocations: 0.9347 MB / 0.6081 GB, free: 31.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.027/1.399, allocations: 3.608 MB / 0.6117 GB, free: 28.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/1.417, allocations: 4.722 MB / 0.6163 GB, free: 23.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004425/1.418, allocations: 369.7 kB / 0.6166 GB, free: 22.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003113/1.421, allocations: 487.9 kB / 0.6171 GB, free: 22.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0354/1.456, allocations: 11.89 MB / 0.6287 GB, free: 10.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000264/1.456, allocations: 27.8 kB / 0.6287 GB, free: 10.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002528/1.459, allocations: 227.8 kB / 0.629 GB, free: 9.809 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002634/1.462, allocations: 1.299 MB / 0.6302 GB, free: 8.508 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0326/1.494, allocations: 11.04 MB / 0.641 GB, free: 13.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0948/1.589, allocations: 41.36 MB / 0.6814 GB, free: 3.082 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/1.607, allocations: 4.902 MB / 0.6862 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005786/1.613, allocations: 2.336 MB / 0.6885 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01789/1.631, allocations: 6.811 MB / 0.6951 GB, free: 4.414 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.811e-05/1.631, allocations: 56.48 kB / 0.6952 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=226): time 6.362e-06/1.631, allocations: 0 / 0.6952 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of matching and sorting (n=235): time 0.06151/1.692, allocations: 13.53 MB / 0.7084 GB, free: 6.738 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/1.693, allocations: 69.41 kB / 0.7084 GB, free: 6.656 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007677/1.7, allocations: 2.776 MB / 0.7112 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005981/1.701, allocations: 65.69 kB / 0.7112 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003382/1.704, allocations: 3.203 MB / 0.7143 GB, free: 0.5508 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.3746/2.079, allocations: 0.8812 MB / 0.7152 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/2.08, allocations: 118.3 kB / 0.7153 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007247/2.081, allocations: 0.5675 MB / 0.7159 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01125/2.092, allocations: 2.295 MB / 0.7181 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01257/2.105, allocations: 5.559 MB / 0.7235 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01278/2.118, allocations: 3.614 MB / 0.7271 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001893/2.118, allocations: 34.31 kB / 0.7271 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=790) (initialization): time 0.03821/2.156, allocations: 8.271 MB / 0.7352 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/2.156, allocations: 55.03 kB / 0.7352 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002723/2.157, allocations: 116.4 kB / 0.7353 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009528/2.166, allocations: 1.134 MB / 0.7364 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01324/2.179, allocations: 1.351 MB / 0.7378 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/2.193, allocations: 4.586 MB / 0.7422 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009848/2.203, allocations: 321.2 kB / 0.7426 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001892/2.205, allocations: 348.8 kB / 0.7429 GB, free: 124.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 528 * Number of states: 0 () * Number of discrete variables: 32 (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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (729): * Single equations (assignments): 721 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.002846/2.208, allocations: 0.5322 MB / 0.7434 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/2.209, allocations: 297 kB / 0.7437 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01868/2.228, allocations: 4.333 MB / 0.7479 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001545/2.228, allocations: 47.31 kB / 0.748 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/2.228, allocations: 3.953 kB / 0.748 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.116e-05/2.228, allocations: 10.08 kB / 0.748 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04416/2.272, allocations: 10.32 MB / 0.7581 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.911e-05/2.272, allocations: 3.469 kB / 0.7581 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00545/2.278, allocations: 380.2 kB / 0.7584 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005562/2.283, allocations: 0.6773 MB / 0.7591 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007227/2.284, allocations: 47.72 kB / 0.7591 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005993/2.29, allocations: 2.414 MB / 0.7615 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/2.29, allocations: 9.844 kB / 0.7615 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02424/2.314, allocations: 7.112 MB / 0.7684 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/2.316, allocations: 346.2 kB / 0.7688 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/2.317, allocations: 42.73 kB / 0.7688 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004386/2.322, allocations: 133.2 kB / 0.7689 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009715/2.323, allocations: 136 kB / 0.7691 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005233/2.323, allocations: 68.17 kB / 0.7691 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00704/2.33, allocations: 1.87 MB / 0.771 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.134e-06/2.331, allocations: 0 / 0.771 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01053/2.341, allocations: 1.055 MB / 0.772 GB, free: 115.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 178 * 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.02583/2.367, allocations: 9.086 MB / 0.7809 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02099/2.388, allocations: 5.488 MB / 0.7862 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.178e-05/2.388, allocations: 0 / 0.7862 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01017/2.398, allocations: 2.347 MB / 0.7885 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005483/2.404, allocations: 432.5 kB / 0.7889 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05254/2.457, allocations: 11.4 MB / 0.8001 GB, free: 90.24 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/2.469, allocations: 3.778 MB / 0.8037 GB, free: 87.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00787/2.477, allocations: 2.13 MB / 0.8058 GB, free: 85.39 MB / 0.5105 GB Notification: Performance of SimCode: time 3.306e-06/2.477, allocations: 0 / 0.8058 GB, free: 85.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.21/7.686, allocations: 136.8 MB / 0.9394 GB, free: 138.8 MB / 0.5261 GB