Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.556/2.556, allocations: 235.1 MB / 242.2 MB, free: 15.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.029e-05/2.027e-05, allocations: 0 / 299.5 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3758, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1633/0.5391, allocations: 87.74 MB / 442.1 MB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.5394, allocations: 75.97 kB / 442.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05999/0.5994, allocations: 13.14 MB / 455.3 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5995, allocations: 0 / 455.3 MB, free: 13.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.62e-05/0.5996, allocations: 16 kB / 455.3 MB, free: 13.18 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002145/0.6017, allocations: 0.8218 MB / 456.1 MB, free: 12.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.6018, allocations: 8.031 kB / 456.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.6021, allocations: 79.06 kB / 456.2 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001183/0.6033, allocations: 460.2 kB / 456.7 MB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/0.6033, allocations: 12.34 kB / 456.7 MB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.6035, allocations: 43.84 kB / 456.7 MB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008101/0.6043, allocations: 270.6 kB / 457 MB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000996/0.6053, allocations: 388 kB / 457.4 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.6053, allocations: 4 kB / 457.4 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.44e-05/0.6054, allocations: 0 / 457.4 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.6055, allocations: 12 kB / 457.4 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005342/0.6108, allocations: 1.694 MB / 459.1 MB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.6119, allocations: 339.3 kB / 459.4 MB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003798/0.6123, allocations: 121.7 kB / 459.5 MB, free: 8.766 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.976e-05/0.6124, allocations: 8.031 kB / 459.5 MB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.6124, allocations: 34.56 kB / 459.6 MB, free: 8.715 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 4.719e-06/0.6124, allocations: 4 kB / 459.6 MB, free: 8.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009241/0.6134, allocations: 314.1 kB / 459.9 MB, free: 8.395 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.6134, allocations: 114.8 kB / 460 MB, free: 8.258 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.6141, allocations: 369.3 kB / 460.3 MB, free: 7.891 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.6142, allocations: 37.58 kB / 460.4 MB, free: 7.848 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/0.6145, allocations: 308.6 kB / 460.7 MB, free: 7.543 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.6147, allocations: 145.8 kB / 460.8 MB, free: 7.398 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.6147, allocations: 0 / 460.8 MB, free: 7.398 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.6149, allocations: 370.7 kB / 461.2 MB, free: 7.027 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.6153, allocations: 117.1 kB / 461.3 MB, free: 6.914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.6157, allocations: 247.1 kB / 461.5 MB, free: 6.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.6162, allocations: 139.9 kB / 461.7 MB, free: 6.484 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.6162, allocations: 4 kB / 461.7 MB, free: 6.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00114/0.6174, allocations: 444.1 kB / 462.1 MB, free: 6.039 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005963/0.618, allocations: 1.399 MB / 463.5 MB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.618, allocations: 8 kB / 463.5 MB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.618, allocations: 8 kB / 463.5 MB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009846/0.619, allocations: 123.8 kB / 463.6 MB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.6191, allocations: 4 kB / 463.6 MB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006826/0.6198, allocations: 55.66 kB / 463.7 MB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/0.6198, allocations: 16 kB / 463.7 MB, free: 4.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.6199, allocations: 4 kB / 463.7 MB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009258/0.6208, allocations: 343.6 kB / 464.1 MB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.6208, allocations: 8.031 kB / 464.1 MB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.6208, allocations: 11.98 kB / 464.1 MB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.6217, allocations: 119.8 kB / 464.2 MB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.6217, allocations: 7.953 kB / 464.2 MB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005643/0.6223, allocations: 47.52 kB / 464.2 MB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.6224, allocations: 27.98 kB / 464.3 MB, free: 3.762 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * Array equations: 0 * 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.0001652/0.6226, allocations: 113.5 kB / 464.4 MB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000809/0.6234, allocations: 309.5 kB / 464.7 MB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.6235, allocations: 59.3 kB / 464.7 MB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001989/0.6237, allocations: 57.48 kB / 464.8 MB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.6238, allocations: 4 kB / 464.8 MB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.6238, allocations: 4 kB / 464.8 MB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.6238, allocations: 0 / 464.8 MB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.6248, allocations: 489.6 kB / 465.3 MB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.6249, allocations: 4 kB / 465.3 MB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000979/0.6258, allocations: 83.89 kB / 465.4 MB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.6259, allocations: 7.938 kB / 465.4 MB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-05/0.6259, allocations: 11.98 kB / 465.4 MB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.626, allocations: 3.953 kB / 465.4 MB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.626, allocations: 0 / 465.4 MB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.6272, allocations: 0.646 MB / 466 MB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002697/0.6275, allocations: 164.5 kB / 466.2 MB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.6276, allocations: 3.953 kB / 466.2 MB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006346/0.6283, allocations: 27.98 kB / 466.2 MB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.6284, allocations: 35.89 kB / 466.3 MB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.6285, allocations: 15.98 kB / 466.3 MB, free: 1.652 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004556/0.6289, allocations: 279 kB / 466.6 MB, free: 1.383 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6289, allocations: 0 / 466.6 MB, free: 1.383 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001074/0.63, allocations: 195.2 kB / 466.7 MB, free: 1.191 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * 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.001696/0.6317, allocations: 1.271 MB / 468 MB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.6332, allocations: 0.5269 MB / 468.5 MB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.6332, allocations: 4.312 kB / 468.6 MB, free: 15.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.6336, allocations: 152.5 kB / 468.7 MB, free: 15.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.635, allocations: 133.4 kB / 468.8 MB, free: 15.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.6382, allocations: 1.099 MB / 469.9 MB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006036/0.6389, allocations: 0.8995 MB / 470.8 MB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008369/0.6397, allocations: 98.2 kB / 470.9 MB, free: 12.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004573/0.6402, allocations: 207.4 kB / 471.1 MB, free: 12.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6402, allocations: 0 / 471.1 MB, free: 12.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08419/0.7244, allocations: 10.51 MB / 481.6 MB, free: 2.23 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002843/0.7247, allocations: 125.5 kB / 481.8 MB, free: 2.035 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.808/3.533, allocations: 0 / 481.8 MB, free: 2.035 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat