Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Spring2",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.631/2.631, allocations: 235 MB / 242 MB, free: 9.77 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1758/2.807, allocations: 57.2 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/3.072, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/3.475, allocations: 94.74 MB / 448.8 MB, free: 31.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/3.475, allocations: 78.88 kB / 448.9 MB, free: 31.49 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: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.5435/4.018, allocations: 98.36 MB / 0.5344 GB, free: 3.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/4.019, allocations: 8 kB / 0.5344 GB, free: 3.363 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04107/4.06, allocations: 2.337 MB / 0.5367 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05189/4.112, allocations: 7.224 MB / 0.5438 GB, free: 9.727 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007246/4.112, allocations: 152 kB / 0.5439 GB, free: 9.578 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004212/4.117, allocations: 291.7 kB / 0.5442 GB, free: 9.293 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03651/4.153, allocations: 7.394 MB / 0.5514 GB, free: 1.891 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05087/4.204, allocations: 10.94 MB / 0.5621 GB, free: 5.727 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006298/4.205, allocations: 67.34 kB / 0.5622 GB, free: 5.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003626/4.209, allocations: 39.94 kB / 0.5622 GB, free: 5.621 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006252/4.215, allocations: 1.284 MB / 0.5635 GB, free: 4.328 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3976/4.613, allocations: 57.78 MB / 0.6199 GB, free: 112.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008458/4.621, allocations: 3.623 MB / 0.6234 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00695/4.628, allocations: 2.715 MB / 0.6261 GB, free: 111.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02762/4.656, allocations: 8.817 MB / 0.6347 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/4.656, allocations: 52.53 kB / 0.6347 GB, free: 109.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=193): time 6.372e-06/4.656, allocations: 2.438 kB / 0.6347 GB, free: 109.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=222): time 0.1085/4.764, allocations: 19.11 MB / 0.6534 GB, free: 106.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/4.765, allocations: 203 kB / 0.6536 GB, free: 106.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01478/4.779, allocations: 3.514 MB / 0.657 GB, free: 105.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/4.781, allocations: 31.58 kB / 0.657 GB, free: 105.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004584/4.785, allocations: 3.286 MB / 0.6603 GB, free: 103.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00262/4.788, allocations: 0.8749 MB / 0.6611 GB, free: 103.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/4.79, allocations: 0 / 0.6611 GB, free: 103.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001292/4.791, allocations: 0.6223 MB / 0.6617 GB, free: 102.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01366/4.805, allocations: 3.013 MB / 0.6647 GB, free: 102.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01791/4.823, allocations: 7.346 MB / 0.6718 GB, free: 97.31 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02033/4.843, allocations: 4.835 MB / 0.6766 GB, free: 96.88 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002954/4.844, allocations: 49.8 kB / 0.6766 GB, free: 96.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=973) (initialization): time 0.07756/4.921, allocations: 12.03 MB / 0.6884 GB, free: 93.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/4.921, allocations: 3.781 kB / 0.6884 GB, free: 93.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04844/4.97, allocations: 6.302 MB / 0.6945 GB, free: 92.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03553/5.005, allocations: 3.109 MB / 0.6976 GB, free: 91.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0171/5.023, allocations: 1.681 MB / 0.6992 GB, free: 91.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05112/5.074, allocations: 15.38 MB / 0.7142 GB, free: 79.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02863/5.102, allocations: 491.9 kB / 0.7147 GB, free: 79.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003038/5.106, allocations: 462.6 kB / 0.7151 GB, free: 78.76 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 705 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (896): * Single equations (assignments): 876 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 11,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003801/5.109, allocations: 499.8 kB / 0.7156 GB, free: 78.28 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/5.111, allocations: 379.1 kB / 0.716 GB, free: 77.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04451/5.156, allocations: 6.702 MB / 0.7225 GB, free: 72.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0333/5.189, allocations: 6.105 MB / 0.7285 GB, free: 68.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.193e-05/5.189, allocations: 8 kB / 0.7285 GB, free: 68.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.016e-05/5.189, allocations: 11.12 kB / 0.7285 GB, free: 68.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05732/5.247, allocations: 13.84 MB / 0.742 GB, free: 57.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/5.247, allocations: 3.938 kB / 0.742 GB, free: 57.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004519/5.251, allocations: 353.2 kB / 0.7423 GB, free: 57.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02378/5.275, allocations: 3.123 MB / 0.7454 GB, free: 55.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009459/5.276, allocations: 49.91 kB / 0.7454 GB, free: 55.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03989/5.316, allocations: 16.47 MB / 0.7615 GB, free: 39.75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003556/5.32, allocations: 4.147 MB / 0.7656 GB, free: 35.25 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04072/5.36, allocations: 10.3 MB / 0.7756 GB, free: 24.86 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04773/5.408, allocations: 13.76 MB / 0.7891 GB, free: 11.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/5.41, allocations: 436.1 kB / 0.7895 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/5.412, allocations: 31.83 kB / 0.7895 GB, free: 10.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008244/5.42, allocations: 195.7 kB / 0.7897 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001715/5.422, allocations: 113.8 kB / 0.7898 GB, free: 10.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00149/5.423, allocations: 71.47 kB / 0.7899 GB, free: 10.17 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.009262/5.433, allocations: 2.346 MB / 0.7922 GB, free: 7.816 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01335/5.446, allocations: 1.359 MB / 0.7935 GB, free: 6.465 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 10,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00145/5.448, allocations: 189 kB / 0.7937 GB, free: 6.281 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2322/5.68, allocations: 8.761 MB / 0.8022 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/5.68, allocations: 3.562 kB / 0.8022 GB, free: 138.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02413/5.704, allocations: 4.217 MB / 0.8064 GB, free: 137.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006549/5.711, allocations: 387.3 kB / 0.8067 GB, free: 137.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05233/5.763, allocations: 11.16 MB / 0.8176 GB, free: 135.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01373/5.777, allocations: 4.125 MB / 0.8217 GB, free: 134.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.956e-06/5.777, allocations: 0 / 0.8217 GB, free: 134.5 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat