Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.703/2.703, allocations: 270 MB / 283.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.999e-05/4.002e-05, allocations: 4 kB / 348.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3983, allocations: 61.87 MB / 410.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1956/0.594, allocations: 108.1 MB / 0.5063 GB, free: 14.49 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.5943, allocations: 79.95 kB / 0.5064 GB, free: 14.41 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7853/1.38, allocations: 108.2 MB / 0.612 GB, free: 29.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.38, allocations: 0 / 0.612 GB, free: 29.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003793/1.38, allocations: 108 kB / 0.6121 GB, free: 29.55 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.02109/1.401, allocations: 5.152 MB / 0.6172 GB, free: 24.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.401, allocations: 8.031 kB / 0.6172 GB, free: 24.33 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004242/1.405, allocations: 0.9061 MB / 0.6181 GB, free: 23.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0512/1.457, allocations: 6.876 MB / 0.6248 GB, free: 16.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02358/1.48, allocations: 6.38 MB / 0.631 GB, free: 10.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004514/1.481, allocations: 386 kB / 0.6314 GB, free: 9.703 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002789/1.484, allocations: 0.5036 MB / 0.6319 GB, free: 9.199 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03673/1.52, allocations: 12.27 MB / 0.6439 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003538/1.521, allocations: 75.34 kB / 0.6439 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/1.523, allocations: 251.9 kB / 0.6442 GB, free: 11.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00268/1.526, allocations: 1.129 MB / 0.6453 GB, free: 10.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03254/1.558, allocations: 9.458 MB / 0.6545 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09364/1.652, allocations: 56.39 MB / 0.7096 GB, free: 6.602 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/1.671, allocations: 4.233 MB / 0.7137 GB, free: 2.211 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004405/1.675, allocations: 1.912 MB / 0.7156 GB, free: 296 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4024/2.078, allocations: 5.646 MB / 0.7211 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/2.078, allocations: 51.39 kB / 0.7211 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 5.982e-06/2.078, allocations: 0 / 0.7211 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.05812/2.136, allocations: 12.93 MB / 0.7338 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.652e-05/2.136, allocations: 231.5 kB / 0.734 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0132/2.149, allocations: 4.954 MB / 0.7388 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004521/2.15, allocations: 48.28 kB / 0.7389 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00516/2.155, allocations: 3.87 MB / 0.7427 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001109/2.156, allocations: 0.6571 MB / 0.7433 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009069/2.157, allocations: 132.7 kB / 0.7434 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006726/2.158, allocations: 0.5861 MB / 0.744 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005174/2.163, allocations: 1.923 MB / 0.7459 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008049/2.171, allocations: 6.168 MB / 0.7519 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007597/2.179, allocations: 3.463 MB / 0.7553 GB, free: 108 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001757/2.179, allocations: 44.34 kB / 0.7553 GB, free: 108 MB / 0.5105 GB Notification: Performance of matching and sorting (n=861) (initialization): time 0.02168/2.201, allocations: 7.845 MB / 0.763 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/2.201, allocations: 72.19 kB / 0.763 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002627/2.201, allocations: 152.2 kB / 0.7632 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002195/2.204, allocations: 0.6015 MB / 0.7638 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008861/2.212, allocations: 1.496 MB / 0.7652 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008837/2.221, allocations: 5.707 MB / 0.7708 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007733/2.229, allocations: 349.3 kB / 0.7711 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/2.231, allocations: 419.9 kB / 0.7715 GB, free: 103.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 697 * Number of states: 0 () * Number of discrete variables: 49 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (809): * Single equations (assignments): 804 * Array equations: 3 * 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: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001314/2.232, allocations: 0.6333 MB / 0.7722 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/2.233, allocations: 463.8 kB / 0.7726 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006439/2.24, allocations: 2.405 MB / 0.775 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-05/2.24, allocations: 23.88 kB / 0.775 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/2.24, allocations: 3.844 kB / 0.775 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/2.24, allocations: 10.62 kB / 0.775 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0193/2.259, allocations: 7.224 MB / 0.782 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/2.259, allocations: 3.938 kB / 0.7821 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/2.261, allocations: 255 kB / 0.7823 GB, free: 98.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/2.263, allocations: 362 kB / 0.7826 GB, free: 98.63 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/2.263, allocations: 28 kB / 0.7827 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007681/2.271, allocations: 5.06 MB / 0.7876 GB, free: 94.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/2.271, allocations: 3.812 kB / 0.7876 GB, free: 94.92 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/2.281, allocations: 5.084 MB / 0.7926 GB, free: 92.05 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/2.283, allocations: 0.522 MB / 0.7931 GB, free: 91.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00177/2.285, allocations: 32.69 kB / 0.7931 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003671/2.289, allocations: 65.86 kB / 0.7932 GB, free: 91.46 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005176/2.289, allocations: 98.73 kB / 0.7933 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001742/2.289, allocations: 49.27 kB / 0.7933 GB, free: 91.35 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009225/2.299, allocations: 3.538 MB / 0.7968 GB, free: 88.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.32e-07/2.299, allocations: 1.562 kB / 0.7968 GB, free: 88.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008368/2.307, allocations: 1.113 MB / 0.7979 GB, free: 87.14 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 115 * Array equations: 3 * 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: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/2.317, allocations: 6.287 MB / 0.804 GB, free: 81.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0106/2.328, allocations: 4.681 MB / 0.8086 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/2.328, allocations: 0 / 0.8086 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002792/2.331, allocations: 1.366 MB / 0.8099 GB, free: 75.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005007/2.336, allocations: 0.5968 MB / 0.8105 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03414/2.37, allocations: 10.38 MB / 0.8206 GB, free: 66.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009429/2.38, allocations: 3.97 MB / 0.8245 GB, free: 63.36 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0102/2.39, allocations: 2.137 MB / 0.8266 GB, free: 62.01 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005695/2.396, allocations: 2.387 MB / 0.8289 GB, free: 59.79 MB / 0.5105 GB Notification: Performance of SimCode: time 1.643e-06/2.396, allocations: 0 / 0.8289 GB, free: 59.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6729/3.069, allocations: 92.29 MB / 0.9191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/3.069, allocations: 162.3 kB / 0.9192 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.174/10.24, allocations: 0 / 0.9192 GB, free: 120.9 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat