Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.764e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5387, allocations: 96.08 MB / 417.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.539, allocations: 75.95 kB / 418 MB, free: 9.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8437/1.383, allocations: 126.4 MB / 0.5316 GB, free: 91.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.383, allocations: 0 / 0.5316 GB, free: 91.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003653/1.383, allocations: 118.5 kB / 0.5317 GB, free: 91.07 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.0267/1.41, allocations: 6.324 MB / 0.5379 GB, free: 88.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/1.41, allocations: 14.41 kB / 0.5379 GB, free: 88.62 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006627/1.417, allocations: 1.312 MB / 0.5392 GB, free: 88.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06002/1.477, allocations: 8.326 MB / 0.5473 GB, free: 88.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/1.505, allocations: 7.363 MB / 0.5545 GB, free: 87.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006425/1.506, allocations: 450.8 kB / 0.5549 GB, free: 87.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004176/1.51, allocations: 0.5832 MB / 0.5555 GB, free: 87.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04874/1.559, allocations: 15.61 MB / 0.5707 GB, free: 79.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004295/1.559, allocations: 68.16 kB / 0.5708 GB, free: 79.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003739/1.563, allocations: 279 kB / 0.5711 GB, free: 79.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/1.567, allocations: 1.625 MB / 0.5727 GB, free: 79.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04142/1.608, allocations: 13.8 MB / 0.5861 GB, free: 67.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/1.716, allocations: 64.01 MB / 0.6486 GB, free: 2.664 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3299/2.046, allocations: 6.405 MB / 0.6549 GB, free: 82.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008444/2.055, allocations: 3.524 MB / 0.6583 GB, free: 82.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04357/2.098, allocations: 14.45 MB / 0.6724 GB, free: 79.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001051/2.099, allocations: 61.09 kB / 0.6725 GB, free: 79.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 1.245e-05/2.099, allocations: 0 / 0.6725 GB, free: 79.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1614/2.26, allocations: 29.78 MB / 0.7016 GB, free: 72.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.693e-05/2.26, allocations: 216.5 kB / 0.7018 GB, free: 72.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/2.272, allocations: 4.776 MB / 0.7064 GB, free: 70.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009498/2.273, allocations: 73.83 kB / 0.7065 GB, free: 70.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003832/2.277, allocations: 4.284 MB / 0.7107 GB, free: 67.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002188/2.279, allocations: 1.254 MB / 0.7119 GB, free: 66.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/2.281, allocations: 171.3 kB / 0.7121 GB, free: 66.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008007/2.282, allocations: 0.6858 MB / 0.7128 GB, free: 65.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01068/2.292, allocations: 4.489 MB / 0.7171 GB, free: 64.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/2.307, allocations: 9.421 MB / 0.7263 GB, free: 55.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/2.321, allocations: 6.411 MB / 0.7326 GB, free: 53.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001971/2.322, allocations: 52.38 kB / 0.7327 GB, free: 53.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.0704/2.392, allocations: 18.37 MB / 0.7506 GB, free: 42.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/2.392, allocations: 80.94 kB / 0.7507 GB, free: 42.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002451/2.392, allocations: 172 kB / 0.7508 GB, free: 42.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03983/2.432, allocations: 5.636 MB / 0.7563 GB, free: 39.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01367/2.446, allocations: 2.06 MB / 0.7584 GB, free: 37.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04898/2.495, allocations: 23.62 MB / 0.7814 GB, free: 16.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01174/2.507, allocations: 0.5422 MB / 0.7819 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/2.509, allocations: 0.5055 MB / 0.7824 GB, free: 15.16 MB / 426.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.00375/2.513, allocations: 0.7499 MB / 0.7832 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001789/2.515, allocations: 0.5008 MB / 0.7837 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05513/2.57, allocations: 12.36 MB / 0.7957 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/2.57, allocations: 57.55 kB / 0.7958 GB, free: 1.422 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.156e-05/2.57, allocations: 8 kB / 0.7958 GB, free: 1.414 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.867e-05/2.57, allocations: 11.95 kB / 0.7958 GB, free: 1.402 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4139/2.984, allocations: 23.96 MB / 0.8192 GB, free: 85.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.927e-05/2.984, allocations: 8.672 kB / 0.8192 GB, free: 85.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006114/2.991, allocations: 0.5783 MB / 0.8198 GB, free: 85.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03587/3.026, allocations: 4.64 MB / 0.8243 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009682/3.027, allocations: 57.48 kB / 0.8244 GB, free: 85.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04048/3.068, allocations: 18.92 MB / 0.8428 GB, free: 82.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/3.068, allocations: 7.219 kB / 0.8429 GB, free: 82.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05946/3.127, allocations: 17.38 MB / 0.8598 GB, free: 75.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004956/3.133, allocations: 1.219 MB / 0.861 GB, free: 75.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0022/3.135, allocations: 63.98 kB / 0.8611 GB, free: 75.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006527/3.141, allocations: 248.4 kB / 0.8613 GB, free: 75.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001507/3.143, allocations: 196.5 kB / 0.8615 GB, free: 75.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005682/3.143, allocations: 83.42 kB / 0.8616 GB, free: 75.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009029/3.153, allocations: 3.313 MB / 0.8648 GB, free: 74.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.122e-06/3.153, allocations: 3.219 kB / 0.8648 GB, free: 74.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01081/3.163, allocations: 1.71 MB / 0.8665 GB, free: 73.95 MB / 442.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.0613/3.225, allocations: 19.09 MB / 0.8851 GB, free: 65.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02353/3.248, allocations: 10.39 MB / 0.8953 GB, free: 62.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/3.248, allocations: 1.969 kB / 0.8953 GB, free: 62.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009264/3.258, allocations: 3.954 MB / 0.8991 GB, free: 60.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005217/3.263, allocations: 0.5853 MB / 0.8997 GB, free: 60.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05058/3.314, allocations: 16.27 MB / 0.9156 GB, free: 46.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01159/3.325, allocations: 4.754 MB / 0.9202 GB, free: 42.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008341/3.334, allocations: 2.964 MB / 0.9231 GB, free: 40.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.683e-06/3.334, allocations: 3.531 kB / 0.9231 GB, free: 40.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.58/8.914, allocations: 180.5 MB / 1.099 GB, free: 30.02 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat