Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.466e-05/2.452e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3123, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1979/0.5103, allocations: 93.47 MB / 387.7 MB, free: 4.402 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/0.5107, allocations: 91.94 kB / 387.8 MB, free: 4.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.766/1.277, allocations: 123.7 MB / 0.4995 GB, free: 37.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.277, allocations: 0 / 0.4995 GB, free: 37.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003722/1.277, allocations: 112 kB / 0.4996 GB, free: 37.82 MB / 362.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.02555/1.303, allocations: 6.321 MB / 0.5058 GB, free: 31.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/1.303, allocations: 12.03 kB / 0.5058 GB, free: 31.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05926/1.362, allocations: 8.31 MB / 0.5139 GB, free: 23.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02625/1.388, allocations: 7.26 MB / 0.521 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000397/1.389, allocations: 192 kB / 0.5212 GB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003599/1.392, allocations: 351.8 kB / 0.5215 GB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02489/1.417, allocations: 10.11 MB / 0.5314 GB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04149/1.459, allocations: 14.05 MB / 0.5451 GB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004676/1.459, allocations: 75.33 kB / 0.5452 GB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003366/1.463, allocations: 32 kB / 0.5452 GB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/1.467, allocations: 1.616 MB / 0.5468 GB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3951/1.862, allocations: 61.39 MB / 0.6067 GB, free: 44.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009493/1.872, allocations: 5.559 MB / 0.6122 GB, free: 42.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006545/1.878, allocations: 3.364 MB / 0.6154 GB, free: 42.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03444/1.913, allocations: 14.03 MB / 0.6292 GB, free: 38.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.079e-05/1.913, allocations: 60.56 kB / 0.6292 GB, free: 38.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 7.624e-06/1.913, allocations: 2.297 kB / 0.6292 GB, free: 38.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.1259/2.039, allocations: 30.92 MB / 0.6594 GB, free: 28.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/2.039, allocations: 216 kB / 0.6596 GB, free: 28.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01012/2.049, allocations: 4.269 MB / 0.6638 GB, free: 26.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009303/2.05, allocations: 25.7 kB / 0.6638 GB, free: 26.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003734/2.054, allocations: 4.435 MB / 0.6681 GB, free: 23.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00197/2.056, allocations: 1.209 MB / 0.6693 GB, free: 22.13 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/2.057, allocations: 0 / 0.6693 GB, free: 22.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006707/2.058, allocations: 0.7048 MB / 0.67 GB, free: 21.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009651/2.068, allocations: 4.37 MB / 0.6743 GB, free: 17.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01338/2.081, allocations: 9.547 MB / 0.6836 GB, free: 6.586 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/2.094, allocations: 6.361 MB / 0.6898 GB, free: 1.426 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002009/2.095, allocations: 52 kB / 0.6899 GB, free: 1.375 MB / 394.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.08023/2.175, allocations: 18.06 MB / 0.7075 GB, free: 4.977 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/2.175, allocations: 84 kB / 0.7076 GB, free: 4.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003229/2.175, allocations: 184 kB / 0.7077 GB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04324/2.219, allocations: 5.631 MB / 0.7132 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0154/2.234, allocations: 2.129 MB / 0.7153 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3717/2.606, allocations: 21.6 MB / 0.7364 GB, free: 96.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/2.617, allocations: 388.1 kB / 0.7368 GB, free: 96.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002403/2.62, allocations: 0.5283 MB / 0.7373 GB, free: 96.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1105): * Single equations (assignments): 1097 * 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.003752/2.624, allocations: 0.5639 MB / 0.7379 GB, free: 96.61 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05162/2.675, allocations: 11.87 MB / 0.7495 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00181/2.677, allocations: 474.5 kB / 0.7499 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05195/2.729, allocations: 12.02 MB / 0.7616 GB, free: 96.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001424/2.729, allocations: 56.81 kB / 0.7617 GB, free: 96.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.269e-05/2.729, allocations: 10.47 kB / 0.7617 GB, free: 96.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.446e-05/2.729, allocations: 13.78 kB / 0.7617 GB, free: 96.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07832/2.808, allocations: 22.48 MB / 0.7837 GB, free: 88.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.903e-05/2.808, allocations: 6.812 kB / 0.7837 GB, free: 88.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005651/2.813, allocations: 0.5679 MB / 0.7842 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03416/2.848, allocations: 4.627 MB / 0.7888 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000885/2.849, allocations: 19.17 kB / 0.7888 GB, free: 87.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03615/2.885, allocations: 17.32 MB / 0.8057 GB, free: 78.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.488e-05/2.885, allocations: 12.59 kB / 0.8057 GB, free: 78.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05575/2.941, allocations: 16.98 MB / 0.8223 GB, free: 66.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004336/2.945, allocations: 1.176 MB / 0.8234 GB, free: 65.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002188/2.947, allocations: 14.8 kB / 0.8234 GB, free: 65.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005931/2.953, allocations: 199.6 kB / 0.8236 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/2.955, allocations: 188.7 kB / 0.8238 GB, free: 64.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005231/2.955, allocations: 87.98 kB / 0.8239 GB, free: 64.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007298/2.963, allocations: 2.844 MB / 0.8267 GB, free: 61.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.61e-07/2.963, allocations: 0 / 0.8267 GB, free: 61.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01171/2.974, allocations: 1.485 MB / 0.8281 GB, free: 60.3 MB / 426.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.05673/3.031, allocations: 18.69 MB / 0.8464 GB, free: 41.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02127/3.052, allocations: 9.992 MB / 0.8561 GB, free: 31.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/3.053, allocations: 0 / 0.8561 GB, free: 31.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008236/3.061, allocations: 3.825 MB / 0.8599 GB, free: 28.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004703/3.066, allocations: 468.5 kB / 0.8603 GB, free: 27.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05077/3.116, allocations: 15.86 MB / 0.8758 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01138/3.128, allocations: 4.751 MB / 0.8804 GB, free: 6.996 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3077/3.436, allocations: 2.951 MB / 0.8833 GB, free: 96.75 MB / 426.7 MB Notification: Performance of SimCode: time 2.344e-06/3.436, allocations: 0 / 0.8833 GB, free: 96.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.31/8.745, allocations: 177 MB / 1.056 GB, free: 102.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat