Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.595/2.595, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.803e-05/3.813e-05, allocations: 7.984 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4507/0.4508, allocations: 54.85 MB / 359.9 MB, free: 3.148 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.635, allocations: 99.48 MB / 459.4 MB, free: 13.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.6354, allocations: 75.95 kB / 459.4 MB, free: 13.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9597/1.595, allocations: 137 MB / 0.5825 GB, free: 97.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.595, allocations: 0 / 0.5825 GB, free: 97.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005394/1.596, allocations: 138.2 kB / 0.5826 GB, free: 97.36 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.02869/1.624, allocations: 6.628 MB / 0.5891 GB, free: 93.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/1.625, allocations: 7.75 kB / 0.5891 GB, free: 93.62 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006491/1.631, allocations: 1.187 MB / 0.5903 GB, free: 92.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07115/1.702, allocations: 9.492 MB / 0.5995 GB, free: 87.99 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03315/1.735, allocations: 8.723 MB / 0.6081 GB, free: 80.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007757/1.736, allocations: 0.5073 MB / 0.6086 GB, free: 79.67 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004603/1.741, allocations: 0.6796 MB / 0.6092 GB, free: 79.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05048/1.791, allocations: 15.89 MB / 0.6247 GB, free: 61.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006291/1.792, allocations: 103 kB / 0.6248 GB, free: 61.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003783/1.796, allocations: 329 kB / 0.6252 GB, free: 61.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003463/1.799, allocations: 1.453 MB / 0.6266 GB, free: 59.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03994/1.839, allocations: 12.39 MB / 0.6387 GB, free: 47.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5506/2.39, allocations: 70.68 MB / 0.7077 GB, free: 54.81 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02537/2.416, allocations: 5.815 MB / 0.7134 GB, free: 54.12 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007298/2.423, allocations: 3.032 MB / 0.7163 GB, free: 54.07 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003389/2.423, allocations: 46.48 kB / 0.7164 GB, free: 54.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/2.423, allocations: 65.97 kB / 0.7164 GB, free: 54.03 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 6.863e-06/2.423, allocations: 1.312 kB / 0.7164 GB, free: 54.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.08583/2.509, allocations: 18.96 MB / 0.735 GB, free: 49.04 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/2.509, allocations: 266.2 kB / 0.7352 GB, free: 48.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/2.524, allocations: 6.084 MB / 0.7412 GB, free: 48.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006523/2.525, allocations: 64.19 kB / 0.7412 GB, free: 48.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004773/2.53, allocations: 4.866 MB / 0.746 GB, free: 45.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001717/2.532, allocations: 1.011 MB / 0.747 GB, free: 45.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/2.533, allocations: 170.3 kB / 0.7471 GB, free: 45.13 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005207/2.533, allocations: 0.6549 MB / 0.7478 GB, free: 44.81 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006859/2.54, allocations: 2.787 MB / 0.7505 GB, free: 44.79 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/2.551, allocations: 7.866 MB / 0.7582 GB, free: 37.64 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/2.562, allocations: 4.669 MB / 0.7627 GB, free: 36.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001815/2.562, allocations: 52.5 kB / 0.7628 GB, free: 36.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02947/2.591, allocations: 10.54 MB / 0.7731 GB, free: 33.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001387/2.591, allocations: 84.22 kB / 0.7731 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003003/2.592, allocations: 181.6 kB / 0.7733 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003343/2.595, allocations: 0.8097 MB / 0.7741 GB, free: 33.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/2.607, allocations: 1.929 MB / 0.776 GB, free: 33.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/2.62, allocations: 8.296 MB / 0.7841 GB, free: 27.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009992/2.63, allocations: 454.3 kB / 0.7845 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/2.631, allocations: 0.5051 MB / 0.785 GB, free: 27.02 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1033): * Single equations (assignments): 1027 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001605/2.633, allocations: 0.7586 MB / 0.7858 GB, free: 26.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001524/2.635, allocations: 0.5837 MB / 0.7863 GB, free: 26.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/2.645, allocations: 4.273 MB / 0.7905 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-05/2.646, allocations: 32.22 kB / 0.7905 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/2.646, allocations: 6.812 kB / 0.7905 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.205e-05/2.646, allocations: 11.48 kB / 0.7906 GB, free: 24.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03208/2.678, allocations: 11.16 MB / 0.8014 GB, free: 16.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/2.678, allocations: 4 kB / 0.8015 GB, free: 16.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004048/2.682, allocations: 413.6 kB / 0.8018 GB, free: 16.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/2.684, allocations: 0.4914 MB / 0.8023 GB, free: 16.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000412/2.685, allocations: 55.52 kB / 0.8024 GB, free: 16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/2.696, allocations: 7.385 MB / 0.8096 GB, free: 8.871 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/2.696, allocations: 32 / 0.8096 GB, free: 8.871 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/2.712, allocations: 7.624 MB / 0.817 GB, free: 1.996 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003757/2.716, allocations: 0.9917 MB / 0.818 GB, free: 1.062 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/2.718, allocations: 40 kB / 0.818 GB, free: 1.023 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004977/2.723, allocations: 144.1 kB / 0.8182 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000838/2.724, allocations: 152.6 kB / 0.8183 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/2.724, allocations: 66.48 kB / 0.8184 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.02753/2.751, allocations: 5.227 MB / 0.8235 GB, free: 15.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.913e-06/2.752, allocations: 0 / 0.8235 GB, free: 15.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01209/2.764, allocations: 1.515 MB / 0.825 GB, free: 13.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02026/2.784, allocations: 8.464 MB / 0.8332 GB, free: 5.906 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01801/2.802, allocations: 6.843 MB / 0.8399 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/2.802, allocations: 0 / 0.8399 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005955/2.808, allocations: 2.352 MB / 0.8422 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006984/2.815, allocations: 0.7594 MB / 0.843 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05116/2.866, allocations: 14.22 MB / 0.8568 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01342/2.88, allocations: 5.022 MB / 0.8617 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01477/2.895, allocations: 2.763 MB / 0.8644 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008842/2.904, allocations: 3.233 MB / 0.8676 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of SimCode: time 2.124e-06/2.904, allocations: 4 kB / 0.8676 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.031/3.934, allocations: 121.6 MB / 0.9864 GB, free: 134.1 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002351/3.935, allocations: 165.6 kB / 0.9865 GB, free: 133.9 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/11.7, allocations: 7.938 kB / 0.9865 GB, free: 133.9 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat