Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_FlyingBodies",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.669/2.669, allocations: 235 MB / 242 MB, free: 9.766 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2403/2.91, allocations: 57.2 MB / 299.2 MB, free: 456 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/3.207, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/3.661, allocations: 95.73 MB / 449.8 MB, free: 31.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/3.662, allocations: 79.02 kB / 449.9 MB, free: 31.79 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: 3302 * Number of variables: 3302 Notification: Performance of Generate backend data structure: time 1.446/5.107, allocations: 200.3 MB / 0.635 GB, free: 71.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/5.107, allocations: 7.875 kB / 0.635 GB, free: 71.58 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1007/5.208, allocations: 10.58 MB / 0.6453 GB, free: 70.96 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06262/5.271, allocations: 11.94 MB / 0.657 GB, free: 69.94 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006361/5.271, allocations: 274.8 kB / 0.6572 GB, free: 69.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006914/5.278, allocations: 0.4935 MB / 0.6577 GB, free: 69.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05541/5.334, allocations: 15.63 MB / 0.673 GB, free: 69.88 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08468/5.419, allocations: 20.5 MB / 0.693 GB, free: 67.03 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008777/5.42, allocations: 73.06 kB / 0.6931 GB, free: 67.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006588/5.426, allocations: 34.41 kB / 0.6931 GB, free: 67.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007984/5.434, allocations: 2.637 MB / 0.6957 GB, free: 66.99 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2176/5.652, allocations: 78.51 MB / 0.7723 GB, free: 5.566 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02627/5.678, allocations: 7.806 MB / 0.78 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01895/5.697, allocations: 6.822 MB / 0.7866 GB, free: 9.535 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4472/6.144, allocations: 21.4 MB / 0.8075 GB, free: 116 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001174/6.145, allocations: 83.81 kB / 0.8076 GB, free: 116 MB / 490.8 MB Notification: Performance of pre-optimization done (n=539): time 1.19e-05/6.145, allocations: 0 / 0.8076 GB, free: 116 MB / 490.8 MB Notification: Performance of matching and sorting (n=567): time 0.1353/6.28, allocations: 33.45 MB / 0.8403 GB, free: 110.8 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/6.28, allocations: 260.2 kB / 0.8405 GB, free: 110.6 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01696/6.297, allocations: 5.795 MB / 0.8462 GB, free: 110 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001612/6.299, allocations: 25.7 kB / 0.8462 GB, free: 110 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005402/6.304, allocations: 5.673 MB / 0.8517 GB, free: 106.5 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004498/6.309, allocations: 2.054 MB / 0.8538 GB, free: 105.3 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002734/6.312, allocations: 3.281 kB / 0.8538 GB, free: 105.3 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001513/6.313, allocations: 0.88 MB / 0.8546 GB, free: 104.9 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01854/6.332, allocations: 6.357 MB / 0.8608 GB, free: 104.9 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0242/6.356, allocations: 12.98 MB / 0.8735 GB, free: 96.46 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02555/6.382, allocations: 9.246 MB / 0.8825 GB, free: 96.34 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003113/6.382, allocations: 64.53 kB / 0.8826 GB, free: 96.34 MB / 490.8 MB Notification: Performance of matching and sorting (n=1725) (initialization): time 0.08776/6.47, allocations: 20.79 MB / 0.9029 GB, free: 90.68 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/6.47, allocations: 4.531 kB / 0.9029 GB, free: 90.68 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06759/6.537, allocations: 13.04 MB / 0.9156 GB, free: 86.94 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03181/6.569, allocations: 3.234 MB / 0.9188 GB, free: 85.05 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02497/6.594, allocations: 2.93 MB / 0.9217 GB, free: 82.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0258/6.62, allocations: 11.44 MB / 0.9328 GB, free: 71.38 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02654/6.647, allocations: 0.6469 MB / 0.9335 GB, free: 70.91 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004046/6.651, allocations: 0.7164 MB / 0.9342 GB, free: 70.23 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1056 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1577): * Single equations (assignments): 1543 * Array equations: 20 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005845/6.657, allocations: 0.6971 MB / 0.9348 GB, free: 69.54 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002726/6.66, allocations: 0.6439 MB / 0.9355 GB, free: 68.88 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/6.665, allocations: 1.065 MB / 0.9365 GB, free: 67.89 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05828/6.724, allocations: 12.38 MB / 0.9486 GB, free: 57.53 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001029/6.724, allocations: 8 kB / 0.9486 GB, free: 57.52 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002059/6.724, allocations: 22.88 kB / 0.9486 GB, free: 57.52 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/6.753, allocations: 9.431 MB / 0.9578 GB, free: 50.35 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.583e-05/6.753, allocations: 10.53 kB / 0.9578 GB, free: 50.34 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01311/6.767, allocations: 0.9124 MB / 0.9587 GB, free: 49.61 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03084/6.797, allocations: 3.233 MB / 0.9619 GB, free: 47.43 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001844/6.799, allocations: 72.56 kB / 0.962 GB, free: 47.39 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03075/6.83, allocations: 12.94 MB / 0.9746 GB, free: 35.31 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005793/6.836, allocations: 5.502 MB / 0.98 GB, free: 29.51 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06916/6.905, allocations: 20.88 MB / 1 GB, free: 11.26 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3459/7.251, allocations: 29.3 MB / 1.029 GB, free: 99.53 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003074/7.254, allocations: 0.6886 MB / 1.03 GB, free: 99.44 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003991/7.258, allocations: 33.7 kB / 1.03 GB, free: 99.44 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0112/7.27, allocations: 316 kB / 1.03 GB, free: 99.44 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002286/7.272, allocations: 233.2 kB / 1.03 GB, free: 99.44 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001796/7.274, allocations: 137.8 kB / 1.03 GB, free: 99.44 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.01258/7.286, allocations: 3.895 MB / 1.034 GB, free: 99.22 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02013/7.307, allocations: 2.319 MB / 1.036 GB, free: 99.22 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 48 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],BodyBox1.v_0[1],BodyBox1.v_0[2],BodyBox1.v_0[3],BodyBox1.body.frame_a.r_0[1],BodyBox1.body.frame_a.r_0[2],BodyBox1.body.frame_a.r_0[3],BodyBox1.body.w_a[1],BodyBox1.body.w_a[2],BodyBox1.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 409 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002153/7.309, allocations: 211.9 kB / 1.037 GB, free: 99.13 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.05089/7.36, allocations: 16.47 MB / 1.053 GB, free: 97.64 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/7.36, allocations: 0 / 1.053 GB, free: 97.64 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02529/7.385, allocations: 7.606 MB / 1.06 GB, free: 96.17 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00812/7.393, allocations: 0.6126 MB / 1.061 GB, free: 96.14 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07748/7.471, allocations: 22.6 MB / 1.083 GB, free: 92.13 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02876/7.5, allocations: 7.478 MB / 1.09 GB, free: 91.17 MB / 490.8 MB Notification: Performance of SimCode: time 1.694e-06/7.5, allocations: 3.438 kB / 1.09 GB, free: 91.17 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat