Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Spherical",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.581/2.581, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1867/2.768, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/3.061, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/3.487, allocations: 94.49 MB / 448.6 MB, free: 31.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/3.487, allocations: 79.83 kB / 448.6 MB, free: 31.27 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.4525/3.94, allocations: 83.94 MB / 0.5201 GB, free: 2.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/3.94, allocations: 8 kB / 0.5201 GB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05068/3.991, allocations: 4.425 MB / 0.5244 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02849/4.019, allocations: 5.302 MB / 0.5296 GB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003671/4.02, allocations: 116 kB / 0.5297 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003459/4.023, allocations: 211.9 kB / 0.5299 GB, free: 7.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02816/4.051, allocations: 7.059 MB / 0.5368 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03623/4.088, allocations: 9.352 MB / 0.546 GB, free: 6.988 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003642/4.088, allocations: 31.66 kB / 0.546 GB, free: 6.957 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003426/4.091, allocations: 16 kB / 0.546 GB, free: 6.941 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004823/4.096, allocations: 1.218 MB / 0.5472 GB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1021/4.199, allocations: 35.42 MB / 0.5818 GB, free: 1.609 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.011/4.21, allocations: 4.177 MB / 0.5859 GB, free: 13.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007106/4.217, allocations: 2.416 MB / 0.5882 GB, free: 10.78 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04875/4.266, allocations: 10.72 MB / 0.5987 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.099e-05/4.266, allocations: 47.88 kB / 0.5987 GB, free: 15.28 MB / 474.7 MB Notification: Performance of pre-optimization done (n=181): time 1.001e-05/4.266, allocations: 0 / 0.5987 GB, free: 15.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.07475/4.341, allocations: 10.57 MB / 0.6091 GB, free: 4.625 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/4.341, allocations: 68.7 kB / 0.6091 GB, free: 4.547 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008755/4.349, allocations: 2.619 MB / 0.6117 GB, free: 1.914 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006533/4.35, allocations: 25.7 kB / 0.6117 GB, free: 1.883 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1865/4.537, allocations: 2.748 MB / 0.6144 GB, free: 161.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001406/4.538, allocations: 0.7014 MB / 0.6151 GB, free: 161.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009004/4.539, allocations: 0 / 0.6151 GB, free: 161.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005739/4.54, allocations: 0.5585 MB / 0.6156 GB, free: 161.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01059/4.55, allocations: 2.539 MB / 0.6181 GB, free: 161.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01239/4.563, allocations: 5.723 MB / 0.6237 GB, free: 157.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/4.574, allocations: 3.845 MB / 0.6274 GB, free: 157.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/4.574, allocations: 31 kB / 0.6275 GB, free: 157.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.172/4.746, allocations: 14.66 MB / 0.6418 GB, free: 156.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/4.746, allocations: 7.469 kB / 0.6418 GB, free: 156.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1188/4.865, allocations: 8.922 MB / 0.6505 GB, free: 156.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1269/4.992, allocations: 6.798 MB / 0.6571 GB, free: 156.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01455/5.006, allocations: 1.257 MB / 0.6584 GB, free: 156.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07648/5.083, allocations: 14.03 MB / 0.6721 GB, free: 153.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008751/5.092, allocations: 257.5 kB / 0.6723 GB, free: 153.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/5.094, allocations: 335 kB / 0.6726 GB, free: 153.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 670 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.002513/5.096, allocations: 382.8 kB / 0.673 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008455/5.097, allocations: 267.3 kB / 0.6732 GB, free: 153.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00218/5.099, allocations: 426.2 kB / 0.6737 GB, free: 153 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01651/5.116, allocations: 3.946 MB / 0.6775 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.577e-05/5.116, allocations: 4.109 kB / 0.6775 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.414e-05/5.116, allocations: 8.875 kB / 0.6775 GB, free: 151.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03713/5.153, allocations: 10.18 MB / 0.6875 GB, free: 145.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.913e-05/5.153, allocations: 0 / 0.6875 GB, free: 145.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/5.157, allocations: 276.5 kB / 0.6877 GB, free: 145.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00685/5.164, allocations: 0.8578 MB / 0.6886 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000594/5.164, allocations: 15.84 kB / 0.6886 GB, free: 145 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/5.176, allocations: 5.166 MB / 0.6936 GB, free: 140.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001282/5.178, allocations: 1.365 MB / 0.695 GB, free: 138.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02087/5.199, allocations: 6.822 MB / 0.7016 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02737/5.226, allocations: 9.705 MB / 0.7111 GB, free: 124.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/5.227, allocations: 335 kB / 0.7114 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001262/5.228, allocations: 5.547 kB / 0.7114 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003908/5.232, allocations: 96.83 kB / 0.7115 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007681/5.233, allocations: 74.75 kB / 0.7116 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003583/5.234, allocations: 47.75 kB / 0.7116 GB, free: 123.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005195/5.239, allocations: 1.732 MB / 0.7133 GB, free: 122.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009301/5.248, allocations: 0.9935 MB / 0.7143 GB, free: 121.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009648/5.249, allocations: 143.2 kB / 0.7144 GB, free: 121.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0193/5.268, allocations: 6.088 MB / 0.7204 GB, free: 115.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/5.269, allocations: 4 kB / 0.7204 GB, free: 115.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006531/5.275, allocations: 2.195 MB / 0.7225 GB, free: 113.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/5.278, allocations: 226.8 kB / 0.7227 GB, free: 113.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0277/5.306, allocations: 8.019 MB / 0.7306 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009525/5.315, allocations: 3.476 MB / 0.734 GB, free: 101.8 MB / 474.7 MB Notification: Performance of SimCode: time 2.014e-06/5.315, allocations: 0 / 0.734 GB, free: 101.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat