Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.732/2.732, allocations: 235.1 MB / 242 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1786/2.911, allocations: 57.19 MB / 299.2 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/3.21, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4969/3.707, allocations: 102.2 MB / 456.2 MB, free: 34.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/3.707, allocations: 78.06 kB / 456.3 MB, free: 34.46 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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.7541/4.462, allocations: 128.5 MB / 0.5711 GB, free: 13.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.318e-05/4.462, allocations: 12 kB / 0.5711 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07283/4.534, allocations: 7.634 MB / 0.5785 GB, free: 6.156 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03767/4.572, allocations: 7.424 MB / 0.5858 GB, free: 14.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005388/4.573, allocations: 188 kB / 0.5859 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004409/4.577, allocations: 347.9 kB / 0.5863 GB, free: 14.14 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03679/4.614, allocations: 10.43 MB / 0.5965 GB, free: 3.711 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05336/4.667, allocations: 14.34 MB / 0.6105 GB, free: 4.203 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005291/4.668, allocations: 67.39 kB / 0.6105 GB, free: 4.137 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003854/4.672, allocations: 39.94 kB / 0.6106 GB, free: 4.098 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004694/4.677, allocations: 1.717 MB / 0.6122 GB, free: 2.379 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3448/5.022, allocations: 62.37 MB / 0.6732 GB, free: 95.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01618/5.038, allocations: 4.676 MB / 0.6777 GB, free: 95.06 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.013/5.051, allocations: 3.629 MB / 0.6813 GB, free: 95.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07009/5.121, allocations: 15.54 MB / 0.6964 GB, free: 88.83 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/5.121, allocations: 69.22 kB / 0.6965 GB, free: 88.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=295): time 1.216e-05/5.121, allocations: 0 / 0.6965 GB, free: 88.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=345): time 0.1884/5.31, allocations: 29.21 MB / 0.725 GB, free: 78.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/5.31, allocations: 220.3 kB / 0.7252 GB, free: 78.47 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/5.323, allocations: 4.329 MB / 0.7295 GB, free: 76.95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001121/5.324, allocations: 26.61 kB / 0.7295 GB, free: 76.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004615/5.329, allocations: 4.177 MB / 0.7336 GB, free: 73.86 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002782/5.332, allocations: 1.238 MB / 0.7348 GB, free: 72.94 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002426/5.334, allocations: 0 / 0.7348 GB, free: 72.94 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001211/5.336, allocations: 0.6946 MB / 0.7355 GB, free: 72.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01531/5.351, allocations: 4.557 MB / 0.7399 GB, free: 70.78 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01937/5.37, allocations: 9.718 MB / 0.7494 GB, free: 62.13 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01947/5.39, allocations: 6.627 MB / 0.7559 GB, free: 56.86 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002206/5.39, allocations: 52 kB / 0.7559 GB, free: 56.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.102/5.492, allocations: 17.69 MB / 0.7732 GB, free: 42.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/5.492, allocations: 8.25 kB / 0.7732 GB, free: 42.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003554/5.493, allocations: 187.8 kB / 0.7734 GB, free: 42.53 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05587/5.549, allocations: 5.342 MB / 0.7786 GB, free: 39.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01821/5.567, allocations: 2.086 MB / 0.7806 GB, free: 37.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06892/5.636, allocations: 20.89 MB / 0.801 GB, free: 18.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01554/5.652, allocations: 308 kB / 0.8013 GB, free: 18.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002971/5.655, allocations: 0.5319 MB / 0.8019 GB, free: 18.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 838 * 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 (1112): * Single equations (assignments): 1104 * 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.003561/5.658, allocations: 0.5605 MB / 0.8024 GB, free: 17.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001757/5.66, allocations: 478.9 kB / 0.8029 GB, free: 17.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08405/5.744, allocations: 12.09 MB / 0.8147 GB, free: 7.176 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002258/5.744, allocations: 48 kB / 0.8147 GB, free: 7.129 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.743e-05/5.744, allocations: 8 kB / 0.8147 GB, free: 7.121 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.901e-05/5.745, allocations: 19.94 kB / 0.8147 GB, free: 7.102 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3295/6.074, allocations: 22.53 MB / 0.8367 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.948e-05/6.074, allocations: 7.375 kB / 0.8368 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007738/6.082, allocations: 0.5124 MB / 0.8373 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04962/6.132, allocations: 4.333 MB / 0.8415 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/6.133, allocations: 24.39 kB / 0.8415 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05145/6.184, allocations: 16.8 MB / 0.8579 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/6.184, allocations: 6.906 kB / 0.8579 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08773/6.272, allocations: 17.3 MB / 0.8748 GB, free: 112.2 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.142/6.414, allocations: 33.55 MB / 0.9076 GB, free: 98.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007499/6.422, allocations: 1.199 MB / 0.9087 GB, free: 98.51 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002785/6.425, allocations: 7.281 kB / 0.9088 GB, free: 98.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008905/6.433, allocations: 137.7 kB / 0.9089 GB, free: 98.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001974/6.436, allocations: 152.4 kB / 0.909 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001069/6.437, allocations: 90.64 kB / 0.9091 GB, free: 98.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01077/6.447, allocations: 2.903 MB / 0.912 GB, free: 97.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01624/6.464, allocations: 1.483 MB / 0.9134 GB, free: 97.45 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 (260): * Single equations (assignments): 252 * 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.001742/6.466, allocations: 166.4 kB / 0.9136 GB, free: 97.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03105/6.497, allocations: 10.31 MB / 0.9236 GB, free: 91.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.066e-05/6.497, allocations: 4 kB / 0.9236 GB, free: 91.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0115/6.508, allocations: 3.901 MB / 0.9274 GB, free: 88.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006075/6.514, allocations: 452.2 kB / 0.9279 GB, free: 87.99 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05199/6.566, allocations: 13.73 MB / 0.9413 GB, free: 75.69 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01851/6.585, allocations: 5.135 MB / 0.9463 GB, free: 71.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.934e-06/6.585, allocations: 0 / 0.9463 GB, free: 71.79 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat