Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Force2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.555/2.555, allocations: 235.1 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.565e-05/2.564e-05, allocations: 4 kB / 299.6 MB, free: 192 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3814, allocations: 54.85 MB / 354.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.5802, allocations: 104.7 MB / 459.1 MB, free: 6.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.5806, allocations: 79.95 kB / 459.2 MB, free: 6.352 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.64/2.221, allocations: 231.2 MB / 0.6742 GB, free: 40.45 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/2.221, allocations: 0 / 0.6742 GB, free: 40.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008705/2.222, allocations: 251.9 kB / 0.6744 GB, free: 40.44 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.05237/2.274, allocations: 12.24 MB / 0.6864 GB, free: 35.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/2.274, allocations: 8.875 kB / 0.6864 GB, free: 35.99 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09988/2.374, allocations: 12.79 MB / 0.6989 GB, free: 35.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04671/2.421, allocations: 13.21 MB / 0.7118 GB, free: 33.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008287/2.422, allocations: 414.5 kB / 0.7122 GB, free: 33.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006399/2.428, allocations: 0.738 MB / 0.7129 GB, free: 33.63 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04571/2.474, allocations: 17.45 MB / 0.73 GB, free: 32.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06915/2.543, allocations: 25.78 MB / 0.7551 GB, free: 8.504 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009019/2.544, allocations: 141.7 kB / 0.7553 GB, free: 8.434 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005541/2.55, allocations: 71.47 kB / 0.7553 GB, free: 8.367 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006714/2.556, allocations: 2.86 MB / 0.7581 GB, free: 5.992 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6477/3.204, allocations: 121 MB / 0.8763 GB, free: 32.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02999/3.234, allocations: 10.93 MB / 0.8869 GB, free: 30.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02214/3.256, allocations: 7.678 MB / 0.8944 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003427/3.26, allocations: 1.092 MB / 0.8955 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/3.26, allocations: 98.91 kB / 0.8956 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=552): time 1.855e-05/3.26, allocations: 0 / 0.8956 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=640): time 0.2281/3.488, allocations: 62.8 MB / 0.9569 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/3.488, allocations: 383 kB / 0.9573 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01916/3.507, allocations: 7.909 MB / 0.965 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001794/3.509, allocations: 25.7 kB / 0.965 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007896/3.517, allocations: 8.548 MB / 0.9734 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004701/3.522, allocations: 2.282 MB / 0.9756 GB, free: 0.6953 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002598/3.525, allocations: 0 / 0.9756 GB, free: 0.6953 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001456/3.526, allocations: 0.9777 MB / 0.9766 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01824/3.544, allocations: 6.425 MB / 0.9828 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02759/3.572, allocations: 14.89 MB / 0.9974 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02554/3.598, allocations: 9.663 MB / 1.007 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003722/3.598, allocations: 84 kB / 1.007 GB, free: 0.6992 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2053) (initialization): time 0.5019/4.1, allocations: 22.94 MB / 1.029 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002962/4.1, allocations: 133.2 kB / 1.029 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006678/4.101, allocations: 301.3 kB / 1.03 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01593/4.117, allocations: 3.308 MB / 1.033 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02874/4.146, allocations: 3.845 MB / 1.037 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04637/4.192, allocations: 21.26 MB / 1.057 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0215/4.214, allocations: 0.6374 MB / 1.058 GB, free: 117.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004669/4.218, allocations: 0.9047 MB / 1.059 GB, free: 117.8 MB / 0.5573 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.006867/4.225, allocations: 0.8912 MB / 1.06 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04142/4.267, allocations: 13.2 MB / 1.073 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004055/4.271, allocations: 0.8987 MB / 1.074 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04456/4.315, allocations: 13.83 MB / 1.087 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001601/4.316, allocations: 65.53 kB / 1.087 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.188e-05/4.316, allocations: 15.59 kB / 1.087 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001773/4.316, allocations: 36.59 kB / 1.087 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09079/4.407, allocations: 28.85 MB / 1.115 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.792e-05/4.407, allocations: 10.62 kB / 1.115 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01395/4.421, allocations: 1.251 MB / 1.117 GB, free: 110.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01391/4.435, allocations: 2.79 MB / 1.119 GB, free: 109.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0019/4.437, allocations: 26.28 kB / 1.119 GB, free: 109.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04161/4.478, allocations: 19.67 MB / 1.139 GB, free: 99.28 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-05/4.478, allocations: 11.97 kB / 1.139 GB, free: 99.28 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05801/4.536, allocations: 23.42 MB / 1.161 GB, free: 81.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008313/4.545, allocations: 1.924 MB / 1.163 GB, free: 79.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004802/4.55, allocations: 18.11 kB / 1.163 GB, free: 79.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01182/4.561, allocations: 357.2 kB / 1.164 GB, free: 79.75 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002789/4.564, allocations: 389 kB / 1.164 GB, free: 79.51 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00171/4.566, allocations: 173.4 kB / 1.164 GB, free: 79.35 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0146/4.581, allocations: 5.356 MB / 1.169 GB, free: 74.74 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.152e-06/4.581, allocations: 0 / 1.169 GB, free: 74.74 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02234/4.603, allocations: 2.656 MB / 1.172 GB, free: 72.1 MB / 0.5573 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.0593/4.662, allocations: 24.96 MB / 1.196 GB, free: 49.91 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04147/4.704, allocations: 16.33 MB / 1.212 GB, free: 35.68 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/4.704, allocations: 4 kB / 1.212 GB, free: 35.67 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01975/4.724, allocations: 6.853 MB / 1.219 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01059/4.734, allocations: 0.9604 MB / 1.22 GB, free: 28.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5634/5.298, allocations: 28.71 MB / 1.248 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03197/5.33, allocations: 8.795 MB / 1.257 GB, free: 123 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0299/5.36, allocations: 5.078 MB / 1.262 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01849/5.378, allocations: 6.197 MB / 1.268 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.393e-06/5.378, allocations: 0 / 1.268 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9973/6.376, allocations: 214.1 MB / 1.477 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002289/6.376, allocations: 134.3 kB / 1.477 GB, free: 107.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.41/17.79, allocations: 0 / 1.477 GB, free: 107.2 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Force2_res.mat does not exist to compare? outputFormat=mat