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.314/2.314, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.317e-05, allocations: 0 / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3894, allocations: 54.85 MB / 359.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1594/0.5488, allocations: 88.4 MB / 448.3 MB, free: 8.496 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.5491, allocations: 67.95 kB / 448.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06043/0.6096, allocations: 13.24 MB / 461.6 MB, free: 11.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6097, allocations: 4 kB / 461.6 MB, free: 11.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.173e-05/0.6097, allocations: 19.94 kB / 461.6 MB, free: 11.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.002164/0.6119, allocations: 0.8099 MB / 462.4 MB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.612, allocations: 8.031 kB / 462.4 MB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.6121, allocations: 86.52 kB / 462.5 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.6124, allocations: 83.06 kB / 462.6 MB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.6135, allocations: 460.1 kB / 463 MB, free: 9.641 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.174e-05/0.6136, allocations: 44.95 kB / 463.1 MB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.6137, allocations: 51.94 kB / 463.1 MB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.6149, allocations: 446.6 kB / 463.6 MB, free: 9.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.6149, allocations: 0 / 463.6 MB, free: 9.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.499e-05/0.615, allocations: 20 kB / 463.6 MB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.6151, allocations: 12 kB / 463.6 MB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008505/0.6159, allocations: 290.8 kB / 463.9 MB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005322/0.6213, allocations: 1.787 MB / 465.7 MB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.6223, allocations: 353.6 kB / 466 MB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003554/0.6227, allocations: 137.8 kB / 466.1 MB, free: 6.398 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.06e-05/0.6228, allocations: 12.08 kB / 466.1 MB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.6228, allocations: 34.56 kB / 466.2 MB, free: 6.344 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.166e-06/0.6228, allocations: 0 / 466.2 MB, free: 6.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009918/0.6238, allocations: 342.8 kB / 466.5 MB, free: 6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.6239, allocations: 118.7 kB / 466.6 MB, free: 5.859 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007043/0.6246, allocations: 396 kB / 467 MB, free: 5.469 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.6247, allocations: 33.7 kB / 467 MB, free: 5.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002963/0.625, allocations: 307.9 kB / 467.3 MB, free: 5.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.6252, allocations: 153.8 kB / 467.5 MB, free: 4.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.6253, allocations: 8 kB / 467.5 MB, free: 4.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.6255, allocations: 362.8 kB / 467.9 MB, free: 4.602 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.6259, allocations: 133.9 kB / 468 MB, free: 4.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.6264, allocations: 256.7 kB / 468.2 MB, free: 4.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.6269, allocations: 159.7 kB / 468.4 MB, free: 4.012 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6269, allocations: 4 kB / 468.4 MB, free: 4.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001212/0.6281, allocations: 492.4 kB / 468.9 MB, free: 3.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006076/0.6287, allocations: 1.396 MB / 470.3 MB, free: 2.016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.6288, allocations: 4 kB / 470.3 MB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/0.6288, allocations: 12 kB / 470.3 MB, free: 2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009924/0.6298, allocations: 124.7 kB / 470.4 MB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.6298, allocations: 8 kB / 470.4 MB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/0.6305, allocations: 59.58 kB / 470.5 MB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.6306, allocations: 20 kB / 470.5 MB, free: 1.793 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.6306, allocations: 4 kB / 470.5 MB, free: 1.789 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/0.6317, allocations: 407.2 kB / 470.9 MB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.6317, allocations: 7.953 kB / 470.9 MB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.6317, allocations: 8 kB / 470.9 MB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/0.6326, allocations: 119.8 kB / 471 MB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.6327, allocations: 9.781 kB / 471 MB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.6332, allocations: 59.61 kB / 471.1 MB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.6333, allocations: 20 kB / 471.1 MB, free: 1.172 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.0001776/0.6335, allocations: 132.8 kB / 471.3 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.6337, allocations: 55.34 kB / 471.3 MB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.6338, allocations: 61.17 kB / 471.4 MB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.6339, allocations: 4 kB / 471.4 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6339, allocations: 11.98 kB / 471.4 MB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.6339, allocations: 0 / 471.4 MB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.635, allocations: 0.5399 MB / 471.9 MB, free: 320 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.635, allocations: 0 / 471.9 MB, free: 320 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009767/0.636, allocations: 95.81 kB / 472 MB, free: 224 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.636, allocations: 0 / 472 MB, free: 224 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.85e-05/0.6361, allocations: 8 kB / 472 MB, free: 216 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.6361, allocations: 8.188 kB / 472 MB, free: 208 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.6361, allocations: 9.391 kB / 472 MB, free: 200 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.6375, allocations: 0.6773 MB / 472.7 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002663/0.6378, allocations: 160.5 kB / 472.9 MB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.6379, allocations: 11.95 kB / 472.9 MB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/0.6386, allocations: 39.97 kB / 472.9 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.6388, allocations: 31.89 kB / 473 MB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.6388, allocations: 12 kB / 473 MB, free: 15.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000532/0.6394, allocations: 305.6 kB / 473.3 MB, free: 14.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6394, allocations: 0 / 473.3 MB, free: 14.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009813/0.6404, allocations: 223.2 kB / 473.5 MB, free: 14.71 MB / 410.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.001746/0.6421, allocations: 1.303 MB / 474.8 MB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.6437, allocations: 0.5651 MB / 475.4 MB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6437, allocations: 0 / 475.4 MB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004046/0.6441, allocations: 151.9 kB / 475.5 MB, free: 12.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.6454, allocations: 151.9 kB / 475.6 MB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.6484, allocations: 1.122 MB / 476.8 MB, free: 11.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.649, allocations: 0.892 MB / 477.7 MB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007288/0.6497, allocations: 102.2 kB / 477.8 MB, free: 10.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.6501, allocations: 207.4 kB / 478 MB, free: 10.12 MB / 410.7 MB Notification: Performance of SimCode: time 3.036e-06/0.6501, allocations: 0 / 478 MB, free: 10.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04874/0.6989, allocations: 11.29 MB / 489.3 MB, free: 14.91 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003141/0.6993, allocations: 154.2 kB / 489.4 MB, free: 14.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.701/3.4, allocations: 0 / 489.4 MB, free: 14.67 MB / 426.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