Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.632/2.632, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 6.013e-05/6.018e-05, allocations: 7.984 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4408, allocations: 58.83 MB / 382.3 MB, free: 10.34 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.6769, allocations: 107 MB / 489.3 MB, free: 1.508 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.6772, allocations: 75.95 kB / 489.3 MB, free: 1.434 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.9161/1.593, allocations: 131.6 MB / 0.6064 GB, free: 68.66 MB / 458.8 MB Notification: Performance of FrontEnd: time 3.587e-06/1.593, allocations: 7.938 kB / 0.6064 GB, free: 68.66 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0005679/1.594, allocations: 128 kB / 0.6065 GB, free: 68.53 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2377 * Number of variables: 2377 Notification: Performance of Generate backend data structure: time 0.0389/1.633, allocations: 6.372 MB / 0.6127 GB, free: 62.09 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.763e-05/1.633, allocations: 15.97 kB / 0.6128 GB, free: 62.07 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007586/1.641, allocations: 1.179 MB / 0.6139 GB, free: 60.88 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08177/1.722, allocations: 7.101 MB / 0.6209 GB, free: 53.76 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02579/1.748, allocations: 7.266 MB / 0.6279 GB, free: 46.43 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006634/1.749, allocations: 0.4934 MB / 0.6284 GB, free: 45.93 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003855/1.753, allocations: 0.656 MB / 0.6291 GB, free: 45.28 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05242/1.805, allocations: 16.37 MB / 0.6451 GB, free: 27.73 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004849/1.806, allocations: 75.31 kB / 0.6451 GB, free: 27.65 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003417/1.809, allocations: 319.8 kB / 0.6454 GB, free: 27.34 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003476/1.813, allocations: 1.581 MB / 0.647 GB, free: 25.76 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04486/1.858, allocations: 13.68 MB / 0.6603 GB, free: 12.06 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5405/2.398, allocations: 66.29 MB / 0.7251 GB, free: 74.74 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0297/2.428, allocations: 6.947 MB / 0.7319 GB, free: 74.07 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008835/2.437, allocations: 4.182 MB / 0.7359 GB, free: 74.02 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04098/2.478, allocations: 15.06 MB / 0.7506 GB, free: 72.53 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.579e-05/2.478, allocations: 68.3 kB / 0.7507 GB, free: 72.49 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=306): time 7.524e-06/2.478, allocations: 0 / 0.7507 GB, free: 72.49 MB / 0.4949 GB Notification: Performance of matching and sorting (n=348): time 0.1209/2.599, allocations: 26.04 MB / 0.7761 GB, free: 67.04 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/2.599, allocations: 222.6 kB / 0.7764 GB, free: 66.81 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/2.611, allocations: 4.682 MB / 0.7809 GB, free: 65.17 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001052/2.612, allocations: 78.39 kB / 0.781 GB, free: 65.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004108/2.617, allocations: 4.42 MB / 0.7853 GB, free: 61.7 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002236/2.619, allocations: 1.27 MB / 0.7866 GB, free: 60.76 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001558/2.62, allocations: 166 kB / 0.7867 GB, free: 60.63 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008178/2.621, allocations: 0.6467 MB / 0.7873 GB, free: 60.18 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009216/2.631, allocations: 3.539 MB / 0.7908 GB, free: 58.94 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01266/2.643, allocations: 7.966 MB / 0.7986 GB, free: 51.76 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/2.656, allocations: 5.276 MB / 0.8037 GB, free: 49.74 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002228/2.656, allocations: 47.38 kB / 0.8038 GB, free: 49.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1071) (initialization): time 0.03778/2.694, allocations: 12.49 MB / 0.816 GB, free: 39.82 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/2.694, allocations: 74.88 kB / 0.816 GB, free: 39.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002611/2.694, allocations: 156 kB / 0.8162 GB, free: 39.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007271/2.702, allocations: 1.664 MB / 0.8178 GB, free: 38.36 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01354/2.715, allocations: 1.927 MB / 0.8197 GB, free: 36.73 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02151/2.737, allocations: 11.35 MB / 0.8308 GB, free: 26.54 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01087/2.748, allocations: 0.4942 MB / 0.8313 GB, free: 26.14 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002605/2.751, allocations: 478.1 kB / 0.8317 GB, free: 25.69 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * Number of states: 0 () * Number of discrete variables: 51 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (999): * Single equations (assignments): 994 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004036/2.755, allocations: 0.7289 MB / 0.8324 GB, free: 24.96 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/2.756, allocations: 0.5036 MB / 0.8329 GB, free: 24.46 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0238/2.78, allocations: 7.365 MB / 0.8401 GB, free: 18.43 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.952e-05/2.78, allocations: 39.94 kB / 0.8402 GB, free: 18.39 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.333e-05/2.78, allocations: 8 kB / 0.8402 GB, free: 18.39 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001051/2.78, allocations: 16.5 kB / 0.8402 GB, free: 18.39 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0517/2.832, allocations: 16.01 MB / 0.8558 GB, free: 5.406 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.997e-05/2.832, allocations: 4.656 kB / 0.8558 GB, free: 5.406 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006585/2.839, allocations: 0.6033 MB / 0.8564 GB, free: 4.922 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006753/2.846, allocations: 1.409 MB / 0.8578 GB, free: 3.938 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/2.847, allocations: 63.47 kB / 0.8578 GB, free: 3.879 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0236/2.87, allocations: 10.53 MB / 0.8681 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/2.87, allocations: 3.938 kB / 0.8681 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03643/2.907, allocations: 11.88 MB / 0.8797 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005288/2.912, allocations: 1.107 MB / 0.8808 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002619/2.915, allocations: 59.36 kB / 0.8809 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00663/2.922, allocations: 254 kB / 0.8811 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001552/2.923, allocations: 194.1 kB / 0.8813 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007124/2.924, allocations: 94.48 kB / 0.8814 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01067/2.935, allocations: 3.281 MB / 0.8846 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.072e-06/2.935, allocations: 0 / 0.8846 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01276/2.948, allocations: 1.616 MB / 0.8862 GB, free: 6.73 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (294): * Single equations (assignments): 289 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03739/2.985, allocations: 12.74 MB / 0.8986 GB, free: 9.914 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0299/3.015, allocations: 8.584 MB / 0.907 GB, free: 1.355 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/3.015, allocations: 3.844 kB / 0.907 GB, free: 1.355 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01358/3.029, allocations: 3.683 MB / 0.9106 GB, free: 13.65 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006225/3.035, allocations: 0.627 MB / 0.9112 GB, free: 13.06 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05777/3.093, allocations: 15.12 MB / 0.926 GB, free: 13.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01366/3.106, allocations: 4.935 MB / 0.9308 GB, free: 8.965 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0148/3.121, allocations: 2.684 MB / 0.9334 GB, free: 6.293 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009505/3.131, allocations: 3.057 MB / 0.9364 GB, free: 3.234 MB / 0.573 GB Notification: Performance of SimCode: time 1.543e-06/3.131, allocations: 0 / 0.9364 GB, free: 3.234 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.685/3.816, allocations: 122.8 MB / 1.056 GB, free: 115.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003278/3.816, allocations: 176.6 kB / 1.056 GB, free: 115 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.898/11.71, allocations: 0 / 1.056 GB, free: 115 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat