Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.514/2.514, allocations: 270 MB / 283.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.98e-05/4.016e-05, allocations: 4 kB / 348.5 MB, free: 2.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4313/0.4313, allocations: 61.87 MB / 410.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2452/0.6767, allocations: 106.5 MB / 0.5047 GB, free: 15.98 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.677, allocations: 75.95 kB / 0.5048 GB, free: 15.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6919/1.369, allocations: 87.64 MB / 0.5904 GB, free: 51.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.369, allocations: 0 / 0.5904 GB, free: 51.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002442/1.369, allocations: 84 kB / 0.5905 GB, free: 51.35 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01416/1.383, allocations: 3.971 MB / 0.5943 GB, free: 47.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/1.383, allocations: 8.031 kB / 0.5943 GB, free: 47.3 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003279/1.387, allocations: 0.7786 MB / 0.5951 GB, free: 46.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01904/1.406, allocations: 2.447 MB / 0.5975 GB, free: 44.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01736/1.423, allocations: 4.875 MB / 0.6023 GB, free: 39.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004561/1.424, allocations: 328.7 kB / 0.6026 GB, free: 38.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/1.426, allocations: 439.9 kB / 0.603 GB, free: 38.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03163/1.458, allocations: 10.55 MB / 0.6133 GB, free: 26.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002674/1.458, allocations: 59.41 kB / 0.6133 GB, free: 26.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001793/1.46, allocations: 215.9 kB / 0.6135 GB, free: 26.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/1.462, allocations: 1.041 MB / 0.6146 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02491/1.487, allocations: 7.992 MB / 0.6224 GB, free: 17.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0748/1.562, allocations: 48.06 MB / 0.6693 GB, free: 15.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/1.576, allocations: 3.175 MB / 0.6724 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002802/1.579, allocations: 1.03 MB / 0.6734 GB, free: 11.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/1.594, allocations: 5.971 MB / 0.6792 GB, free: 4.973 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/1.594, allocations: 55.28 kB / 0.6793 GB, free: 4.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 5.951e-06/1.594, allocations: 0 / 0.6793 GB, free: 4.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.03978/1.634, allocations: 8.649 MB / 0.6877 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/1.634, allocations: 196.9 kB / 0.6879 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009809/1.644, allocations: 3.546 MB / 0.6914 GB, free: 8.332 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003173/1.644, allocations: 49.7 kB / 0.6914 GB, free: 8.277 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003775/1.648, allocations: 3.179 MB / 0.6945 GB, free: 5.055 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001101/1.649, allocations: 0.6405 MB / 0.6952 GB, free: 4.406 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007947/1.65, allocations: 120 kB / 0.6953 GB, free: 4.289 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006227/1.65, allocations: 0.5621 MB / 0.6958 GB, free: 3.719 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004757/1.655, allocations: 1.543 MB / 0.6973 GB, free: 2.172 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008538/1.664, allocations: 5.343 MB / 0.7025 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007293/1.671, allocations: 2.886 MB / 0.7054 GB, free: 8.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/1.671, allocations: 36 kB / 0.7054 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.019/1.69, allocations: 6.297 MB / 0.7115 GB, free: 1.684 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/1.69, allocations: 63.95 kB / 0.7116 GB, free: 1.621 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/1.691, allocations: 144.2 kB / 0.7117 GB, free: 1.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002942/1.691, allocations: 196 kB / 0.7119 GB, free: 1.289 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3841/2.075, allocations: 1.439 MB / 0.7133 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005041/2.076, allocations: 267.7 kB / 0.7136 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007798/2.084, allocations: 379.7 kB / 0.714 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001946/2.086, allocations: 371.4 kB / 0.7143 GB, free: 129.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (763): * Single equations (assignments): 760 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002337/2.088, allocations: 0.5759 MB / 0.7149 GB, free: 129 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000939/2.089, allocations: 353.8 kB / 0.7152 GB, free: 129 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003997/2.093, allocations: 1.313 MB / 0.7165 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.578e-05/2.093, allocations: 22.66 kB / 0.7165 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/2.093, allocations: 0 / 0.7165 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.97e-05/2.093, allocations: 9.891 kB / 0.7165 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01641/2.11, allocations: 5.788 MB / 0.7222 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-05/2.11, allocations: 17.72 kB / 0.7222 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/2.112, allocations: 279.4 kB / 0.7225 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-05/2.112, allocations: 27.75 kB / 0.7225 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/2.112, allocations: 53.58 kB / 0.7225 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.16e-05/2.112, allocations: 37.56 kB / 0.7226 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.687e-05/2.112, allocations: 31.77 kB / 0.7226 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006574/2.119, allocations: 5.285 MB / 0.7278 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/2.12, allocations: 428.1 kB / 0.7282 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007909/2.121, allocations: 52.66 kB / 0.7282 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002577/2.124, allocations: 99.78 kB / 0.7283 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003722/2.124, allocations: 149.8 kB / 0.7285 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/2.124, allocations: 69.75 kB / 0.7285 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006312/2.131, allocations: 2.444 MB / 0.7309 GB, free: 124 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.253e-06/2.131, allocations: 0 / 0.7309 GB, free: 124 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007552/2.138, allocations: 0.9188 MB / 0.7318 GB, free: 124 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007502/2.146, allocations: 10.19 MB / 0.7418 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00836/2.154, allocations: 3.434 MB / 0.7451 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-05/2.154, allocations: 3.906 kB / 0.7451 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/2.156, allocations: 0.7111 MB / 0.7458 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004125/2.16, allocations: 440.3 kB / 0.7462 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02684/2.187, allocations: 8.488 MB / 0.7545 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006776/2.194, allocations: 3.258 MB / 0.7577 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00815/2.202, allocations: 1.825 MB / 0.7595 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004059/2.206, allocations: 1.859 MB / 0.7613 GB, free: 111 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/2.206, allocations: 0 / 0.7613 GB, free: 111 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1516/2.358, allocations: 67.72 MB / 0.8274 GB, free: 64.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/2.358, allocations: 142.6 kB / 0.8276 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.494/7.851, allocations: 0 / 0.8276 GB, free: 64.07 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat