Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_FrameForces2",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.554/2.554, allocations: 235.1 MB / 242 MB, free: 9.648 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1722/2.726, allocations: 57.2 MB / 299.2 MB, free: 340 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/3.021, allocations: 54.85 MB / 354.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/3.496, allocations: 98.63 MB / 452.7 MB, free: 33.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004206/3.497, allocations: 80.5 kB / 452.8 MB, free: 33.07 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: 2806 * Number of variables: 2806 Notification: Performance of Generate backend data structure: time 0.833/4.33, allocations: 165.2 MB / 0.6035 GB, free: 12.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/4.33, allocations: 8 kB / 0.6036 GB, free: 12.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1139/4.444, allocations: 11.6 MB / 0.6149 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5708/5.015, allocations: 10.91 MB / 0.6255 GB, free: 101 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009193/5.016, allocations: 267.9 kB / 0.6258 GB, free: 101 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00629/5.022, allocations: 492.5 kB / 0.6263 GB, free: 101 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05107/5.073, allocations: 11.41 MB / 0.6374 GB, free: 101 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0776/5.151, allocations: 16.92 MB / 0.6539 GB, free: 96.95 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001067/5.152, allocations: 112.2 kB / 0.654 GB, free: 96.93 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006174/5.158, allocations: 44.19 kB / 0.6541 GB, free: 96.93 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006969/5.165, allocations: 1.855 MB / 0.6559 GB, free: 96.92 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2041/5.369, allocations: 78.56 MB / 0.7326 GB, free: 50.84 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/5.385, allocations: 6.416 MB / 0.7389 GB, free: 47.9 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01443/5.399, allocations: 4.538 MB / 0.7433 GB, free: 45.94 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05729/5.457, allocations: 13.89 MB / 0.7569 GB, free: 54.56 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.091e-05/5.457, allocations: 69.78 kB / 0.7569 GB, free: 54.5 MB / 490.8 MB Notification: Performance of pre-optimization done (n=296): time 1.33e-05/5.457, allocations: 0 / 0.7569 GB, free: 54.5 MB / 490.8 MB Notification: Performance of matching and sorting (n=322): time 0.1468/5.604, allocations: 29.73 MB / 0.786 GB, free: 35.07 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/5.604, allocations: 291.3 kB / 0.7862 GB, free: 34.72 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/5.621, allocations: 5.466 MB / 0.7916 GB, free: 29.92 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009097/5.622, allocations: 29.7 kB / 0.7916 GB, free: 29.89 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004958/5.627, allocations: 5.088 MB / 0.7966 GB, free: 25.34 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002605/5.63, allocations: 1.186 MB / 0.7977 GB, free: 24.27 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001595/5.631, allocations: 0 / 0.7977 GB, free: 24.27 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.00123/5.633, allocations: 0.7107 MB / 0.7984 GB, free: 23.67 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01041/5.643, allocations: 3.341 MB / 0.8017 GB, free: 20.68 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0169/5.66, allocations: 8.985 MB / 0.8105 GB, free: 9.574 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01802/5.678, allocations: 5.47 MB / 0.8158 GB, free: 4.965 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002625/5.678, allocations: 56 kB / 0.8159 GB, free: 4.91 MB / 490.8 MB Notification: Performance of matching and sorting (n=1257) (initialization): time 0.2677/5.946, allocations: 11.85 MB / 0.8274 GB, free: 100.5 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/5.946, allocations: 4.5 kB / 0.8274 GB, free: 100.5 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000462/5.947, allocations: 205.8 kB / 0.8276 GB, free: 100.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005168/5.952, allocations: 1.01 MB / 0.8286 GB, free: 100.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0185/5.97, allocations: 2.188 MB / 0.8308 GB, free: 100.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02655/5.997, allocations: 10.38 MB / 0.8409 GB, free: 95.51 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02043/6.018, allocations: 300 kB / 0.8412 GB, free: 95.51 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003293/6.021, allocations: 0.5679 MB / 0.8417 GB, free: 95.51 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 918 * Number of states: 0 () * Number of discrete variables: 63 (frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.color[3],frameForce3.color[2],frameForce3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1181): * Single equations (assignments): 1174 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003918/6.025, allocations: 0.6095 MB / 0.8423 GB, free: 95.4 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002498/6.027, allocations: 0.579 MB / 0.8429 GB, free: 95.4 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02658/6.054, allocations: 5.572 MB / 0.8483 GB, free: 95.23 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000138/6.054, allocations: 33.88 kB / 0.8484 GB, free: 95.23 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.269e-05/6.054, allocations: 14.78 kB / 0.8484 GB, free: 95.23 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.388e-05/6.054, allocations: 17.45 kB / 0.8484 GB, free: 95.23 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06992/6.124, allocations: 12.84 MB / 0.861 GB, free: 94.64 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.765e-05/6.124, allocations: 0 / 0.861 GB, free: 94.64 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009354/6.134, allocations: 495.8 kB / 0.8614 GB, free: 94.64 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/6.14, allocations: 0.6737 MB / 0.8621 GB, free: 94.61 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001036/6.141, allocations: 13.89 kB / 0.8621 GB, free: 94.61 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01736/6.158, allocations: 9.243 MB / 0.8711 GB, free: 89.61 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/6.158, allocations: 0 / 0.8711 GB, free: 89.61 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0281/6.187, allocations: 9.64 MB / 0.8805 GB, free: 88.82 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03545/6.222, allocations: 13.56 MB / 0.8938 GB, free: 87.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004709/6.227, allocations: 1.047 MB / 0.8948 GB, free: 86.89 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00266/6.23, allocations: 3.562 kB / 0.8948 GB, free: 86.89 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007163/6.237, allocations: 107.5 kB / 0.8949 GB, free: 86.89 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/6.238, allocations: 148.2 kB / 0.895 GB, free: 86.88 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005605/6.238, allocations: 82.64 kB / 0.8951 GB, free: 86.88 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.01117/6.25, allocations: 3.737 MB / 0.8988 GB, free: 86.67 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01514/6.265, allocations: 1.553 MB / 0.9003 GB, free: 86.66 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/6.266, allocations: 161.4 kB / 0.9004 GB, free: 86.58 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02191/6.288, allocations: 8.302 MB / 0.9086 GB, free: 84.28 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/6.288, allocations: 0 / 0.9086 GB, free: 84.28 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008013/6.296, allocations: 2.973 MB / 0.9115 GB, free: 83.01 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008225/6.305, allocations: 0.7124 MB / 0.9122 GB, free: 82.73 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05515/6.36, allocations: 14.46 MB / 0.9263 GB, free: 77.89 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02444/6.384, allocations: 6.374 MB / 0.9325 GB, free: 76 MB / 490.8 MB Notification: Performance of SimCode: time 2.004e-06/6.384, allocations: 0 / 0.9325 GB, free: 76 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat does not exist to compare? outputFormat=mat