Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_FreeBodiesEnforceStatesFalse",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.49/2.49, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1842/2.675, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/2.963, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/3.45, allocations: 98.53 MB / 452.6 MB, free: 33.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/3.451, allocations: 78.69 kB / 452.7 MB, free: 33.07 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.7898/4.241, allocations: 145.7 MB / 0.5844 GB, free: 140 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/4.241, allocations: 8 kB / 0.5844 GB, free: 132 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07912/4.32, allocations: 7.193 MB / 0.5914 GB, free: 8.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07248/4.392, allocations: 11 MB / 0.6022 GB, free: 13.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009756/4.393, allocations: 244 kB / 0.6024 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00575/4.399, allocations: 467.7 kB / 0.6028 GB, free: 13.13 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05125/4.451, allocations: 10.46 MB / 0.6131 GB, free: 2.656 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2684/4.719, allocations: 15.53 MB / 0.6282 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005803/4.72, allocations: 102.8 kB / 0.6283 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003434/4.723, allocations: 46.44 kB / 0.6284 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004524/4.728, allocations: 1.724 MB / 0.6301 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1511/4.879, allocations: 79.9 MB / 0.7081 GB, free: 60.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/4.891, allocations: 4.65 MB / 0.7126 GB, free: 59.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009327/4.9, allocations: 3.688 MB / 0.7162 GB, free: 58.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03569/4.936, allocations: 10.97 MB / 0.7269 GB, free: 52.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.429e-05/4.936, allocations: 59.34 kB / 0.727 GB, free: 52.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 8.636e-06/4.936, allocations: 0 / 0.727 GB, free: 52.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1341/5.07, allocations: 22.2 MB / 0.7487 GB, free: 44.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/5.07, allocations: 230.6 kB / 0.7489 GB, free: 44.23 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01635/5.087, allocations: 5.218 MB / 0.754 GB, free: 42.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0011/5.088, allocations: 25.7 kB / 0.754 GB, free: 42.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0047/5.093, allocations: 4.755 MB / 0.7587 GB, free: 38.68 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002738/5.095, allocations: 1.156 MB / 0.7598 GB, free: 37.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/5.097, allocations: 3.125 kB / 0.7598 GB, free: 37.84 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009667/5.098, allocations: 0.7176 MB / 0.7605 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01163/5.11, allocations: 3.836 MB / 0.7642 GB, free: 36.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01603/5.126, allocations: 9.699 MB / 0.7737 GB, free: 26.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02396/5.15, allocations: 6.184 MB / 0.7797 GB, free: 24.65 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003737/5.15, allocations: 59.84 kB / 0.7798 GB, free: 24.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=1295) (initialization): time 0.07437/5.225, allocations: 15.03 MB / 0.7945 GB, free: 14.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/5.225, allocations: 7.844 kB / 0.7945 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04481/5.269, allocations: 7.552 MB / 0.8019 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03892/5.308, allocations: 3.438 MB / 0.8052 GB, free: 6.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01832/5.327, allocations: 2.314 MB / 0.8075 GB, free: 4.305 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2511/5.578, allocations: 12.67 MB / 0.8199 GB, free: 92.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01798/5.596, allocations: 0.5174 MB / 0.8204 GB, free: 92.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003126/5.599, allocations: 0.6107 MB / 0.821 GB, free: 92.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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 (1219): * Single equations (assignments): 1194 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004571/5.604, allocations: 0.6351 MB / 0.8216 GB, free: 92.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001847/5.606, allocations: 0.5504 MB / 0.8221 GB, free: 92.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03819/5.644, allocations: 7.528 MB / 0.8295 GB, free: 92.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03834/5.682, allocations: 6.723 MB / 0.836 GB, free: 92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-05/5.682, allocations: 11.19 kB / 0.836 GB, free: 92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001099/5.682, allocations: 13.58 kB / 0.8361 GB, free: 92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/5.703, allocations: 6.206 MB / 0.8421 GB, free: 91.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.697e-05/5.703, allocations: 0 / 0.8421 GB, free: 91.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009281/5.712, allocations: 0.573 MB / 0.8427 GB, free: 91.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02351/5.736, allocations: 2.952 MB / 0.8456 GB, free: 91.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001349/5.737, allocations: 71.55 kB / 0.8456 GB, free: 91.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03176/5.769, allocations: 13.46 MB / 0.8588 GB, free: 84.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005296/5.774, allocations: 5.648 MB / 0.8643 GB, free: 79.16 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04478/5.819, allocations: 11.78 MB / 0.8758 GB, free: 78.41 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05413/5.873, allocations: 15.94 MB / 0.8914 GB, free: 77.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/5.876, allocations: 0.5907 MB / 0.8919 GB, free: 76.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00277/5.878, allocations: 42.22 kB / 0.892 GB, free: 76.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008835/5.887, allocations: 213.9 kB / 0.8922 GB, free: 76.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/5.889, allocations: 150.2 kB / 0.8923 GB, free: 76.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006012/5.889, allocations: 94 kB / 0.8924 GB, free: 76.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01143/5.901, allocations: 3.515 MB / 0.8958 GB, free: 76.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01831/5.919, allocations: 1.888 MB / 0.8977 GB, free: 76.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$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],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],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],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.frame_a.r_0[1],bodyBox.body.frame_a.r_0[2],bodyBox.body.frame_a.r_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001626/5.921, allocations: 216.3 kB / 0.8979 GB, free: 75.99 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04087/5.962, allocations: 10.95 MB / 0.9086 GB, free: 71.99 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/5.962, allocations: 0 / 0.9086 GB, free: 71.99 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02142/5.983, allocations: 5.093 MB / 0.9136 GB, free: 69.51 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008273/5.991, allocations: 0.6807 MB / 0.9142 GB, free: 69.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06357/6.055, allocations: 16.52 MB / 0.9304 GB, free: 63.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0208/6.076, allocations: 6.025 MB / 0.9363 GB, free: 59.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.663e-06/6.076, allocations: 0 / 0.9363 GB, free: 59.54 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse_res.mat does not exist to compare? outputFormat=mat