Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.415/2.415, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.663e-05/3.667e-05, allocations: 0 / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4003, allocations: 54.87 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.6216, allocations: 102.9 MB / 462.7 MB, free: 9.945 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.622, allocations: 77.44 kB / 462.8 MB, free: 9.871 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8841/1.506, allocations: 126.4 MB / 0.5754 GB, free: 100.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.823e-06/1.506, allocations: 3.938 kB / 0.5754 GB, free: 100.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003635/1.506, allocations: 114.9 kB / 0.5755 GB, free: 100.2 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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.02581/1.532, allocations: 6.326 MB / 0.5817 GB, free: 97.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/1.532, allocations: 11.09 kB / 0.5817 GB, free: 97.24 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00646/1.539, allocations: 1.307 MB / 0.583 GB, free: 96.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05907/1.598, allocations: 8.32 MB / 0.5911 GB, free: 93.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.625, allocations: 7.364 MB / 0.5983 GB, free: 89.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005457/1.626, allocations: 453 kB / 0.5988 GB, free: 89.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003786/1.629, allocations: 0.5856 MB / 0.5993 GB, free: 88.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04664/1.676, allocations: 15.55 MB / 0.6145 GB, free: 72.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000517/1.677, allocations: 71.34 kB / 0.6146 GB, free: 72.31 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00396/1.681, allocations: 286.7 kB / 0.6148 GB, free: 72.08 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003563/1.684, allocations: 1.615 MB / 0.6164 GB, free: 70.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04126/1.726, allocations: 13.58 MB / 0.6297 GB, free: 56.88 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1075/1.833, allocations: 64.02 MB / 0.6922 GB, free: 7.355 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02412/1.857, allocations: 6.385 MB / 0.6984 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3469/2.204, allocations: 3.527 MB / 0.7019 GB, free: 108.4 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0398/2.244, allocations: 14.44 MB / 0.716 GB, free: 105.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.183e-05/2.244, allocations: 66.86 kB / 0.716 GB, free: 105 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.133e-06/2.244, allocations: 0 / 0.716 GB, free: 105 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1567/2.401, allocations: 29.76 MB / 0.7451 GB, free: 98.79 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/2.401, allocations: 208.4 kB / 0.7453 GB, free: 98.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01405/2.415, allocations: 4.775 MB / 0.75 GB, free: 96.85 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00136/2.417, allocations: 73.48 kB / 0.75 GB, free: 96.79 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005495/2.422, allocations: 4.286 MB / 0.7542 GB, free: 93.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002809/2.425, allocations: 1.25 MB / 0.7554 GB, free: 92.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/2.426, allocations: 175.1 kB / 0.7556 GB, free: 92.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007699/2.427, allocations: 0.6843 MB / 0.7563 GB, free: 91.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01509/2.442, allocations: 4.491 MB / 0.7607 GB, free: 90.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01934/2.462, allocations: 9.37 MB / 0.7698 GB, free: 82.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01974/2.482, allocations: 6.414 MB / 0.7761 GB, free: 79.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002311/2.482, allocations: 51.34 kB / 0.7761 GB, free: 79.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.06908/2.551, allocations: 17.9 MB / 0.7936 GB, free: 67.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/2.551, allocations: 79.94 kB / 0.7937 GB, free: 67.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002601/2.551, allocations: 176 kB / 0.7939 GB, free: 67.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03902/2.59, allocations: 5.623 MB / 0.7994 GB, free: 64.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01353/2.604, allocations: 2.058 MB / 0.8014 GB, free: 62.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04729/2.651, allocations: 23.62 MB / 0.8244 GB, free: 39.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.663, allocations: 0.5432 MB / 0.825 GB, free: 39.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002249/2.665, allocations: 0.5006 MB / 0.8254 GB, free: 38.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.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 (1058): * Single equations (assignments): 1050 * 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.002778/2.668, allocations: 0.7541 MB / 0.8262 GB, free: 37.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/2.67, allocations: 0.4897 MB / 0.8267 GB, free: 37.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05154/2.721, allocations: 12.35 MB / 0.8387 GB, free: 24.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00012/2.721, allocations: 53.25 kB / 0.8388 GB, free: 24.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.991e-05/2.721, allocations: 8 kB / 0.8388 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-05/2.721, allocations: 19.94 kB / 0.8388 GB, free: 24.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0847/2.806, allocations: 23.95 MB / 0.8622 GB, free: 412 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.386e-05/2.806, allocations: 8.594 kB / 0.8622 GB, free: 404 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005892/2.812, allocations: 0.5772 MB / 0.8628 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03622/2.848, allocations: 4.649 MB / 0.8673 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009165/2.849, allocations: 52.62 kB / 0.8674 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.404/3.253, allocations: 18.92 MB / 0.8858 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/3.254, allocations: 6.406 kB / 0.8858 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06194/3.315, allocations: 17.38 MB / 0.9028 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004754/3.32, allocations: 1.217 MB / 0.904 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002063/3.322, allocations: 57.95 kB / 0.904 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006475/3.329, allocations: 247.3 kB / 0.9043 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001115/3.33, allocations: 196.1 kB / 0.9045 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004205/3.331, allocations: 84.98 kB / 0.9046 GB, free: 106.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007503/3.338, allocations: 3.312 MB / 0.9078 GB, free: 105.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.02e-07/3.338, allocations: 0 / 0.9078 GB, free: 105.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01189/3.35, allocations: 1.713 MB / 0.9095 GB, free: 105.3 MB / 490.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 (254): * Single equations (assignments): 246 * 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.05758/3.408, allocations: 19.09 MB / 0.9281 GB, free: 97.16 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02301/3.431, allocations: 10.13 MB / 0.938 GB, free: 93.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/3.431, allocations: 2.25 kB / 0.938 GB, free: 93.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00898/3.44, allocations: 3.913 MB / 0.9418 GB, free: 92.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005024/3.445, allocations: 0.5782 MB / 0.9424 GB, free: 91.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05942/3.504, allocations: 16.27 MB / 0.9583 GB, free: 84.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0121/3.516, allocations: 4.761 MB / 0.9629 GB, free: 80.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009595/3.526, allocations: 2.966 MB / 0.9658 GB, free: 78.24 MB / 490.7 MB Notification: Performance of SimCode: time 1.543e-06/3.526, allocations: 0 / 0.9658 GB, free: 78.24 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.539/9.065, allocations: 179.1 MB / 1.141 GB, free: 96.41 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat