Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.605/2.605, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.177/2.782, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/3.062, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5152/3.578, allocations: 100.3 MB / 454.4 MB, free: 33.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003912/3.578, allocations: 80.17 kB / 454.5 MB, free: 33.59 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.5794/4.158, allocations: 104.8 MB / 0.5462 GB, free: 7.527 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.082e-05/4.158, allocations: 12 kB / 0.5462 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05909/4.217, allocations: 6.524 MB / 0.5526 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03467/4.252, allocations: 7.55 MB / 0.5599 GB, free: 9.336 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004611/4.252, allocations: 160 kB / 0.5601 GB, free: 9.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00308/4.255, allocations: 295.8 kB / 0.5604 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02537/4.281, allocations: 7.274 MB / 0.5675 GB, free: 1.609 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03806/4.319, allocations: 11.02 MB / 0.5782 GB, free: 5.469 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003913/4.319, allocations: 71.31 kB / 0.5783 GB, free: 5.398 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001926/4.321, allocations: 36 kB / 0.5783 GB, free: 5.363 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003178/4.324, allocations: 1.214 MB / 0.5795 GB, free: 4.145 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.421/4.745, allocations: 54.95 MB / 0.6332 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009572/4.755, allocations: 4.288 MB / 0.6374 GB, free: 107.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007197/4.762, allocations: 2.945 MB / 0.6403 GB, free: 107.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0275/4.79, allocations: 9.596 MB / 0.6496 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/4.79, allocations: 54.16 kB / 0.6497 GB, free: 105.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=206): time 7.024e-06/4.79, allocations: 0 / 0.6497 GB, free: 105.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=262): time 0.1981/4.988, allocations: 26.74 MB / 0.6758 GB, free: 102.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/4.988, allocations: 213.5 kB / 0.676 GB, free: 102.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01443/5.003, allocations: 3.638 MB / 0.6795 GB, free: 101.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00076/5.003, allocations: 25.7 kB / 0.6796 GB, free: 101.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002943/5.006, allocations: 3.257 MB / 0.6828 GB, free: 98.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/5.008, allocations: 0.941 MB / 0.6837 GB, free: 98.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008848/5.009, allocations: 0 / 0.6837 GB, free: 98.24 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004957/5.01, allocations: 0.5969 MB / 0.6843 GB, free: 97.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009719/5.019, allocations: 2.899 MB / 0.6871 GB, free: 96.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01547/5.035, allocations: 6.792 MB / 0.6937 GB, free: 90.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/5.047, allocations: 4.415 MB / 0.698 GB, free: 89.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001437/5.048, allocations: 39.72 kB / 0.6981 GB, free: 89.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.06202/5.11, allocations: 11.95 MB / 0.7097 GB, free: 85.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/5.11, allocations: 8.25 kB / 0.7097 GB, free: 85.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005127/5.11, allocations: 138.1 kB / 0.7099 GB, free: 85.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02913/5.139, allocations: 3.839 MB / 0.7136 GB, free: 84.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/5.151, allocations: 1.443 MB / 0.715 GB, free: 84.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07977/5.231, allocations: 23.11 MB / 0.7376 GB, free: 66.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/5.244, allocations: 215.4 kB / 0.7378 GB, free: 65.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003266/5.247, allocations: 413.9 kB / 0.7382 GB, free: 65.52 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (781): * Single equations (assignments): 775 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.004358/5.251, allocations: 452.8 kB / 0.7386 GB, free: 65.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002353/5.254, allocations: 410.7 kB / 0.739 GB, free: 64.67 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03927/5.293, allocations: 7.596 MB / 0.7464 GB, free: 58.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001244/5.293, allocations: 27.19 kB / 0.7465 GB, free: 58.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.736e-05/5.293, allocations: 12 kB / 0.7465 GB, free: 58.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.356e-05/5.293, allocations: 10.5 kB / 0.7465 GB, free: 58.65 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06691/5.36, allocations: 15.22 MB / 0.7614 GB, free: 46.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.222e-05/5.36, allocations: 8.5 kB / 0.7614 GB, free: 46.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003404/5.364, allocations: 288.7 kB / 0.7616 GB, free: 46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02439/5.388, allocations: 3.534 MB / 0.7651 GB, free: 43.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008026/5.389, allocations: 11.09 kB / 0.7651 GB, free: 43.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06331/5.453, allocations: 21.87 MB / 0.7865 GB, free: 23.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.521e-05/5.453, allocations: 8.969 kB / 0.7865 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0412/5.494, allocations: 12.11 MB / 0.7983 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2775/5.771, allocations: 22.85 MB / 0.8206 GB, free: 127.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005314/5.777, allocations: 0.8863 MB / 0.8215 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002641/5.779, allocations: 11.75 kB / 0.8215 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007927/5.787, allocations: 78.41 kB / 0.8216 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/5.789, allocations: 137.7 kB / 0.8217 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007089/5.79, allocations: 70.77 kB / 0.8217 GB, free: 127.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01054/5.8, allocations: 2.487 MB / 0.8242 GB, free: 127.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01968/5.82, allocations: 1.193 MB / 0.8253 GB, free: 127.1 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001818/5.822, allocations: 160.2 kB / 0.8255 GB, free: 127 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03463/5.856, allocations: 7.516 MB / 0.8328 GB, free: 126.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/5.857, allocations: 0 / 0.8328 GB, free: 126.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01583/5.872, allocations: 3.104 MB / 0.8359 GB, free: 126.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007371/5.88, allocations: 448.6 kB / 0.8363 GB, free: 126.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05468/5.935, allocations: 10.4 MB / 0.8465 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01826/5.953, allocations: 4.286 MB / 0.8506 GB, free: 123.6 MB / 474.7 MB Notification: Performance of SimCode: time 2.144e-06/5.953, allocations: 0 / 0.8506 GB, free: 123.6 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat