Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.736/2.736, allocations: 270 MB / 283.6 MB, free: 1.883 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.691e-05/5.708e-05, allocations: 7.938 kB / 348.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4289/0.429, allocations: 61.87 MB / 410.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1995/0.6286, allocations: 106.9 MB / 0.5051 GB, free: 15.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.629, allocations: 79.95 kB / 0.5052 GB, free: 15.52 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9507/1.58, allocations: 156.2 MB / 0.6577 GB, free: 14.35 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.58, allocations: 0 / 0.6577 GB, free: 14.35 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006564/1.58, allocations: 160 kB / 0.6579 GB, free: 14.2 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.03558/1.616, allocations: 7.632 MB / 0.6653 GB, free: 6.469 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.681e-05/1.616, allocations: 12.03 kB / 0.6653 GB, free: 6.457 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007785/1.624, allocations: 1.31 MB / 0.6666 GB, free: 5.137 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1372/1.761, allocations: 11.93 MB / 0.6783 GB, free: 9.176 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03926/1.8, allocations: 9.973 MB / 0.688 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009344/1.801, allocations: 0.5657 MB / 0.6885 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005/1.806, allocations: 0.7691 MB / 0.6893 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06443/1.871, allocations: 17.89 MB / 0.7068 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006171/1.872, allocations: 103 kB / 0.7069 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003424/1.875, allocations: 367.8 kB / 0.7072 GB, free: 9.969 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003983/1.879, allocations: 1.571 MB / 0.7088 GB, free: 8.391 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4702/2.349, allocations: 14.09 MB / 0.7225 GB, free: 85.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1352/2.485, allocations: 75.48 MB / 0.7962 GB, free: 44.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05104/2.536, allocations: 7.241 MB / 0.8033 GB, free: 42.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01023/2.546, allocations: 3.441 MB / 0.8067 GB, free: 41.31 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001381/2.547, allocations: 0.6566 MB / 0.8073 GB, free: 40.72 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/2.548, allocations: 58.66 kB / 0.8074 GB, free: 40.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=231): time 1.138e-05/2.548, allocations: 0 / 0.8074 GB, free: 40.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=255): time 0.169/2.717, allocations: 22.73 MB / 0.8296 GB, free: 32.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/2.717, allocations: 289.4 kB / 0.8298 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02695/2.744, allocations: 6.455 MB / 0.8361 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008619/2.745, allocations: 64.2 kB / 0.8362 GB, free: 29.76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007847/2.753, allocations: 5.366 MB / 0.8414 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002155/2.755, allocations: 0.991 MB / 0.8424 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/2.757, allocations: 173.9 kB / 0.8426 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001707/2.759, allocations: 0.6662 MB / 0.8432 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01106/2.77, allocations: 2.803 MB / 0.846 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01567/2.785, allocations: 7.987 MB / 0.8538 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/2.8, allocations: 4.715 MB / 0.8584 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000309/2.8, allocations: 55.16 kB / 0.8584 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1110) (initialization): time 0.03261/2.833, allocations: 10.88 MB / 0.869 GB, free: 2.059 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/2.833, allocations: 88 kB / 0.8691 GB, free: 1.973 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002994/2.834, allocations: 188.1 kB / 0.8693 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004319/2.838, allocations: 1.031 MB / 0.8703 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01305/2.851, allocations: 1.956 MB / 0.8722 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02273/2.874, allocations: 11.22 MB / 0.8832 GB, free: 4.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01734/2.891, allocations: 459.9 kB / 0.8836 GB, free: 4.145 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002444/2.894, allocations: 0.5097 MB / 0.8841 GB, free: 3.645 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1030): * Single equations (assignments): 1023 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002486/2.896, allocations: 0.792 MB / 0.8849 GB, free: 2.855 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/2.898, allocations: 0.617 MB / 0.8855 GB, free: 2.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0163/2.914, allocations: 4.612 MB / 0.89 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.502e-05/2.915, allocations: 30.34 kB / 0.89 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.304e-05/2.915, allocations: 12 kB / 0.89 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.072e-05/2.915, allocations: 12.98 kB / 0.89 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03905/2.954, allocations: 12.27 MB / 0.902 GB, free: 4.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/2.954, allocations: 4 kB / 0.902 GB, free: 4.879 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004099/2.958, allocations: 397.9 kB / 0.9024 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003547/2.962, allocations: 0.6988 MB / 0.9031 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000375/2.962, allocations: 52.25 kB / 0.9031 GB, free: 3.984 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01864/2.981, allocations: 10.13 MB / 0.913 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/2.981, allocations: 4.031 kB / 0.913 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03235/3.013, allocations: 7.752 MB / 0.9206 GB, free: 3.352 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/3.017, allocations: 0.6695 MB / 0.9213 GB, free: 2.684 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00304/3.02, allocations: 48 kB / 0.9213 GB, free: 2.637 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00818/3.028, allocations: 147.2 kB / 0.9215 GB, free: 2.539 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/3.029, allocations: 148.5 kB / 0.9216 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004575/3.03, allocations: 67.38 kB / 0.9217 GB, free: 2.391 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.4379/3.468, allocations: 4.89 MB / 0.9264 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.765e-06/3.468, allocations: 0 / 0.9264 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01307/3.481, allocations: 1.644 MB / 0.928 GB, free: 123.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (195): * Single equations (assignments): 188 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.02044/3.501, allocations: 8.596 MB / 0.9364 GB, free: 121.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01685/3.518, allocations: 7.044 MB / 0.9433 GB, free: 121.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/3.518, allocations: 0 / 0.9433 GB, free: 121.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005446/3.524, allocations: 2.481 MB / 0.9457 GB, free: 121 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008317/3.532, allocations: 0.9026 MB / 0.9466 GB, free: 121 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05009/3.582, allocations: 15.54 MB / 0.9618 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/3.595, allocations: 5.572 MB / 0.9672 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01372/3.609, allocations: 2.729 MB / 0.9699 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008662/3.617, allocations: 3.63 MB / 0.9734 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.904e-06/3.618, allocations: 0 / 0.9734 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2986/3.916, allocations: 134.4 MB / 1.105 GB, free: 24.17 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/3.916, allocations: 171.2 kB / 1.105 GB, free: 23.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.974/12.89, allocations: 0 / 1.105 GB, free: 23.94 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat