Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.499/2.499, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1652/2.664, allocations: 57.2 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/2.995, allocations: 54.84 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4436/3.438, allocations: 99.43 MB / 453.5 MB, free: 33.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/3.439, allocations: 78 kB / 453.6 MB, free: 33.36 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.5519/3.991, allocations: 95.94 MB / 0.5366 GB, free: 1.289 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/3.991, allocations: 8 kB / 0.5366 GB, free: 1.281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06138/4.052, allocations: 6.338 MB / 0.5428 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02993/4.082, allocations: 6.368 MB / 0.5491 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003687/4.082, allocations: 136 kB / 0.5492 GB, free: 4.363 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003051/4.086, allocations: 259.9 kB / 0.5494 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0232/4.109, allocations: 6.807 MB / 0.5561 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03321/4.142, allocations: 9.781 MB / 0.5656 GB, free: 2.492 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003985/4.143, allocations: 71.34 kB / 0.5657 GB, free: 2.422 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002279/4.145, allocations: 32 kB / 0.5657 GB, free: 2.391 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003034/4.148, allocations: 1.092 MB / 0.5668 GB, free: 1.293 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09756/4.245, allocations: 46.94 MB / 0.6126 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.214/4.46, allocations: 3.021 MB / 0.6156 GB, free: 147 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004888/4.465, allocations: 1.932 MB / 0.6175 GB, free: 147 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02372/4.488, allocations: 8.362 MB / 0.6256 GB, free: 143.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/4.488, allocations: 54.78 kB / 0.6257 GB, free: 143.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=180): time 6.602e-06/4.488, allocations: 0 / 0.6257 GB, free: 143.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.1687/4.657, allocations: 24.75 MB / 0.6499 GB, free: 141.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/4.657, allocations: 207.5 kB / 0.6501 GB, free: 141.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009063/4.666, allocations: 3.315 MB / 0.6533 GB, free: 141 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008089/4.667, allocations: 31.69 kB / 0.6533 GB, free: 141 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003412/4.671, allocations: 2.97 MB / 0.6562 GB, free: 139.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002228/4.673, allocations: 0.8536 MB / 0.6571 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/4.674, allocations: 3.188 kB / 0.6571 GB, free: 138.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006379/4.675, allocations: 0.5764 MB / 0.6576 GB, free: 138.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009703/4.685, allocations: 3.388 MB / 0.6609 GB, free: 138.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01363/4.698, allocations: 7.117 MB / 0.6679 GB, free: 132.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01515/4.714, allocations: 4.998 MB / 0.6728 GB, free: 130.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/4.714, allocations: 42.28 kB / 0.6728 GB, free: 130.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=846) (initialization): time 0.0876/4.801, allocations: 14.67 MB / 0.6871 GB, free: 127 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/4.802, allocations: 7.188 kB / 0.6871 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002562/4.802, allocations: 132.7 kB / 0.6873 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06607/4.868, allocations: 5.616 MB / 0.6927 GB, free: 126.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01844/4.886, allocations: 1.451 MB / 0.6942 GB, free: 125.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08759/4.974, allocations: 22.6 MB / 0.7162 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/4.985, allocations: 226.3 kB / 0.7164 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00218/4.987, allocations: 399.2 kB / 0.7168 GB, free: 109.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (769): * Single equations (assignments): 764 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002453/4.99, allocations: 446 kB / 0.7173 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001368/4.991, allocations: 371.2 kB / 0.7176 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07033/5.061, allocations: 10.58 MB / 0.7279 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001225/5.062, allocations: 27.91 kB / 0.728 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.398e-05/5.062, allocations: 8 kB / 0.728 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.306e-05/5.062, allocations: 11.2 kB / 0.728 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1246/5.186, allocations: 19.08 MB / 0.7466 GB, free: 84.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.653e-05/5.186, allocations: 7.469 kB / 0.7466 GB, free: 84.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006481/5.193, allocations: 343.4 kB / 0.747 GB, free: 84.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0588/5.252, allocations: 4.677 MB / 0.7515 GB, free: 79.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000845/5.253, allocations: 19.98 kB / 0.7515 GB, free: 79.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06419/5.317, allocations: 18.6 MB / 0.7697 GB, free: 60.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-05/5.317, allocations: 7.906 kB / 0.7697 GB, free: 60.73 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08982/5.407, allocations: 14.46 MB / 0.7838 GB, free: 46.04 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1242/5.531, allocations: 26.65 MB / 0.8099 GB, free: 19.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004605/5.536, allocations: 0.9257 MB / 0.8108 GB, free: 18.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001685/5.537, allocations: 7.984 kB / 0.8108 GB, free: 18.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005956/5.543, allocations: 83.88 kB / 0.8108 GB, free: 18.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000904/5.544, allocations: 121.2 kB / 0.811 GB, free: 17.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004956/5.545, allocations: 68 kB / 0.811 GB, free: 17.92 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.006833/5.552, allocations: 2.249 MB / 0.8132 GB, free: 15.66 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01184/5.564, allocations: 1.156 MB / 0.8144 GB, free: 14.51 MB / 474.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 (165): * Single equations (assignments): 160 * Array equations: 3 * 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 {(3,100.0%) 47} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/5.565, allocations: 166.8 kB / 0.8145 GB, free: 14.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2101/5.775, allocations: 7.707 MB / 0.822 GB, free: 143.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/5.775, allocations: 7.719 kB / 0.822 GB, free: 143.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01122/5.786, allocations: 2.997 MB / 0.825 GB, free: 143.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00566/5.792, allocations: 392.8 kB / 0.8253 GB, free: 143.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06678/5.859, allocations: 10.06 MB / 0.8352 GB, free: 141.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02397/5.883, allocations: 3.872 MB / 0.8389 GB, free: 140.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/5.883, allocations: 1.5 kB / 0.8389 GB, free: 140.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat