Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Force2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.934/1.934, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.693e-05/3.696e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1267, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5147/0.6414, allocations: 98.56 MB / 420.4 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.6418, allocations: 80.84 kB / 420.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.892, allocations: 236.7 MB / 0.6418 GB, free: 13.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.892, allocations: 0 / 0.6418 GB, free: 13.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008212/1.892, allocations: 252 kB / 0.6421 GB, free: 13.48 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4378 * Number of variables: 4378 Notification: Performance of Generate backend data structure: time 0.05552/1.948, allocations: 12.23 MB / 0.654 GB, free: 1.141 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/1.948, allocations: 8.031 kB / 0.654 GB, free: 1.133 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.353/2.301, allocations: 2.164 MB / 0.6561 GB, free: 34.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1015/2.403, allocations: 12.79 MB / 0.6686 GB, free: 33.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05406/2.457, allocations: 13.23 MB / 0.6815 GB, free: 33.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001838/2.459, allocations: 0.9364 MB / 0.6824 GB, free: 33.31 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009398/2.468, allocations: 1.251 MB / 0.6837 GB, free: 33.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1556/2.624, allocations: 29.86 MB / 0.7128 GB, free: 27.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001082/2.625, allocations: 146.6 kB / 0.713 GB, free: 27.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006919/2.632, allocations: 0.5812 MB / 0.7135 GB, free: 27.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006929/2.639, allocations: 2.86 MB / 0.7163 GB, free: 27.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08354/2.722, allocations: 24.06 MB / 0.7398 GB, free: 22.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6962/3.419, allocations: 127.2 MB / 0.864 GB, free: 25.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06961/3.488, allocations: 14.85 MB / 0.8785 GB, free: 24.56 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01666/3.505, allocations: 8.1 MB / 0.8865 GB, free: 24.49 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05454/3.56, allocations: 20.22 MB / 0.9062 GB, free: 21.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001114/3.56, allocations: 101.2 kB / 0.9063 GB, free: 21.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=566): time 1.053e-05/3.56, allocations: 0 / 0.9063 GB, free: 21.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=650): time 0.2765/3.836, allocations: 60.82 MB / 0.9657 GB, free: 3.543 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/3.837, allocations: 380.1 kB / 0.966 GB, free: 3.102 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05555/3.892, allocations: 11.85 MB / 0.9776 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002002/3.894, allocations: 129.7 kB / 0.9777 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0105/3.905, allocations: 7.871 MB / 0.9854 GB, free: 5.688 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005257/3.91, allocations: 2.387 MB / 0.9878 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00364/3.914, allocations: 315.3 kB / 0.9881 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.002039/3.916, allocations: 0.96 MB / 0.989 GB, free: 2.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04754/3.963, allocations: 8.013 MB / 0.9968 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07166/4.035, allocations: 14.79 MB / 1.011 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02657/4.062, allocations: 9.818 MB / 1.021 GB, free: 5.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003605/4.062, allocations: 88 kB / 1.021 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1995) (initialization): time 0.4494/4.512, allocations: 23.06 MB / 1.043 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002775/4.512, allocations: 127.6 kB / 1.044 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006005/4.513, allocations: 292.9 kB / 1.044 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01554/4.528, allocations: 3.289 MB / 1.047 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02813/4.556, allocations: 3.734 MB / 1.051 GB, free: 128.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04481/4.601, allocations: 22.46 MB / 1.073 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02121/4.622, allocations: 0.9334 MB / 1.074 GB, free: 122.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004641/4.627, allocations: 0.8734 MB / 1.074 GB, free: 122.8 MB / 0.5417 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.007407/4.635, allocations: 1.262 MB / 1.076 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004304/4.639, allocations: 1.067 MB / 1.077 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04707/4.686, allocations: 14.64 MB / 1.091 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001272/4.686, allocations: 65.44 kB / 1.091 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-05/4.686, allocations: 18.38 kB / 1.091 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001998/4.686, allocations: 33.95 kB / 1.091 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1012/4.788, allocations: 32.38 MB / 1.123 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000109/4.788, allocations: 10.41 kB / 1.123 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01355/4.801, allocations: 1.306 MB / 1.124 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01318/4.815, allocations: 2.819 MB / 1.127 GB, free: 116.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002025/4.817, allocations: 124 kB / 1.127 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04233/4.859, allocations: 21.01 MB / 1.147 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.315e-05/4.859, allocations: 17.53 kB / 1.147 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06028/4.919, allocations: 26.13 MB / 1.173 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009187/4.929, allocations: 2.185 MB / 1.175 GB, free: 91.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004803/4.933, allocations: 121 kB / 1.175 GB, free: 91.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01229/4.946, allocations: 453.5 kB / 1.176 GB, free: 91.58 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002612/4.948, allocations: 414.3 kB / 1.176 GB, free: 91.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001313/4.95, allocations: 176.8 kB / 1.176 GB, free: 91.47 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02048/4.97, allocations: 7.591 MB / 1.184 GB, free: 85.16 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.252e-06/4.97, allocations: 0 / 1.184 GB, free: 85.16 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0214/4.992, allocations: 3.081 MB / 1.187 GB, free: 82.09 MB / 0.5417 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.05989/5.052, allocations: 27.29 MB / 1.213 GB, free: 57.44 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0381/5.09, allocations: 16.04 MB / 1.229 GB, free: 43.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.9e-05/5.09, allocations: 1 kB / 1.229 GB, free: 43.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02446/5.114, allocations: 6.992 MB / 1.236 GB, free: 36.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03618/5.151, allocations: 1.336 MB / 1.237 GB, free: 35.87 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4944/5.645, allocations: 30.96 MB / 1.267 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0231/5.668, allocations: 8.775 MB / 1.276 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01895/5.687, allocations: 6.422 MB / 1.282 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.966e-06/5.687, allocations: 3.656 kB / 1.282 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.699/14.39, allocations: 442.7 MB / 1.714 GB, free: 131.4 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Force2_res.mat does not exist to compare? outputFormat=mat