Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.496/2.496, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.557e-05, allocations: 0 / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4154/0.4155, allocations: 54.85 MB / 359.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.5799, allocations: 88.41 MB / 448.3 MB, free: 8.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.5802, allocations: 67.97 kB / 448.3 MB, free: 8.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06196/0.6422, allocations: 13.23 MB / 461.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6423, allocations: 4 kB / 461.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.691e-05/0.6423, allocations: 19.94 kB / 461.6 MB, free: 11.25 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.002259/0.6446, allocations: 0.8138 MB / 462.4 MB, free: 10.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.6447, allocations: 8.031 kB / 462.4 MB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.6449, allocations: 86.52 kB / 462.5 MB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002743/0.6452, allocations: 79.05 kB / 462.6 MB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.6464, allocations: 468 kB / 463 MB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.265e-05/0.6465, allocations: 44.95 kB / 463.1 MB, free: 9.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.6467, allocations: 56 kB / 463.1 MB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.6479, allocations: 436.6 kB / 463.5 MB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.6479, allocations: 0 / 463.5 MB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.648, allocations: 16 kB / 463.6 MB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.648, allocations: 12 kB / 463.6 MB, free: 9.129 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008361/0.6489, allocations: 293.2 kB / 463.9 MB, free: 8.844 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005515/0.6544, allocations: 1.779 MB / 465.6 MB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.6555, allocations: 351.4 kB / 466 MB, free: 6.621 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.6559, allocations: 129.7 kB / 466.1 MB, free: 6.488 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.6559, allocations: 10.72 kB / 466.1 MB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.656, allocations: 42.59 kB / 466.2 MB, free: 6.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.446e-06/0.656, allocations: 3.938 kB / 466.2 MB, free: 6.426 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.001025/0.657, allocations: 334.2 kB / 466.5 MB, free: 6.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.6571, allocations: 118.7 kB / 466.6 MB, free: 5.949 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007356/0.6579, allocations: 396 kB / 467 MB, free: 5.559 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.866e-05/0.658, allocations: 37.7 kB / 467 MB, free: 5.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.6583, allocations: 338.4 kB / 467.4 MB, free: 5.184 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.6585, allocations: 145.8 kB / 467.5 MB, free: 5.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.6586, allocations: 16 kB / 467.5 MB, free: 5.023 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.6587, allocations: 330.8 kB / 467.8 MB, free: 4.691 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.6591, allocations: 133.1 kB / 468 MB, free: 4.562 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00051/0.6596, allocations: 259 kB / 468.2 MB, free: 4.258 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.6601, allocations: 163.8 kB / 468.4 MB, free: 4.098 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.6601, allocations: 0 / 468.4 MB, free: 4.098 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001222/0.6614, allocations: 440.6 kB / 468.8 MB, free: 3.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006455/0.662, allocations: 1.395 MB / 470.2 MB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.6621, allocations: 0 / 470.2 MB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/0.6621, allocations: 8 kB / 470.2 MB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.6631, allocations: 127.8 kB / 470.3 MB, free: 2.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.47e-05/0.6632, allocations: 15.94 kB / 470.4 MB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007275/0.6639, allocations: 63.56 kB / 470.4 MB, free: 1.945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.664, allocations: 16 kB / 470.4 MB, free: 1.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.664, allocations: 8 kB / 470.4 MB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/0.6651, allocations: 391.3 kB / 470.8 MB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.6651, allocations: 7.953 kB / 470.8 MB, free: 1.531 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.6652, allocations: 8 kB / 470.8 MB, free: 1.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008962/0.6661, allocations: 120.3 kB / 471 MB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.6661, allocations: 11.92 kB / 471 MB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004367/0.6666, allocations: 48.56 kB / 471 MB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.6667, allocations: 23.98 kB / 471 MB, free: 1.324 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.0002188/0.6669, allocations: 132.9 kB / 471.2 MB, free: 1.188 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.6671, allocations: 55.34 kB / 471.2 MB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002044/0.6673, allocations: 65.16 kB / 471.3 MB, free: 1.066 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.6673, allocations: 4 kB / 471.3 MB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.6674, allocations: 0 / 471.3 MB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.6674, allocations: 0 / 471.3 MB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.6686, allocations: 0.5477 MB / 471.8 MB, free: 476 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.6686, allocations: 0 / 471.8 MB, free: 476 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.6697, allocations: 88.62 kB / 471.9 MB, free: 388 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.6698, allocations: 11.94 kB / 471.9 MB, free: 376 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.538e-05/0.6698, allocations: 12 kB / 472 MB, free: 364 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.6698, allocations: 3.953 kB / 472 MB, free: 360 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.6699, allocations: 0 / 472 MB, free: 360 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.6714, allocations: 0.6806 MB / 472.6 MB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.6717, allocations: 160.5 kB / 472.8 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.6718, allocations: 15.95 kB / 472.8 MB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000681/0.6725, allocations: 33 kB / 472.8 MB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.6726, allocations: 27.95 kB / 472.9 MB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.6727, allocations: 12 kB / 472.9 MB, free: 15.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005763/0.6733, allocations: 305.6 kB / 473.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6733, allocations: 4 kB / 473.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6744, allocations: 223.2 kB / 473.4 MB, free: 14.87 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.001786/0.6762, allocations: 1.302 MB / 474.7 MB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.6778, allocations: 0.5227 MB / 475.2 MB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.6778, allocations: 4 kB / 475.2 MB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004179/0.6783, allocations: 157.6 kB / 475.4 MB, free: 12.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.6796, allocations: 148.4 kB / 475.5 MB, free: 12.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.6829, allocations: 1.139 MB / 476.7 MB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.6835, allocations: 0.8949 MB / 477.6 MB, free: 10.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/0.684, allocations: 215.3 kB / 477.8 MB, free: 10.39 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.684, allocations: 4 kB / 477.8 MB, free: 10.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.578/3.263, allocations: 9.029 MB / 486.8 MB, free: 1.363 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat