Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.667/1.667, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.236e-05/4.253e-05, allocations: 7.984 kB / 225.1 MB, free: 2.133 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2624, allocations: 38.77 MB / 263.9 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.4247, allocations: 88.4 MB / 352.3 MB, free: 1.262 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.4251, allocations: 83.95 kB / 352.3 MB, free: 1.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7809/1.206, allocations: 126.2 MB / 478.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.405e-06/1.206, allocations: 4 kB / 478.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004697/1.207, allocations: 119.9 kB / 478.6 MB, free: 10.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02876/1.235, allocations: 6.325 MB / 485 MB, free: 4.352 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/1.235, allocations: 8.031 kB / 485 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006505/1.242, allocations: 1.308 MB / 486.3 MB, free: 3.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06455/1.307, allocations: 8.31 MB / 494.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03096/1.338, allocations: 7.268 MB / 0.4901 GB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007585/1.338, allocations: 455.6 kB / 0.4905 GB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004106/1.342, allocations: 0.5895 MB / 0.4911 GB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3084/1.651, allocations: 15.58 MB / 0.5063 GB, free: 49.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004393/1.651, allocations: 72.33 kB / 0.5064 GB, free: 49.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003455/1.655, allocations: 289 kB / 0.5067 GB, free: 49.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003507/1.658, allocations: 1.614 MB / 0.5082 GB, free: 49.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03989/1.698, allocations: 13.76 MB / 0.5217 GB, free: 48.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/1.805, allocations: 63.97 MB / 0.5841 GB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0221/1.827, allocations: 6.387 MB / 0.5904 GB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006965/1.834, allocations: 3.471 MB / 0.5938 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04122/1.875, allocations: 14.33 MB / 0.6078 GB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.194e-05/1.875, allocations: 60.5 kB / 0.6078 GB, free: 4.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.014e-06/1.875, allocations: 0 / 0.6078 GB, free: 4.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.5187/2.394, allocations: 30.12 MB / 0.6372 GB, free: 80.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.666e-05/2.394, allocations: 210.3 kB / 0.6374 GB, free: 79.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01124/2.405, allocations: 4.764 MB / 0.6421 GB, free: 79.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00092/2.406, allocations: 75.8 kB / 0.6422 GB, free: 79.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004018/2.41, allocations: 4.421 MB / 0.6465 GB, free: 77.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002091/2.412, allocations: 1.244 MB / 0.6477 GB, free: 77.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/2.414, allocations: 175.4 kB / 0.6479 GB, free: 77.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005758/2.414, allocations: 0.6801 MB / 0.6485 GB, free: 76.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01012/2.424, allocations: 4.459 MB / 0.6529 GB, free: 76.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01392/2.438, allocations: 9.405 MB / 0.6621 GB, free: 70.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/2.452, allocations: 6.386 MB / 0.6683 GB, free: 70.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002003/2.453, allocations: 50.5 kB / 0.6684 GB, free: 70.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07416/2.527, allocations: 18.5 MB / 0.6864 GB, free: 66.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000218/2.527, allocations: 80.75 kB / 0.6865 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003553/2.527, allocations: 174.6 kB / 0.6867 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04142/2.569, allocations: 5.623 MB / 0.6922 GB, free: 66.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01339/2.582, allocations: 2.051 MB / 0.6942 GB, free: 65.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05065/2.633, allocations: 23.61 MB / 0.7172 GB, free: 52.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/2.644, allocations: 0.5392 MB / 0.7177 GB, free: 52.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/2.646, allocations: 0.506 MB / 0.7182 GB, free: 51.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002128/2.648, allocations: 0.7475 MB / 0.719 GB, free: 51.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/2.65, allocations: 0.4936 MB / 0.7195 GB, free: 50.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05491/2.705, allocations: 12.27 MB / 0.7314 GB, free: 41.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001987/2.705, allocations: 54.72 kB / 0.7315 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.497e-05/2.705, allocations: 10.77 kB / 0.7315 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.604e-05/2.705, allocations: 20.36 kB / 0.7315 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09703/2.802, allocations: 23.84 MB / 0.7548 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-05/2.802, allocations: 8 kB / 0.7548 GB, free: 19.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00564/2.808, allocations: 0.5661 MB / 0.7554 GB, free: 18.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03503/2.843, allocations: 4.648 MB / 0.7599 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007889/2.844, allocations: 52 kB / 0.7599 GB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3666/3.21, allocations: 18.92 MB / 0.7784 GB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/3.21, allocations: 10.47 kB / 0.7784 GB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05914/3.27, allocations: 17.25 MB / 0.7953 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004989/3.275, allocations: 1.216 MB / 0.7965 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001951/3.277, allocations: 53.31 kB / 0.7965 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006388/3.283, allocations: 249.1 kB / 0.7968 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/3.285, allocations: 194.9 kB / 0.7969 GB, free: 68.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005865/3.285, allocations: 81.55 kB / 0.797 GB, free: 68.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008775/3.294, allocations: 3.304 MB / 0.8003 GB, free: 68.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.292e-06/3.294, allocations: 2.969 kB / 0.8003 GB, free: 68.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01087/3.305, allocations: 1.698 MB / 0.8019 GB, free: 68.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06062/3.366, allocations: 18.98 MB / 0.8204 GB, free: 60.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02392/3.39, allocations: 10.3 MB / 0.8305 GB, free: 56.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/3.39, allocations: 1.203 kB / 0.8305 GB, free: 56.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009065/3.399, allocations: 3.889 MB / 0.8343 GB, free: 55.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005513/3.404, allocations: 0.5847 MB / 0.8349 GB, free: 55.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05963/3.464, allocations: 15.53 MB / 0.85 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01361/3.478, allocations: 4.745 MB / 0.8547 GB, free: 39.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.01801/3.496, allocations: 2.988 MB / 0.8576 GB, free: 37.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00888/3.505, allocations: 2.918 MB / 0.8604 GB, free: 34.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.694e-06/3.505, allocations: 0 / 0.8604 GB, free: 34.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5749/4.08, allocations: 134.5 MB / 0.9918 GB, free: 47.01 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/4.08, allocations: 182.5 kB / 0.992 GB, free: 46.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.112/11.19, allocations: 0 / 0.992 GB, free: 46.78 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat