Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",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.777/2.777, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2115/2.988, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/3.31, allocations: 54.84 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/3.752, allocations: 100.9 MB / 455 MB, free: 34.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/3.752, allocations: 75.92 kB / 455.1 MB, free: 34.28 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.4775/4.23, allocations: 99.55 MB / 0.5416 GB, free: 12.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/4.23, allocations: 11.94 kB / 0.5416 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03675/4.267, allocations: 2.91 MB / 0.5445 GB, free: 9.242 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02686/4.294, allocations: 4.94 MB / 0.5493 GB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005783/4.294, allocations: 160 kB / 0.5494 GB, free: 4.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003584/4.298, allocations: 291.9 kB / 0.5497 GB, free: 3.805 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03695/4.335, allocations: 8.634 MB / 0.5581 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04397/4.379, allocations: 11.34 MB / 0.5692 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003506/4.379, allocations: 39.7 kB / 0.5693 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003282/4.383, allocations: 16 kB / 0.5693 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004321/4.387, allocations: 1.392 MB / 0.5706 GB, free: 13.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/4.539, allocations: 39.99 MB / 0.6097 GB, free: 5.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009808/4.549, allocations: 2.942 MB / 0.6126 GB, free: 2.062 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2019/4.751, allocations: 2.42 MB / 0.6149 GB, free: 145.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03099/4.782, allocations: 10.04 MB / 0.6247 GB, free: 142.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/4.782, allocations: 50.39 kB / 0.6248 GB, free: 142.1 MB / 474.7 MB Notification: Performance of pre-optimization done (n=230): time 7.273e-06/4.782, allocations: 3.75 kB / 0.6248 GB, free: 142.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=257): time 0.06951/4.852, allocations: 15.5 MB / 0.6399 GB, free: 140.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/4.852, allocations: 74.03 kB / 0.64 GB, free: 140.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01262/4.864, allocations: 2.835 MB / 0.6428 GB, free: 140.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001009/4.865, allocations: 25.7 kB / 0.6428 GB, free: 140.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004424/4.87, allocations: 3.275 MB / 0.646 GB, free: 138.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002364/4.872, allocations: 0.9474 MB / 0.6469 GB, free: 138 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/4.874, allocations: 0 / 0.6469 GB, free: 138 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001125/4.875, allocations: 0.5928 MB / 0.6475 GB, free: 137.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01169/4.887, allocations: 2.569 MB / 0.65 GB, free: 137.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01552/4.902, allocations: 6.178 MB / 0.656 GB, free: 133.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/4.919, allocations: 4.071 MB / 0.66 GB, free: 133 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002353/4.919, allocations: 40.41 kB / 0.66 GB, free: 133 MB / 474.7 MB Notification: Performance of matching and sorting (n=882) (initialization): time 0.06657/4.986, allocations: 9.723 MB / 0.6695 GB, free: 132.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/4.986, allocations: 3.781 kB / 0.6695 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003774/4.987, allocations: 133 kB / 0.6697 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02799/5.015, allocations: 2.169 MB / 0.6718 GB, free: 132.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01171/5.026, allocations: 1.462 MB / 0.6732 GB, free: 132 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03363/5.06, allocations: 9.348 MB / 0.6823 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009128/5.069, allocations: 178.9 kB / 0.6825 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002143/5.071, allocations: 395.1 kB / 0.6829 GB, free: 127.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (801): * Single equations (assignments): 793 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.002805/5.074, allocations: 432.1 kB / 0.6833 GB, free: 127.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000974/5.075, allocations: 310.3 kB / 0.6836 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01872/5.094, allocations: 4.829 MB / 0.6883 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001903/5.094, allocations: 37.97 kB / 0.6883 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.271e-05/5.094, allocations: 7.844 kB / 0.6883 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.274e-05/5.094, allocations: 8.859 kB / 0.6884 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/5.132, allocations: 9.587 MB / 0.6977 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.001e-05/5.132, allocations: 4.531 kB / 0.6977 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005469/5.138, allocations: 402.5 kB / 0.6981 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005064/5.143, allocations: 0.6475 MB / 0.6987 GB, free: 122.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008144/5.144, allocations: 36.52 kB / 0.6988 GB, free: 122.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/5.149, allocations: 2.294 MB / 0.701 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/5.149, allocations: 3.844 kB / 0.701 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02211/5.171, allocations: 7.381 MB / 0.7082 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03493/5.206, allocations: 10.48 MB / 0.7185 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/5.207, allocations: 352.3 kB / 0.7188 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001541/5.209, allocations: 11.66 kB / 0.7188 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004207/5.213, allocations: 69.58 kB / 0.7189 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009425/5.214, allocations: 112.2 kB / 0.719 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003915/5.214, allocations: 77.23 kB / 0.7191 GB, free: 104.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005733/5.22, allocations: 1.856 MB / 0.7209 GB, free: 103.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01016/5.23, allocations: 1.02 MB / 0.7219 GB, free: 102.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (211): * Single equations (assignments): 202 * 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): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/5.232, allocations: 160.7 kB / 0.722 GB, free: 102.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01838/5.25, allocations: 6.174 MB / 0.728 GB, free: 96.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/5.25, allocations: 0 / 0.728 GB, free: 96.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009535/5.26, allocations: 2.555 MB / 0.7305 GB, free: 94.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003787/5.263, allocations: 299.7 kB / 0.7308 GB, free: 93.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03552/5.299, allocations: 9.606 MB / 0.7402 GB, free: 85.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01367/5.313, allocations: 4.215 MB / 0.7443 GB, free: 82.14 MB / 474.7 MB Notification: Performance of SimCode: time 3.226e-06/5.313, allocations: 0 / 0.7443 GB, free: 82.14 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat