Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.874/1.874, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.983e-05, allocations: 0 / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09775, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3966/0.4944, allocations: 82.35 MB / 404.2 MB, free: 7.578 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.4948, allocations: 66.66 kB / 404.3 MB, free: 7.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06651/0.5613, allocations: 14.14 MB / 418.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5614, allocations: 0 / 418.4 MB, free: 9.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.243e-05/0.5615, allocations: 15.94 kB / 418.4 MB, free: 9.336 MB / 346.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.002399/0.5639, allocations: 0.8295 MB / 419.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5639, allocations: 8.031 kB / 419.3 MB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001819/0.5641, allocations: 90.53 kB / 419.4 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/0.5644, allocations: 79.06 kB / 419.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.5657, allocations: 487.6 kB / 419.9 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.358e-05/0.5658, allocations: 37 kB / 419.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.566, allocations: 48 kB / 420 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.5672, allocations: 461.6 kB / 420.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.5672, allocations: 352 / 420.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.67e-05/0.5673, allocations: 19.95 kB / 420.5 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.5673, allocations: 12 kB / 420.5 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008277/0.5682, allocations: 281.5 kB / 420.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005343/0.5735, allocations: 1.784 MB / 422.5 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.5746, allocations: 361.7 kB / 422.9 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.575, allocations: 133.7 kB / 423 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.917e-05/0.5751, allocations: 4 kB / 423 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.5751, allocations: 34.56 kB / 423 MB, free: 4.477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 3.106e-06/0.5751, allocations: 4 kB / 423.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.001025/0.5762, allocations: 338.2 kB / 423.4 MB, free: 4.133 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/0.5763, allocations: 136.5 kB / 423.5 MB, free: 3.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006932/0.577, allocations: 392.7 kB / 423.9 MB, free: 3.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.577, allocations: 37.7 kB / 423.9 MB, free: 3.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.5773, allocations: 343.1 kB / 424.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.5775, allocations: 149.8 kB / 424.4 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.5776, allocations: 11.94 kB / 424.4 MB, free: 3.035 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5777, allocations: 338.8 kB / 424.8 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003821/0.5781, allocations: 125.1 kB / 424.9 MB, free: 2.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.5787, allocations: 267.9 kB / 425.1 MB, free: 2.258 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.5791, allocations: 163.4 kB / 425.3 MB, free: 2.098 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/0.5791, allocations: 3.953 kB / 425.3 MB, free: 2.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001146/0.5803, allocations: 433 kB / 425.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5803, allocations: 8 kB / 425.7 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.5804, allocations: 4 kB / 425.7 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.71e-05/0.5804, allocations: 4 kB / 425.7 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/0.5814, allocations: 128.2 kB / 425.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/0.5814, allocations: 8 kB / 425.9 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.5821, allocations: 63.56 kB / 425.9 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.5822, allocations: 20 kB / 426 MB, free: 1.434 MB / 346.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.0001785/0.5824, allocations: 137.1 kB / 426.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.5826, allocations: 55.3 kB / 426.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002078/0.5828, allocations: 69.28 kB / 426.2 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5828, allocations: 4 kB / 426.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.5828, allocations: 0 / 426.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5828, allocations: 3.984 kB / 426.2 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.584, allocations: 0.5362 MB / 426.8 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.584, allocations: 0 / 426.8 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.585, allocations: 95.84 kB / 426.9 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.5851, allocations: 7.984 kB / 426.9 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-05/0.5851, allocations: 8 kB / 426.9 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.5851, allocations: 0 / 426.9 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/0.5852, allocations: 7.938 kB / 426.9 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.5867, allocations: 0.6805 MB / 427.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.5871, allocations: 164.5 kB / 427.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.5872, allocations: 16 kB / 427.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006994/0.5879, allocations: 39.97 kB / 427.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.5881, allocations: 27.95 kB / 427.8 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.5881, allocations: 8 kB / 427.8 MB, free: 15.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005761/0.5887, allocations: 309.6 kB / 428.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5887, allocations: 4 kB / 428.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007573/0.5895, allocations: 127.7 kB / 428.2 MB, free: 15.05 MB / 362.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.001827/0.5913, allocations: 1.313 MB / 429.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009764/0.5923, allocations: 323.5 kB / 429.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.5924, allocations: 4 kB / 429.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.5928, allocations: 156.4 kB / 430 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.5941, allocations: 153.2 kB / 430.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.5974, allocations: 1.136 MB / 431.3 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.5981, allocations: 0.9025 MB / 432.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005395/0.5986, allocations: 207.4 kB / 432.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of SimCode: time 3.487e-06/0.5986, allocations: 0 / 432.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.487/3.085, allocations: 9.101 MB / 441.5 MB, free: 1.672 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat