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.921/1.921, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.616e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 48.71 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5013/0.6077, allocations: 81.91 MB / 398.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.6081, allocations: 67.47 kB / 398.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06504/0.6731, allocations: 14.05 MB / 412.3 MB, free: 15.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6732, allocations: 0 / 412.3 MB, free: 15.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.6732, allocations: 19.84 kB / 412.3 MB, free: 15.14 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.002304/0.6756, allocations: 0.8206 MB / 413.2 MB, free: 14.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.6756, allocations: 12.03 kB / 413.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.6759, allocations: 79.06 kB / 413.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.6773, allocations: 486.1 kB / 413.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/0.6774, allocations: 16 kB / 413.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.6775, allocations: 38.86 kB / 413.8 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007886/0.6783, allocations: 268.7 kB / 414 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009699/0.6793, allocations: 389.2 kB / 414.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.188e-05/0.6794, allocations: 4 kB / 414.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.6794, allocations: 3.953 kB / 414.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.6795, allocations: 12 kB / 414.4 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.6847, allocations: 1.69 MB / 416.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008968/0.6857, allocations: 349.5 kB / 416.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.686, allocations: 127.2 kB / 416.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.943e-05/0.6861, allocations: 4 kB / 416.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.6861, allocations: 33.88 kB / 416.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.905e-06/0.6861, allocations: 4 kB / 416.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009409/0.6871, allocations: 312.2 kB / 416.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.6872, allocations: 132.5 kB / 417.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006541/0.6879, allocations: 367.1 kB / 417.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.838e-05/0.6879, allocations: 29.7 kB / 417.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.6882, allocations: 336.9 kB / 417.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.6884, allocations: 147.6 kB / 417.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.6884, allocations: 4 kB / 417.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.6886, allocations: 329.5 kB / 418.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.689, allocations: 121.7 kB / 418.4 MB, free: 9.945 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/0.6895, allocations: 250.3 kB / 418.6 MB, free: 9.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000406/0.6899, allocations: 159.4 kB / 418.8 MB, free: 9.613 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.6899, allocations: 0 / 418.8 MB, free: 9.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00105/0.691, allocations: 401.4 kB / 419.2 MB, free: 9.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.691, allocations: 12.03 kB / 419.2 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.691, allocations: 4 kB / 419.2 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.941e-05/0.6911, allocations: 8 kB / 419.2 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009544/0.692, allocations: 123.5 kB / 419.3 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.6921, allocations: 4 kB / 419.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/0.6928, allocations: 55.58 kB / 419.4 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/0.6928, allocations: 23.73 kB / 419.4 MB, free: 9.098 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.0001893/0.693, allocations: 116.8 kB / 419.5 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008028/0.6939, allocations: 318.7 kB / 419.8 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.694, allocations: 55.34 kB / 419.9 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002116/0.6942, allocations: 55.39 kB / 419.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.6943, allocations: 4 kB / 419.9 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.6943, allocations: 8 kB / 419.9 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.6943, allocations: 0 / 419.9 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.6954, allocations: 477.7 kB / 420.4 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.6954, allocations: 3.953 kB / 420.4 MB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000986/0.6964, allocations: 95.81 kB / 420.5 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/0.6964, allocations: 8 kB / 420.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.6965, allocations: 4 kB / 420.5 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.6965, allocations: 4.078 kB / 420.5 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6965, allocations: 3.984 kB / 420.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.6978, allocations: 0.6685 MB / 421.2 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.6981, allocations: 164.5 kB / 421.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.6982, allocations: 8 kB / 421.4 MB, free: 7.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006555/0.6989, allocations: 31.97 kB / 421.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.699, allocations: 31.94 kB / 421.4 MB, free: 7.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.6991, allocations: 8 kB / 421.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004781/0.6996, allocations: 283 kB / 421.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6996, allocations: 0 / 421.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007404/0.7003, allocations: 103.7 kB / 421.8 MB, free: 6.664 MB / 346.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.00167/0.702, allocations: 1.279 MB / 423.1 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008843/0.7029, allocations: 311.8 kB / 423.4 MB, free: 5.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.703, allocations: 3.938 kB / 423.4 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.7033, allocations: 151.8 kB / 423.5 MB, free: 4.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.7046, allocations: 129.6 kB / 423.7 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.7077, allocations: 1.107 MB / 424.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.7083, allocations: 0.8944 MB / 425.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.7089, allocations: 215.4 kB / 425.9 MB, free: 2.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7089, allocations: 0 / 425.9 MB, free: 2.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.483/3.192, allocations: 9.067 MB / 435 MB, free: 9.418 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