Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_WorldForces2",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.595/2.595, allocations: 235 MB / 242 MB, free: 9.738 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1703/2.765, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/3.083, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5286/3.612, allocations: 98.74 MB / 452.8 MB, free: 33.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/3.612, allocations: 84.19 kB / 452.9 MB, free: 33.1 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.825/4.437, allocations: 139.2 MB / 0.5782 GB, free: 6.426 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.606e-05/4.437, allocations: 8 kB / 0.5782 GB, free: 6.418 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09172/4.529, allocations: 9.096 MB / 0.5871 GB, free: 13.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04423/4.573, allocations: 8.827 MB / 0.5957 GB, free: 4.383 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005881/4.574, allocations: 220 kB / 0.5959 GB, free: 4.168 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003922/4.578, allocations: 411.8 kB / 0.5963 GB, free: 3.766 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03265/4.611, allocations: 9.38 MB / 0.6055 GB, free: 10.38 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2687/4.879, allocations: 14.38 MB / 0.6195 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00061/4.88, allocations: 99.92 kB / 0.6196 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003542/4.884, allocations: 44.62 kB / 0.6197 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003931/4.888, allocations: 1.57 MB / 0.6212 GB, free: 108.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1255/5.013, allocations: 69.27 MB / 0.6889 GB, free: 69.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/5.025, allocations: 5.032 MB / 0.6938 GB, free: 68.38 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008294/5.033, allocations: 3.392 MB / 0.6971 GB, free: 68.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03014/5.064, allocations: 9.666 MB / 0.7065 GB, free: 65.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.319e-05/5.064, allocations: 61.12 kB / 0.7066 GB, free: 65.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=236): time 7.604e-06/5.064, allocations: 0 / 0.7066 GB, free: 65.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=256): time 0.09187/5.156, allocations: 22.72 MB / 0.7288 GB, free: 55.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/5.156, allocations: 255.8 kB / 0.729 GB, free: 55.35 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0148/5.171, allocations: 4.861 MB / 0.7338 GB, free: 53.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007333/5.171, allocations: 29.05 kB / 0.7338 GB, free: 53.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004282/5.176, allocations: 4.46 MB / 0.7381 GB, free: 50.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001885/5.178, allocations: 0.9699 MB / 0.7391 GB, free: 49.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/5.179, allocations: 0 / 0.7391 GB, free: 49.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008488/5.18, allocations: 0.6707 MB / 0.7397 GB, free: 49.13 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008477/5.188, allocations: 2.753 MB / 0.7424 GB, free: 48.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01191/5.2, allocations: 8.03 MB / 0.7503 GB, free: 40.08 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/5.213, allocations: 4.697 MB / 0.7549 GB, free: 38.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00022/5.213, allocations: 58.31 kB / 0.7549 GB, free: 38.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.03369/5.247, allocations: 10.11 MB / 0.7648 GB, free: 35.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/5.247, allocations: 7.406 kB / 0.7648 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003442/5.248, allocations: 191.2 kB / 0.765 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003877/5.251, allocations: 0.8086 MB / 0.7658 GB, free: 35.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01497/5.266, allocations: 1.951 MB / 0.7677 GB, free: 34.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/5.282, allocations: 7.851 MB / 0.7753 GB, free: 29.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/5.294, allocations: 263.7 kB / 0.7756 GB, free: 29.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00263/5.296, allocations: 0.5217 MB / 0.7761 GB, free: 29.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.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 (1062): * Single equations (assignments): 1056 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003825/5.3, allocations: 0.5708 MB / 0.7767 GB, free: 28.85 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/5.302, allocations: 0.5007 MB / 0.7772 GB, free: 28.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01592/5.318, allocations: 4.16 MB / 0.7812 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001288/5.318, allocations: 22.59 kB / 0.7812 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.046e-05/5.318, allocations: 8.094 kB / 0.7812 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.942e-05/5.318, allocations: 13.77 kB / 0.7813 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03406/5.352, allocations: 9.752 MB / 0.7908 GB, free: 19.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.329e-05/5.352, allocations: 0 / 0.7908 GB, free: 19.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004822/5.357, allocations: 382.7 kB / 0.7911 GB, free: 19.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003063/5.36, allocations: 0.4955 MB / 0.7916 GB, free: 18.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006032/5.361, allocations: 7.703 kB / 0.7916 GB, free: 18.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/5.373, allocations: 6.936 MB / 0.7984 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/5.373, allocations: 0 / 0.7984 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02064/5.394, allocations: 7.532 MB / 0.8058 GB, free: 5.398 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2888/5.683, allocations: 11.27 MB / 0.8168 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005694/5.689, allocations: 0.8703 MB / 0.8176 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003248/5.692, allocations: 7.156 kB / 0.8176 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008672/5.701, allocations: 76.69 kB / 0.8177 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001312/5.702, allocations: 112.5 kB / 0.8178 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008626/5.703, allocations: 68.34 kB / 0.8179 GB, free: 104.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01568/5.719, allocations: 3.312 MB / 0.8211 GB, free: 104.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02142/5.74, allocations: 1.286 MB / 0.8224 GB, free: 104.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (211): * Single equations (assignments): 205 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.00153/5.742, allocations: 155.5 kB / 0.8225 GB, free: 104.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02546/5.767, allocations: 6.839 MB / 0.8292 GB, free: 103.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/5.767, allocations: 0 / 0.8292 GB, free: 103.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00675/5.774, allocations: 2.266 MB / 0.8314 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006335/5.781, allocations: 0.5815 MB / 0.832 GB, free: 103.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04741/5.828, allocations: 11.96 MB / 0.8437 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02328/5.851, allocations: 5.438 MB / 0.849 GB, free: 100.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.703e-06/5.851, allocations: 0 / 0.849 GB, free: 100.4 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat