Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_Distance",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.311/2.311, allocations: 235.1 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1648/2.476, allocations: 57.2 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/2.799, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4469/3.246, allocations: 98.18 MB / 452.3 MB, free: 32.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003978/3.247, allocations: 80.73 kB / 452.3 MB, free: 32.71 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.3735/3.62, allocations: 73.84 MB / 0.5138 GB, free: 7.945 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/3.62, allocations: 8 kB / 0.5138 GB, free: 7.938 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03433/3.655, allocations: 3.901 MB / 0.5177 GB, free: 4.344 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01844/3.673, allocations: 4.257 MB / 0.5218 GB, free: 476 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/3.674, allocations: 104 kB / 0.5219 GB, free: 372 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001929/3.676, allocations: 195.9 kB / 0.5221 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01605/3.692, allocations: 4.803 MB / 0.5268 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03025/3.722, allocations: 7.704 MB / 0.5343 GB, free: 2.695 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002662/3.722, allocations: 59.47 kB / 0.5344 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00148/3.724, allocations: 28 kB / 0.5344 GB, free: 2.609 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002119/3.726, allocations: 0.8716 MB / 0.5352 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07384/3.8, allocations: 38.77 MB / 0.5731 GB, free: 9.727 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00564/3.805, allocations: 2.166 MB / 0.5752 GB, free: 7.414 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003248/3.809, allocations: 1.196 MB / 0.5764 GB, free: 6.207 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/3.822, allocations: 4.19 MB / 0.5805 GB, free: 1.809 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.63e-05/3.822, allocations: 51 kB / 0.5805 GB, free: 1.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=114): time 7.334e-06/3.822, allocations: 0 / 0.5805 GB, free: 1.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.06127/3.884, allocations: 10.46 MB / 0.5908 GB, free: 7.164 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/3.884, allocations: 204.6 kB / 0.5909 GB, free: 6.922 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/3.894, allocations: 2.824 MB / 0.5937 GB, free: 4.094 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003899/3.894, allocations: 29.64 kB / 0.5937 GB, free: 4.059 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003538/3.898, allocations: 2.576 MB / 0.5962 GB, free: 1.441 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/3.899, allocations: 0.5478 MB / 0.5968 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009319/3.9, allocations: 0 / 0.5968 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009533/3.901, allocations: 0.5414 MB / 0.5973 GB, free: 348 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00567/3.907, allocations: 1.573 MB / 0.5988 GB, free: 14.76 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/3.917, allocations: 5.112 MB / 0.6038 GB, free: 7.832 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009172/3.926, allocations: 2.861 MB / 0.6066 GB, free: 4.969 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/3.926, allocations: 39.91 kB / 0.6067 GB, free: 4.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.2138/4.14, allocations: 5.979 MB / 0.6125 GB, free: 153.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/4.14, allocations: 5.5 kB / 0.6125 GB, free: 153.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/4.141, allocations: 131.8 kB / 0.6126 GB, free: 153.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/4.142, allocations: 351.8 kB / 0.613 GB, free: 153.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009521/4.152, allocations: 1.279 MB / 0.6142 GB, free: 153.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/4.157, allocations: 2.56 MB / 0.6167 GB, free: 152.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007119/4.164, allocations: 165.9 kB / 0.6169 GB, free: 152.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001551/4.165, allocations: 354.1 kB / 0.6172 GB, free: 152.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (689): * Single equations (assignments): 685 * 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.002025/4.167, allocations: 412.1 kB / 0.6176 GB, free: 152.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008039/4.168, allocations: 279.5 kB / 0.6179 GB, free: 152.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006121/4.174, allocations: 1.679 MB / 0.6195 GB, free: 152 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/4.175, allocations: 11.81 kB / 0.6195 GB, free: 152 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/4.175, allocations: 5.812 kB / 0.6195 GB, free: 152 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.829e-05/4.175, allocations: 9.281 kB / 0.6195 GB, free: 152 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/4.191, allocations: 4.494 MB / 0.6239 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-05/4.191, allocations: 3.844 kB / 0.6239 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/4.194, allocations: 204.9 kB / 0.6241 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/4.195, allocations: 159.1 kB / 0.6243 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003131/4.195, allocations: 8.438 kB / 0.6243 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003832/4.199, allocations: 2.033 MB / 0.6263 GB, free: 150.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/4.199, allocations: 0 / 0.6263 GB, free: 150.4 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009429/4.209, allocations: 3.737 MB / 0.6299 GB, free: 149.8 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01367/4.222, allocations: 5.364 MB / 0.6352 GB, free: 148.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/4.224, allocations: 0.4911 MB / 0.6356 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/4.226, allocations: 6.172 kB / 0.6357 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002885/4.228, allocations: 31.23 kB / 0.6357 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003804/4.229, allocations: 63.08 kB / 0.6357 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/4.229, allocations: 36.22 kB / 0.6358 GB, free: 148.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005872/4.235, allocations: 1.895 MB / 0.6376 GB, free: 148.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01376/4.249, allocations: 0.6756 MB / 0.6383 GB, free: 148.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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.001041/4.25, allocations: 146.3 kB / 0.6384 GB, free: 148.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01383/4.264, allocations: 3.774 MB / 0.6421 GB, free: 148.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/4.264, allocations: 2.906 kB / 0.6421 GB, free: 148.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003797/4.268, allocations: 1.033 MB / 0.6431 GB, free: 148.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/4.272, allocations: 281.2 kB / 0.6434 GB, free: 148.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02965/4.302, allocations: 5.927 MB / 0.6492 GB, free: 147 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01386/4.316, allocations: 3.065 MB / 0.6522 GB, free: 146.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.964e-06/4.316, allocations: 0 / 0.6522 GB, free: 146.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat