Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_Distance2",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.335/2.335, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.233/2.568, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/2.834, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4175/3.251, allocations: 97.61 MB / 451.7 MB, free: 32.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/3.252, allocations: 79.41 kB / 451.8 MB, free: 32.52 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.4601/3.712, allocations: 79.88 MB / 0.5192 GB, free: 3.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/3.712, allocations: 8 kB / 0.5192 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03871/3.751, allocations: 3.965 MB / 0.5231 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02524/3.776, allocations: 4.416 MB / 0.5274 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004801/3.777, allocations: 120 kB / 0.5275 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003189/3.78, allocations: 215.9 kB / 0.5277 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02049/3.8, allocations: 5.367 MB / 0.5329 GB, free: 4.988 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02921/3.83, allocations: 8.471 MB / 0.5412 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002659/3.83, allocations: 63.41 kB / 0.5413 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001807/3.832, allocations: 32 kB / 0.5413 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00241/3.834, allocations: 0.9544 MB / 0.5422 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08551/3.92, allocations: 41.48 MB / 0.5827 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006002/3.926, allocations: 2.549 MB / 0.5852 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004062/3.93, allocations: 1.188 MB / 0.5864 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01688/3.947, allocations: 4.433 MB / 0.5907 GB, free: 7.109 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/3.947, allocations: 50.84 kB / 0.5908 GB, free: 7.051 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 8.205e-06/3.947, allocations: 0 / 0.5908 GB, free: 7.051 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.05703/4.004, allocations: 8.823 MB / 0.5994 GB, free: 14.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002351/4.004, allocations: 196.5 kB / 0.5996 GB, free: 13.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01461/4.019, allocations: 3.066 MB / 0.6026 GB, free: 10.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004933/4.02, allocations: 25.7 kB / 0.6026 GB, free: 10.79 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005545/4.025, allocations: 2.897 MB / 0.6054 GB, free: 7.852 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001458/4.027, allocations: 0.4941 MB / 0.6059 GB, free: 7.352 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/4.028, allocations: 0 / 0.6059 GB, free: 7.352 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001553/4.03, allocations: 0.5618 MB / 0.6065 GB, free: 6.781 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008142/4.038, allocations: 1.562 MB / 0.608 GB, free: 5.215 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2248/4.263, allocations: 5.517 MB / 0.6134 GB, free: 148.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007885/4.271, allocations: 2.959 MB / 0.6163 GB, free: 148.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001522/4.271, allocations: 42.56 kB / 0.6163 GB, free: 148.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01979/4.291, allocations: 6.212 MB / 0.6224 GB, free: 148.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/4.291, allocations: 3.688 kB / 0.6224 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002527/4.291, allocations: 145.8 kB / 0.6225 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/4.292, allocations: 372.6 kB / 0.6229 GB, free: 148.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009533/4.302, allocations: 1.376 MB / 0.6242 GB, free: 148.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004683/4.307, allocations: 2.597 MB / 0.6267 GB, free: 147 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007749/4.315, allocations: 182.4 kB / 0.6269 GB, free: 147 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/4.316, allocations: 378.1 kB / 0.6273 GB, free: 147 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (742): * Single equations (assignments): 738 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001201/4.317, allocations: 456.1 kB / 0.6277 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007288/4.318, allocations: 301.1 kB / 0.628 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005328/4.323, allocations: 1.422 MB / 0.6294 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/4.324, allocations: 10.44 kB / 0.6294 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/4.324, allocations: 2.531 kB / 0.6294 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/4.324, allocations: 3.797 kB / 0.6294 GB, free: 146.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/4.339, allocations: 4.087 MB / 0.6334 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/4.339, allocations: 0 / 0.6334 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002352/4.341, allocations: 172.9 kB / 0.6336 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/4.342, allocations: 153.9 kB / 0.6337 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002184/4.343, allocations: 3.25 kB / 0.6337 GB, free: 146.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00383/4.346, allocations: 2.032 MB / 0.6357 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/4.346, allocations: 4.031 kB / 0.6357 GB, free: 145.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007776/4.354, allocations: 3.24 MB / 0.6389 GB, free: 144.6 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0101/4.364, allocations: 4.684 MB / 0.6434 GB, free: 143.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/4.366, allocations: 488 kB / 0.6439 GB, free: 143.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006512/4.367, allocations: 0 / 0.6439 GB, free: 143.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002257/4.369, allocations: 28.67 kB / 0.6439 GB, free: 143.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/4.369, allocations: 54.12 kB / 0.644 GB, free: 143.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/4.37, allocations: 38.84 kB / 0.644 GB, free: 143.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005209/4.375, allocations: 2.046 MB / 0.646 GB, free: 143.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009567/4.384, allocations: 0.7115 MB / 0.6467 GB, free: 143.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000927/4.385, allocations: 134.1 kB / 0.6468 GB, free: 143.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0143/4.4, allocations: 3.744 MB / 0.6505 GB, free: 142.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/4.4, allocations: 0 / 0.6505 GB, free: 142.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/4.402, allocations: 0.8962 MB / 0.6514 GB, free: 142.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/4.405, allocations: 280.2 kB / 0.6516 GB, free: 142.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02789/4.433, allocations: 6.171 MB / 0.6577 GB, free: 141.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01211/4.445, allocations: 3.273 MB / 0.6609 GB, free: 140.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/4.445, allocations: 0 / 0.6609 GB, free: 140.5 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat