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 2.031/2.031, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.795e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1459, allocations: 48.71 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.5927, allocations: 98.14 MB / 414.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.593, allocations: 74.77 kB / 414.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.213/1.806, allocations: 230.8 MB / 0.6302 GB, free: 15.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.806, allocations: 0 / 0.6302 GB, free: 15.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001064/1.807, allocations: 251.9 kB / 0.6304 GB, free: 15.3 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.05673/1.864, allocations: 12.23 MB / 0.6424 GB, free: 2.965 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/1.864, allocations: 8.031 kB / 0.6424 GB, free: 2.957 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8015/2.665, allocations: 12.79 MB / 0.6549 GB, free: 35.94 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04894/2.714, allocations: 13.22 MB / 0.6678 GB, free: 35.34 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00079/2.715, allocations: 411.6 kB / 0.6682 GB, free: 35.34 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006264/2.722, allocations: 0.7319 MB / 0.6689 GB, free: 35.33 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04458/2.766, allocations: 17.42 MB / 0.6859 GB, free: 35.27 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07398/2.84, allocations: 25.76 MB / 0.7111 GB, free: 29.36 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00112/2.841, allocations: 140.8 kB / 0.7112 GB, free: 29.34 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006625/2.848, allocations: 69.86 kB / 0.7113 GB, free: 29.34 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009294/2.857, allocations: 2.862 MB / 0.714 GB, free: 29.31 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6418/3.499, allocations: 121.3 MB / 0.8325 GB, free: 86.04 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02348/3.523, allocations: 10.92 MB / 0.8432 GB, free: 84.74 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01569/3.538, allocations: 7.675 MB / 0.8507 GB, free: 84.66 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002415/3.541, allocations: 1.096 MB / 0.8517 GB, free: 83.81 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/3.541, allocations: 95.12 kB / 0.8518 GB, free: 83.77 MB / 490.8 MB Notification: Performance of pre-optimization done (n=552): time 1.016e-05/3.541, allocations: 0 / 0.8518 GB, free: 83.77 MB / 490.8 MB Notification: Performance of matching and sorting (n=640): time 0.219/3.76, allocations: 62.78 MB / 0.9131 GB, free: 70.02 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/3.76, allocations: 390.2 kB / 0.9135 GB, free: 69.63 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02119/3.782, allocations: 7.914 MB / 0.9212 GB, free: 66.88 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002159/3.784, allocations: 25.7 kB / 0.9213 GB, free: 66.85 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007459/3.791, allocations: 8.23 MB / 0.9293 GB, free: 60.46 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004216/3.796, allocations: 2.277 MB / 0.9315 GB, free: 58.75 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003291/3.799, allocations: 0 / 0.9315 GB, free: 58.75 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001682/3.801, allocations: 0.9864 MB / 0.9325 GB, free: 58.14 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01612/3.817, allocations: 6.418 MB / 0.9388 GB, free: 55.8 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02278/3.84, allocations: 14.9 MB / 0.9533 GB, free: 41.15 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02174/3.861, allocations: 9.667 MB / 0.9628 GB, free: 33.53 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003624/3.862, allocations: 84 kB / 0.9628 GB, free: 33.45 MB / 490.8 MB Notification: Performance of matching and sorting (n=2053) (initialization): time 0.06444/3.926, allocations: 22.3 MB / 0.9846 GB, free: 15.24 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002106/3.927, allocations: 135.9 kB / 0.9847 GB, free: 15.11 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005034/3.927, allocations: 304.1 kB / 0.985 GB, free: 14.81 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/3.941, allocations: 3.304 MB / 0.9883 GB, free: 12.35 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02665/3.967, allocations: 3.842 MB / 0.992 GB, free: 9.113 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4404/4.408, allocations: 21.32 MB / 1.013 GB, free: 84.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02031/4.428, allocations: 0.6368 MB / 1.013 GB, free: 84.16 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004818/4.433, allocations: 0.902 MB / 1.014 GB, free: 84.16 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1365 * 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 (1935): * Single equations (assignments): 1928 * 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%) 21,(4,75.0%) 21,(4,75.0%) 20,(4,75.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007457/4.441, allocations: 0.8923 MB / 1.015 GB, free: 83.99 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04249/4.483, allocations: 13.2 MB / 1.028 GB, free: 83.79 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004274/4.487, allocations: 0.8968 MB / 1.029 GB, free: 83.79 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04211/4.53, allocations: 13.84 MB / 1.042 GB, free: 83.39 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001895/4.53, allocations: 63.23 kB / 1.043 GB, free: 83.39 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001034/4.53, allocations: 18.41 kB / 1.043 GB, free: 83.39 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002144/4.53, allocations: 33.52 kB / 1.043 GB, free: 83.39 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08996/4.62, allocations: 28.84 MB / 1.071 GB, free: 81.23 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.451e-05/4.62, allocations: 12.39 kB / 1.071 GB, free: 81.23 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01279/4.633, allocations: 1.258 MB / 1.072 GB, free: 81.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01276/4.646, allocations: 2.783 MB / 1.075 GB, free: 80.64 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001952/4.648, allocations: 33.81 kB / 1.075 GB, free: 80.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04039/4.688, allocations: 19.67 MB / 1.094 GB, free: 70.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.358e-05/4.688, allocations: 9.312 kB / 1.094 GB, free: 70.21 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05859/4.747, allocations: 23.43 MB / 1.117 GB, free: 60.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008588/4.756, allocations: 1.924 MB / 1.119 GB, free: 59.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004457/4.76, allocations: 21.22 kB / 1.119 GB, free: 59.08 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01094/4.771, allocations: 357.9 kB / 1.119 GB, free: 59.08 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002816/4.774, allocations: 397.2 kB / 1.119 GB, free: 59.02 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008614/4.775, allocations: 164 kB / 1.12 GB, free: 58.98 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01392/4.789, allocations: 5.356 MB / 1.125 GB, free: 57.1 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.82e-07/4.789, allocations: 0 / 1.125 GB, free: 57.1 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.02308/4.812, allocations: 2.664 MB / 1.127 GB, free: 55.92 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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%) 18,(4,75.0%) 18,(4,75.0%) 17,(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05609/4.868, allocations: 24.96 MB / 1.152 GB, free: 33.74 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03993/4.908, allocations: 16.33 MB / 1.168 GB, free: 19.82 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.711e-05/4.908, allocations: 0 / 1.168 GB, free: 19.82 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01864/4.927, allocations: 6.86 MB / 1.174 GB, free: 13.84 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0108/4.938, allocations: 0.9553 MB / 1.175 GB, free: 13.04 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4756/5.413, allocations: 29.93 MB / 1.205 GB, free: 93.43 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02262/5.436, allocations: 8.798 MB / 1.213 GB, free: 92.4 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0164/5.452, allocations: 6.3 MB / 1.219 GB, free: 92.4 MB / 0.4949 GB Notification: Performance of SimCode: time 2.134e-06/5.453, allocations: 0 / 1.219 GB, free: 92.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.507/13.96, allocations: 433 MB / 1.642 GB, free: 126.3 MB / 0.5418 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