Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.689/2.689, allocations: 235 MB / 242 MB, free: 9.781 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1762/2.865, allocations: 57.2 MB / 299.2 MB, free: 468 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/3.209, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.489/3.698, allocations: 100.9 MB / 454.9 MB, free: 34.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/3.699, allocations: 79.95 kB / 455 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.675/4.374, allocations: 99.11 MB / 0.5411 GB, free: 12.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.437e-05/4.374, allocations: 12 kB / 0.5412 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04787/4.422, allocations: 2.91 MB / 0.544 GB, free: 9.699 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03557/4.457, allocations: 4.928 MB / 0.5488 GB, free: 4.719 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006774/4.458, allocations: 160 kB / 0.549 GB, free: 4.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004657/4.463, allocations: 287.9 kB / 0.5492 GB, free: 4.281 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04025/4.503, allocations: 8.619 MB / 0.5577 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05796/4.561, allocations: 11.31 MB / 0.5687 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004723/4.562, allocations: 35.66 kB / 0.5687 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004022/4.566, allocations: 16 kB / 0.5687 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005345/4.571, allocations: 1.392 MB / 0.5701 GB, free: 14.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1344/4.706, allocations: 39.9 MB / 0.6091 GB, free: 5.637 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009328/4.715, allocations: 2.917 MB / 0.6119 GB, free: 2.715 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007196/4.722, allocations: 2.413 MB / 0.6143 GB, free: 300 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2259/4.948, allocations: 10.01 MB / 0.6241 GB, free: 142.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/4.948, allocations: 55.97 kB / 0.6241 GB, free: 142.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=227): time 7.384e-06/4.948, allocations: 0 / 0.6241 GB, free: 142.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.0572/5.006, allocations: 12.6 MB / 0.6364 GB, free: 141.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/5.006, allocations: 74.31 kB / 0.6365 GB, free: 141.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008737/5.014, allocations: 2.829 MB / 0.6392 GB, free: 141.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007001/5.015, allocations: 25.7 kB / 0.6393 GB, free: 141.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003298/5.019, allocations: 3.264 MB / 0.6425 GB, free: 139.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001685/5.02, allocations: 0.8762 MB / 0.6433 GB, free: 138.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009705/5.021, allocations: 0 / 0.6433 GB, free: 138.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007613/5.022, allocations: 0.5818 MB / 0.6439 GB, free: 138.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007596/5.03, allocations: 2.428 MB / 0.6463 GB, free: 138.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/5.04, allocations: 6.02 MB / 0.6521 GB, free: 133.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/5.052, allocations: 3.9 MB / 0.6559 GB, free: 133.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001542/5.052, allocations: 34.91 kB / 0.656 GB, free: 133.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.03286/5.085, allocations: 8.534 MB / 0.6643 GB, free: 133.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/5.085, allocations: 7.812 kB / 0.6643 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002555/5.085, allocations: 125.4 kB / 0.6644 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/5.094, allocations: 1.07 MB / 0.6655 GB, free: 133.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01213/5.106, allocations: 1.453 MB / 0.6669 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/5.118, allocations: 4.465 MB / 0.6713 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009064/5.127, allocations: 185.8 kB / 0.6714 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/5.129, allocations: 378.5 kB / 0.6718 GB, free: 131.5 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.002081/5.131, allocations: 427.5 kB / 0.6722 GB, free: 131.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009519/5.132, allocations: 299.1 kB / 0.6725 GB, free: 131 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01802/5.15, allocations: 4.409 MB / 0.6768 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001816/5.151, allocations: 36.78 kB / 0.6768 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.158e-05/5.151, allocations: 8.969 kB / 0.6768 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.639e-05/5.151, allocations: 10.83 kB / 0.6768 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03355/5.184, allocations: 8.851 MB / 0.6855 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.684e-05/5.184, allocations: 0 / 0.6855 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004643/5.189, allocations: 357.1 kB / 0.6858 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004592/5.194, allocations: 0.5982 MB / 0.6864 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006992/5.194, allocations: 22.25 kB / 0.6864 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004894/5.199, allocations: 2.3 MB / 0.6887 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/5.199, allocations: 0 / 0.6887 GB, free: 125.4 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02269/5.222, allocations: 6.83 MB / 0.6954 GB, free: 122.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02889/5.251, allocations: 9.722 MB / 0.7048 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/5.252, allocations: 345 kB / 0.7052 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001707/5.254, allocations: 19.84 kB / 0.7052 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006029/5.26, allocations: 63.8 kB / 0.7053 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001278/5.262, allocations: 100.3 kB / 0.7054 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006224/5.262, allocations: 59.23 kB / 0.7054 GB, free: 116.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00879/5.271, allocations: 1.865 MB / 0.7072 GB, free: 114.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01031/5.281, allocations: 0.9466 MB / 0.7082 GB, free: 113.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,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 (190): * Single equations (assignments): 181 * 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.001093/5.283, allocations: 159 kB / 0.7083 GB, free: 113.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02309/5.306, allocations: 5.772 MB / 0.7139 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/5.306, allocations: 0 / 0.7139 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01257/5.318, allocations: 2.333 MB / 0.7162 GB, free: 106.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00584/5.324, allocations: 299.6 kB / 0.7165 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05255/5.377, allocations: 9.462 MB / 0.7257 GB, free: 97.71 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01682/5.394, allocations: 4.151 MB / 0.7298 GB, free: 94.48 MB / 474.7 MB Notification: Performance of SimCode: time 2.224e-06/5.394, allocations: 4 kB / 0.7298 GB, free: 94.48 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat