Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.588/2.588, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 5.324e-05/5.34e-05, allocations: 4 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4295/0.4296, allocations: 58.83 MB / 382.3 MB, free: 10.2 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.6209, allocations: 102.9 MB / 485.2 MB, free: 5.457 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.6213, allocations: 79.95 kB / 485.3 MB, free: 5.379 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.7329/1.354, allocations: 98.66 MB / 0.5703 GB, free: 104.4 MB / 458.8 MB Notification: Performance of FrontEnd: time 1.824e-06/1.354, allocations: 0 / 0.5703 GB, free: 104.4 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0002924/1.355, allocations: 95.94 kB / 0.5704 GB, free: 104.3 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.04411/1.399, allocations: 5.933 MB / 0.5762 GB, free: 98.3 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/1.399, allocations: 12.03 kB / 0.5762 GB, free: 98.29 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004201/1.403, allocations: 0.8828 MB / 0.577 GB, free: 97.43 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02531/1.428, allocations: 2.945 MB / 0.5799 GB, free: 94.48 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02742/1.456, allocations: 7.25 MB / 0.587 GB, free: 87.26 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000507/1.456, allocations: 369.4 kB / 0.5873 GB, free: 86.93 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002801/1.459, allocations: 0.493 MB / 0.5878 GB, free: 86.47 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03763/1.497, allocations: 12.39 MB / 0.5999 GB, free: 72.95 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003526/1.497, allocations: 75.34 kB / 0.6 GB, free: 72.88 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002376/1.5, allocations: 237.3 kB / 0.6002 GB, free: 72.68 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/1.503, allocations: 1.252 MB / 0.6014 GB, free: 71.42 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.039/1.542, allocations: 10.25 MB / 0.6114 GB, free: 61.16 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1072/1.649, allocations: 58.03 MB / 0.6681 GB, free: 1.488 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02714/1.676, allocations: 5.305 MB / 0.6733 GB, free: 12.02 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006604/1.683, allocations: 2.443 MB / 0.6757 GB, free: 9.562 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03305/1.716, allocations: 12.34 MB / 0.6877 GB, free: 12.67 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8e-05/1.716, allocations: 63.88 kB / 0.6878 GB, free: 12.6 MB / 490.8 MB Notification: Performance of pre-optimization done (n=219): time 9.518e-06/1.716, allocations: 0 / 0.6878 GB, free: 12.6 MB / 490.8 MB Notification: Performance of matching and sorting (n=258): time 0.1369/1.853, allocations: 21.28 MB / 0.7086 GB, free: 7.145 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004713/1.858, allocations: 4.598 MB / 0.7131 GB, free: 2.074 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3666/2.225, allocations: 4.003 MB / 0.717 GB, free: 138.4 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009319/2.226, allocations: 68.77 kB / 0.717 GB, free: 138.4 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004668/2.23, allocations: 3.523 MB / 0.7205 GB, free: 137.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002315/2.233, allocations: 1.03 MB / 0.7215 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/2.234, allocations: 150.5 kB / 0.7216 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006887/2.235, allocations: 0.624 MB / 0.7222 GB, free: 136.3 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/2.246, allocations: 3.088 MB / 0.7253 GB, free: 136.3 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01146/2.258, allocations: 7.296 MB / 0.7324 GB, free: 130.9 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/2.269, allocations: 4.681 MB / 0.737 GB, free: 130.8 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002032/2.269, allocations: 41.88 kB / 0.737 GB, free: 130.8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.04466/2.313, allocations: 12.55 MB / 0.7493 GB, free: 127.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/2.314, allocations: 70.73 kB / 0.7493 GB, free: 127.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02504/2.339, allocations: 6.459 MB / 0.7556 GB, free: 126 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01998/2.359, allocations: 3.344 MB / 0.7589 GB, free: 125.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/2.37, allocations: 1.73 MB / 0.7606 GB, free: 125.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02644/2.396, allocations: 15.83 MB / 0.776 GB, free: 115 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01213/2.408, allocations: 0.7689 MB / 0.7768 GB, free: 114.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001888/2.41, allocations: 458.1 kB / 0.7772 GB, free: 114 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (906): * Single equations (assignments): 886 * 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%),(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%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002109/2.412, allocations: 0.659 MB / 0.7779 GB, free: 113.4 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/2.414, allocations: 422.6 kB / 0.7783 GB, free: 113 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02603/2.44, allocations: 7.055 MB / 0.7852 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02403/2.464, allocations: 6.387 MB / 0.7914 GB, free: 102.8 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.382e-05/2.464, allocations: 8 kB / 0.7914 GB, free: 102.8 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.539e-05/2.464, allocations: 10.27 kB / 0.7914 GB, free: 102.8 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04905/2.513, allocations: 15.37 MB / 0.8064 GB, free: 89.79 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.513e-05/2.513, allocations: 8 kB / 0.8064 GB, free: 89.79 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004298/2.518, allocations: 451.3 kB / 0.8069 GB, free: 89.34 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01885/2.536, allocations: 3.329 MB / 0.8101 GB, free: 85.98 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008708/2.537, allocations: 82.44 kB / 0.8102 GB, free: 85.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02918/2.567, allocations: 16.47 MB / 0.8263 GB, free: 68.68 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00359/2.57, allocations: 4.423 MB / 0.8306 GB, free: 63.83 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03341/2.604, allocations: 11.23 MB / 0.8416 GB, free: 52.21 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002585/2.606, allocations: 0.4916 MB / 0.842 GB, free: 51.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003062/2.609, allocations: 59.98 kB / 0.8421 GB, free: 51.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01001/2.62, allocations: 347.5 kB / 0.8424 GB, free: 51.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001723/2.621, allocations: 200.6 kB / 0.8426 GB, free: 51.11 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006204/2.622, allocations: 89.58 kB / 0.8427 GB, free: 51.03 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01105/2.633, allocations: 2.769 MB / 0.8454 GB, free: 48.25 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.733e-06/2.633, allocations: 0 / 0.8454 GB, free: 48.25 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01991/2.653, allocations: 1.535 MB / 0.8469 GB, free: 46.73 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (196): * Single equations (assignments): 182 * 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 {(3,100.0%),(4,100.0%),(3,100.0%),(4,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%) 8,(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.05113/2.704, allocations: 13.19 MB / 0.8598 GB, free: 33.29 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03617/2.74, allocations: 8.911 MB / 0.8685 GB, free: 24.23 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/2.741, allocations: 8.125 kB / 0.8685 GB, free: 24.22 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0189/2.759, allocations: 4.548 MB / 0.8729 GB, free: 19.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/2.764, allocations: 0.504 MB / 0.8734 GB, free: 19.01 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03895/2.803, allocations: 13.2 MB / 0.8863 GB, free: 5.824 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007994/2.811, allocations: 3.8 MB / 0.89 GB, free: 2.008 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01043/2.822, allocations: 2.265 MB / 0.8922 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006181/2.828, allocations: 2.284 MB / 0.8945 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of SimCode: time 1.834e-06/2.828, allocations: 4 kB / 0.8945 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6031/3.431, allocations: 106.2 MB / 0.9982 GB, free: 84.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002399/3.432, allocations: 171.4 kB / 0.9983 GB, free: 84.32 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.907/10.34, allocations: 4 kB / 0.9983 GB, free: 84.32 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat