Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Force2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.578e-05/4.575e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3926, allocations: 54.85 MB / 359.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1929/0.5855, allocations: 105.4 MB / 465.2 MB, free: 7.566 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.5859, allocations: 75.97 kB / 465.3 MB, free: 7.492 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.227/1.813, allocations: 237.1 MB / 0.6859 GB, free: 1.309 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/1.813, allocations: 0 / 0.6859 GB, free: 1.309 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008362/1.814, allocations: 252 kB / 0.6862 GB, free: 1.062 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4386 * Number of variables: 4386 Notification: Performance of Generate backend data structure: time 0.0543/1.868, allocations: 12.25 MB / 0.6982 GB, free: 4.707 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/1.868, allocations: 12.03 kB / 0.6982 GB, free: 4.695 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01121/1.879, allocations: 2.167 MB / 0.7003 GB, free: 2.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8/2.679, allocations: 12.79 MB / 0.7128 GB, free: 41.34 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04827/2.728, allocations: 13.22 MB / 0.7257 GB, free: 40.74 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001227/2.729, allocations: 0.943 MB / 0.7266 GB, free: 40.71 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006792/2.736, allocations: 1.259 MB / 0.7278 GB, free: 40.7 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09728/2.833, allocations: 29.9 MB / 0.757 GB, free: 34.68 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001065/2.834, allocations: 141.4 kB / 0.7572 GB, free: 34.67 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006469/2.841, allocations: 0.5804 MB / 0.7577 GB, free: 34.67 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006661/2.847, allocations: 2.858 MB / 0.7605 GB, free: 34.64 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08031/2.928, allocations: 24.08 MB / 0.784 GB, free: 32.14 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7173/3.645, allocations: 127.3 MB / 0.9083 GB, free: 32.88 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07139/3.717, allocations: 14.85 MB / 0.9228 GB, free: 32.14 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01585/3.733, allocations: 8.099 MB / 0.9308 GB, free: 32.07 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05408/3.787, allocations: 20.22 MB / 0.9505 GB, free: 29.27 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/3.787, allocations: 98.39 kB / 0.9506 GB, free: 29.23 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=566): time 1.069e-05/3.787, allocations: 0 / 0.9506 GB, free: 29.23 MB / 0.5262 GB Notification: Performance of matching and sorting (n=650): time 0.2745/4.061, allocations: 60.83 MB / 1.01 GB, free: 16.33 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/4.062, allocations: 386.8 kB / 1.01 GB, free: 15.95 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02806/4.09, allocations: 10.52 MB / 1.021 GB, free: 8.52 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001876/4.092, allocations: 125.7 kB / 1.021 GB, free: 8.391 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.007448/4.099, allocations: 7.877 MB / 1.028 GB, free: 1.211 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.004687/4.104, allocations: 2.393 MB / 1.031 GB, free: 15.09 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003327/4.107, allocations: 304 kB / 1.031 GB, free: 14.79 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001662/4.109, allocations: 0.9641 MB / 1.032 GB, free: 14 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01981/4.129, allocations: 6.609 MB / 1.038 GB, free: 8.074 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0284/4.157, allocations: 14.79 MB / 1.053 GB, free: 6.555 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02559/4.183, allocations: 9.832 MB / 1.063 GB, free: 14.63 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003689/4.183, allocations: 80 kB / 1.063 GB, free: 14.55 MB / 0.573 GB Notification: Performance of matching and sorting (n=1995) (initialization): time 0.08001/4.263, allocations: 23.34 MB / 1.085 GB, free: 12.68 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002658/4.264, allocations: 128.6 kB / 1.086 GB, free: 12.55 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005935/4.264, allocations: 288.9 kB / 1.086 GB, free: 12.27 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01491/4.279, allocations: 3.279 MB / 1.089 GB, free: 9.832 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02742/4.307, allocations: 3.739 MB / 1.093 GB, free: 6.688 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05055/4.357, allocations: 22.48 MB / 1.115 GB, free: 2.547 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02077/4.378, allocations: 0.9329 MB / 1.116 GB, free: 1.781 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004456/4.383, allocations: 0.8729 MB / 1.116 GB, free: 0.9453 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1317 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],force4.connectionLineColor[3],force4.connectionLineColor[2],force4.connectionLineColor[1],force4.torqueColor[3],force4.torqueColor[2],force4.torqueColor[1],force4.forceColor[3],force4.forceColor[2],force4.forceColor[1],force3.connectionLineColor[3],force3.connectionLineColor[2],force3.connectionLineColor[1],force3.torqueColor[3],force3.torqueColor[2],force3.torqueColor[1],force3.forceColor[3],force3.forceColor[2],force3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1877): * Single equations (assignments): 1870 * 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 {(2,100.0%) 23,(2,100.0%) 22,(2,100.0%) 22,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007618/4.39, allocations: 1.262 MB / 1.118 GB, free: 15.68 MB / 0.6199 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00478/4.395, allocations: 1.072 MB / 1.119 GB, free: 14.59 MB / 0.6199 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05105/4.446, allocations: 14.64 MB / 1.133 GB, free: 484 kB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001301/4.446, allocations: 67.95 kB / 1.133 GB, free: 416 kB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.225e-05/4.446, allocations: 17.19 kB / 1.133 GB, free: 400 kB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001829/4.447, allocations: 31.89 kB / 1.133 GB, free: 368 kB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5454/4.992, allocations: 32.38 MB / 1.165 GB, free: 171.7 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001758/4.992, allocations: 10.56 kB / 1.165 GB, free: 171.7 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01789/5.01, allocations: 1.312 MB / 1.166 GB, free: 171.7 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01779/5.028, allocations: 2.813 MB / 1.169 GB, free: 171.6 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002246/5.03, allocations: 123.4 kB / 1.169 GB, free: 171.6 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04953/5.08, allocations: 21.01 MB / 1.189 GB, free: 166.3 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/5.08, allocations: 15.97 kB / 1.189 GB, free: 166.3 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06343/5.143, allocations: 26.14 MB / 1.215 GB, free: 157.6 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00949/5.153, allocations: 2.186 MB / 1.217 GB, free: 157.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005116/5.158, allocations: 118.6 kB / 1.217 GB, free: 157 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0122/5.17, allocations: 463.1 kB / 1.218 GB, free: 156.9 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002508/5.173, allocations: 405.7 kB / 1.218 GB, free: 156.8 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001506/5.174, allocations: 172.3 kB / 1.218 GB, free: 156.8 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.02129/5.196, allocations: 7.592 MB / 1.226 GB, free: 154.2 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.052e-06/5.196, allocations: 0 / 1.226 GB, free: 154.2 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.02238/5.218, allocations: 3.075 MB / 1.229 GB, free: 153.9 MB / 0.6199 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (559): * Single equations (assignments): 552 * 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 {(4,75.0%) 17,(4,75.0%) 17,(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.06483/5.283, allocations: 27.3 MB / 1.255 GB, free: 140.4 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.03782/5.321, allocations: 16.03 MB / 1.271 GB, free: 130.3 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 1.761e-05/5.321, allocations: 4 kB / 1.271 GB, free: 130.3 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.02009/5.341, allocations: 6.996 MB / 1.278 GB, free: 124.2 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01269/5.354, allocations: 1.335 MB / 1.279 GB, free: 123.1 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1014/5.455, allocations: 30.97 MB / 1.309 GB, free: 96.69 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02255/5.478, allocations: 8.777 MB / 1.318 GB, free: 90.4 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01725/5.495, allocations: 6.426 MB / 1.324 GB, free: 84.42 MB / 0.6199 GB Notification: Performance of SimCode: time 1.473e-06/5.495, allocations: 2.953 kB / 1.324 GB, free: 84.42 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.762/14.26, allocations: 443.2 MB / 1.757 GB, free: 72.93 MB / 0.6199 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Force2_res.mat does not exist to compare? outputFormat=mat