Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.518/2.518, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2153/2.733, allocations: 57.21 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/3.052, allocations: 54.85 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/3.497, allocations: 104.8 MB / 458.9 MB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/3.498, allocations: 75.97 kB / 459 MB, free: 35.03 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: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 1.308/4.805, allocations: 253.2 MB / 0.6955 GB, free: 33.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/4.805, allocations: 7.25 kB / 0.6955 GB, free: 33.77 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06795/4.873, allocations: 7.907 MB / 0.7032 GB, free: 32.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05219/4.926, allocations: 12.49 MB / 0.7154 GB, free: 31.22 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001285/4.927, allocations: 0.6436 MB / 0.716 GB, free: 31.22 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009628/4.937, allocations: 1.16 MB / 0.7172 GB, free: 31.21 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.08192/5.019, allocations: 23.49 MB / 0.7401 GB, free: 27.31 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1266/5.145, allocations: 34.12 MB / 0.7734 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001397/5.147, allocations: 146.4 kB / 0.7736 GB, free: 12.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00867/5.155, allocations: 72 kB / 0.7736 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006109/5.162, allocations: 2.501 MB / 0.7761 GB, free: 10.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8499/6.012, allocations: 142.7 MB / 0.9154 GB, free: 59.05 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/6.035, allocations: 8.08 MB / 0.9233 GB, free: 58.4 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01593/6.051, allocations: 7.136 MB / 0.9303 GB, free: 56.02 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07843/6.13, allocations: 28.05 MB / 0.9577 GB, free: 42.05 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001367/6.13, allocations: 74.47 kB / 0.9577 GB, free: 41.99 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=381): time 1.547e-05/6.13, allocations: 0 / 0.9577 GB, free: 41.99 MB / 0.5262 GB Notification: Performance of matching and sorting (n=495): time 1.994/8.124, allocations: 200.2 MB / 1.153 GB, free: 116.4 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/8.124, allocations: 282.6 kB / 1.154 GB, free: 116.1 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.023/8.147, allocations: 7.992 MB / 1.161 GB, free: 113.1 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.002887/8.15, allocations: 27.98 kB / 1.161 GB, free: 113.1 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.007927/8.158, allocations: 10.37 MB / 1.171 GB, free: 105.2 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004607/8.163, allocations: 1.863 MB / 1.173 GB, free: 103.9 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003545/8.167, allocations: 0 / 1.173 GB, free: 103.9 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001347/8.168, allocations: 1.048 MB / 1.174 GB, free: 103.3 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04646/8.214, allocations: 15.8 MB / 1.19 GB, free: 96.53 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06432/8.279, allocations: 26.5 MB / 1.216 GB, free: 71.17 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3332/8.612, allocations: 20.25 MB / 1.235 GB, free: 110.8 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004044/8.612, allocations: 110.1 kB / 1.236 GB, free: 110.8 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2254) (initialization): time 0.1318/8.744, allocations: 40.29 MB / 1.275 GB, free: 109.7 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/8.744, allocations: 6.312 kB / 1.275 GB, free: 109.7 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001067/8.745, allocations: 384.7 kB / 1.275 GB, free: 109.7 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003599/8.749, allocations: 0.8763 MB / 1.276 GB, free: 109.7 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06072/8.81, allocations: 4.794 MB / 1.281 GB, free: 109.3 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01577/8.826, allocations: 5.384 MB / 1.286 GB, free: 106.6 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.05297/8.879, allocations: 1.238 MB / 1.287 GB, free: 106.6 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008932/8.888, allocations: 1.044 MB / 1.288 GB, free: 106.6 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1753 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2198): * Single equations (assignments): 2188 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01326/8.901, allocations: 1.013 MB / 1.289 GB, free: 105.9 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007926/8.909, allocations: 0.8166 MB / 1.29 GB, free: 105.9 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1014/9.011, allocations: 30.45 MB / 1.32 GB, free: 96.64 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003776/9.011, allocations: 88.95 kB / 1.32 GB, free: 96.63 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.823e-05/9.011, allocations: 7.094 kB / 1.32 GB, free: 96.63 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001478/9.011, allocations: 25.22 kB / 1.32 GB, free: 96.63 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2157/9.227, allocations: 69.64 MB / 1.388 GB, free: 55.33 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.119e-05/9.227, allocations: 2.031 kB / 1.388 GB, free: 55.33 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03149/9.259, allocations: 1.553 MB / 1.389 GB, free: 54.23 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/9.261, allocations: 319.3 kB / 1.39 GB, free: 53.99 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002985/9.264, allocations: 15.7 kB / 1.39 GB, free: 53.98 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008051/9.272, allocations: 4.065 MB / 1.394 GB, free: 50.09 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/9.272, allocations: 0 / 1.394 GB, free: 50.09 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.443/9.715, allocations: 53.22 MB / 1.446 GB, free: 107.6 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2699/9.985, allocations: 74.57 MB / 1.519 GB, free: 79.36 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02654/10.01, allocations: 3.887 MB / 1.522 GB, free: 77.89 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009886/10.02, allocations: 3.688 kB / 1.522 GB, free: 77.89 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03028/10.05, allocations: 0.982 MB / 1.523 GB, free: 77.89 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004759/10.06, allocations: 217.8 kB / 1.523 GB, free: 77.86 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003435/10.06, allocations: 134.3 kB / 1.524 GB, free: 77.83 MB / 0.5263 GB Notification: Performance of sort global known variables: time 0.02439/10.08, allocations: 5.321 MB / 1.529 GB, free: 75.88 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.03493/10.12, allocations: 3.872 MB / 1.533 GB, free: 75.88 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (453): * Single equations (assignments): 443 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005678/10.13, allocations: 231.5 kB / 1.533 GB, free: 75.79 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.1202/10.25, allocations: 34.74 MB / 1.567 GB, free: 50.66 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/10.25, allocations: 0.625 kB / 1.567 GB, free: 50.66 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.04665/10.29, allocations: 15.02 MB / 1.581 GB, free: 36.86 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2774/10.57, allocations: 1.125 MB / 1.583 GB, free: 118.5 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1632/10.73, allocations: 42.78 MB / 1.624 GB, free: 113.6 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05746/10.79, allocations: 12.1 MB / 1.636 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of SimCode: time 2.084e-06/10.79, allocations: 3.609 kB / 1.636 GB, free: 112.5 MB / 0.5263 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat