Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",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(Modelica): time 2.886/2.886, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3713/3.258, allocations: 46.83 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/3.41, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4983/3.908, allocations: 85.3 MB / 379.2 MB, free: 6.219 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000446/3.909, allocations: 85.95 kB / 379.3 MB, free: 6.207 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1465 * Number of variables: 1465 Notification: Performance of Generate backend data structure: time 0.6188/4.527, allocations: 78.93 MB / 458.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.217e-05/4.527, allocations: 8 kB / 458.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03852/4.566, allocations: 1.835 MB / 460.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03334/4.599, allocations: 4.376 MB / 464.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004098/4.6, allocations: 139.9 kB / 464.6 MB, free: 5.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002721/4.603, allocations: 236 kB / 464.8 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02448/4.627, allocations: 5.872 MB / 470.7 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03511/4.662, allocations: 9.156 MB / 479.8 MB, free: 5.578 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003478/4.663, allocations: 55.41 kB / 479.9 MB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002088/4.665, allocations: 36 kB / 479.9 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003659/4.669, allocations: 1.052 MB / 481 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3731/5.042, allocations: 48.29 MB / 0.5169 GB, free: 95.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009071/5.051, allocations: 2.222 MB / 0.519 GB, free: 95.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006027/5.057, allocations: 1.349 MB / 0.5203 GB, free: 95.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0233/5.08, allocations: 4.158 MB / 0.5244 GB, free: 94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.106e-05/5.081, allocations: 52.97 kB / 0.5245 GB, free: 93.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=131): time 9.989e-06/5.081, allocations: 0 / 0.5245 GB, free: 93.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=138): time 0.0696/5.15, allocations: 8.87 MB / 0.5331 GB, free: 91.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/5.15, allocations: 139.4 kB / 0.5333 GB, free: 91.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01343/5.164, allocations: 2.982 MB / 0.5362 GB, free: 90.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005591/5.164, allocations: 25.7 kB / 0.5362 GB, free: 90.94 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004406/5.169, allocations: 2.963 MB / 0.5391 GB, free: 89.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001605/5.171, allocations: 0.5674 MB / 0.5396 GB, free: 88.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/5.172, allocations: 0 / 0.5396 GB, free: 88.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0008615/5.173, allocations: 0.5696 MB / 0.5402 GB, free: 88.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009833/5.182, allocations: 1.876 MB / 0.542 GB, free: 88.51 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01412/5.197, allocations: 5.861 MB / 0.5478 GB, free: 83.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01494/5.212, allocations: 3.312 MB / 0.551 GB, free: 83.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002412/5.212, allocations: 42.25 kB / 0.551 GB, free: 83.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.05357/5.266, allocations: 7.835 MB / 0.5587 GB, free: 81.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/5.266, allocations: 7.375 kB / 0.5587 GB, free: 81.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02311/5.289, allocations: 2.642 MB / 0.5613 GB, free: 80.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01895/5.308, allocations: 1.447 MB / 0.5627 GB, free: 80.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01569/5.324, allocations: 1.377 MB / 0.564 GB, free: 80.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/5.341, allocations: 5.384 MB / 0.5693 GB, free: 76.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01645/5.358, allocations: 274.1 kB / 0.5695 GB, free: 76.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002594/5.36, allocations: 391.8 kB / 0.5699 GB, free: 76.34 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring3.lineForce.r_rel_0[1]:VARIABLE(unit = "m" ) "Position vector from frame_a to frame_b resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 658 * Number of states: 0 () * Number of discrete variables: 36 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (741): * Single equations (assignments): 731 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.003465/5.364, allocations: 466 kB / 0.5704 GB, free: 75.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/5.366, allocations: 298 kB / 0.5706 GB, free: 75.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/5.39, allocations: 2.855 MB / 0.5734 GB, free: 74.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02292/5.413, allocations: 2.451 MB / 0.5758 GB, free: 74.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.791e-05/5.413, allocations: 2.625 kB / 0.5758 GB, free: 74.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.894e-05/5.414, allocations: 4.656 kB / 0.5758 GB, free: 74.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/5.429, allocations: 2.747 MB / 0.5785 GB, free: 73.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.36e-05/5.429, allocations: 0 / 0.5785 GB, free: 73.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/5.432, allocations: 149.4 kB / 0.5787 GB, free: 73.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01787/5.45, allocations: 1.344 MB / 0.58 GB, free: 72.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006658/5.451, allocations: 18.75 kB / 0.58 GB, free: 72.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01982/5.471, allocations: 5.596 MB / 0.5855 GB, free: 66.98 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002032/5.473, allocations: 1.365 MB / 0.5868 GB, free: 65.53 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03112/5.504, allocations: 5.063 MB / 0.5917 GB, free: 61.16 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03858/5.543, allocations: 6.912 MB / 0.5985 GB, free: 55.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/5.545, allocations: 346.9 kB / 0.5988 GB, free: 54.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001658/5.546, allocations: 11.61 kB / 0.5988 GB, free: 54.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006206/5.553, allocations: 73.12 kB / 0.5989 GB, free: 54.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008347/5.553, allocations: 72.84 kB / 0.599 GB, free: 54.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003968/5.554, allocations: 39.75 kB / 0.599 GB, free: 54.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.009062/5.563, allocations: 1.948 MB / 0.6009 GB, free: 52.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01717/5.58, allocations: 0.8657 MB / 0.6017 GB, free: 52.08 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {7 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001215/5.581, allocations: 144.9 kB / 0.6019 GB, free: 51.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02756/5.609, allocations: 5.024 MB / 0.6068 GB, free: 47.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.474e-05/5.609, allocations: 0 / 0.6068 GB, free: 47.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01328/5.622, allocations: 1.832 MB / 0.6086 GB, free: 45.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004751/5.627, allocations: 281.8 kB / 0.6088 GB, free: 45.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04143/5.669, allocations: 7.269 MB / 0.6159 GB, free: 39.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01477/5.684, allocations: 3.399 MB / 0.6193 GB, free: 36.38 MB / 394.7 MB Notification: Performance of SimCode: time 2.474e-06/5.684, allocations: 0 / 0.6193 GB, free: 36.38 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat