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.377/2.377, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.215e-05/4.235e-05, allocations: 8 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4006, allocations: 54.85 MB / 359.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.565, allocations: 88.41 MB / 448.3 MB, free: 8.383 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.5653, allocations: 68.56 kB / 448.4 MB, free: 8.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06169/0.627, allocations: 13.24 MB / 461.6 MB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6271, allocations: 0 / 461.6 MB, free: 11.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.912e-05/0.6272, allocations: 20 kB / 461.6 MB, free: 11.07 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.002224/0.6294, allocations: 0.8098 MB / 462.4 MB, free: 10.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.6295, allocations: 12.03 kB / 462.4 MB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.6296, allocations: 86.52 kB / 462.5 MB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.6299, allocations: 79.06 kB / 462.6 MB, free: 10.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.6311, allocations: 468.1 kB / 463.1 MB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/0.6312, allocations: 40.95 kB / 463.1 MB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.6313, allocations: 48 kB / 463.1 MB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.6325, allocations: 444.6 kB / 463.6 MB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.6326, allocations: 0 / 463.6 MB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.437e-05/0.6327, allocations: 20 kB / 463.6 MB, free: 8.965 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.6327, allocations: 12 kB / 463.6 MB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008357/0.6336, allocations: 285.3 kB / 463.9 MB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005414/0.639, allocations: 1.774 MB / 465.7 MB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.6401, allocations: 362.5 kB / 466 MB, free: 6.445 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.6405, allocations: 133.9 kB / 466.1 MB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.6405, allocations: 7.984 kB / 466.2 MB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.6406, allocations: 42.56 kB / 466.2 MB, free: 6.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.126e-06/0.6406, allocations: 0 / 466.2 MB, free: 6.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.00105/0.6416, allocations: 334 kB / 466.5 MB, free: 5.914 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.6417, allocations: 122.7 kB / 466.6 MB, free: 5.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007425/0.6425, allocations: 392 kB / 467 MB, free: 5.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.6426, allocations: 34.27 kB / 467.1 MB, free: 5.344 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.6429, allocations: 315.9 kB / 467.4 MB, free: 5.031 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.6431, allocations: 149.8 kB / 467.5 MB, free: 4.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.6432, allocations: 12 kB / 467.5 MB, free: 4.871 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.6434, allocations: 366.8 kB / 467.9 MB, free: 4.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.6438, allocations: 125.1 kB / 468 MB, free: 4.383 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.6443, allocations: 256.6 kB / 468.3 MB, free: 4.082 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.6448, allocations: 159.8 kB / 468.4 MB, free: 3.926 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.6449, allocations: 4 kB / 468.4 MB, free: 3.922 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001263/0.6461, allocations: 476.1 kB / 468.9 MB, free: 3.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005672/0.6467, allocations: 1.404 MB / 470.3 MB, free: 1.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.6467, allocations: 4 kB / 470.3 MB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.6468, allocations: 8 kB / 470.3 MB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.6478, allocations: 127.8 kB / 470.4 MB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.6478, allocations: 12.14 kB / 470.4 MB, free: 1.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.6485, allocations: 63.56 kB / 470.5 MB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.6486, allocations: 20 kB / 470.5 MB, free: 1.707 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.6486, allocations: 5.5 kB / 470.5 MB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001058/0.6497, allocations: 395.3 kB / 470.9 MB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.6497, allocations: 7.953 kB / 470.9 MB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.6498, allocations: 8.438 kB / 470.9 MB, free: 1.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.6508, allocations: 119.8 kB / 471 MB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.6508, allocations: 4 kB / 471 MB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.6515, allocations: 59.59 kB / 471.1 MB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.144e-05/0.6516, allocations: 16 kB / 471.1 MB, free: 1.105 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.0001919/0.6518, allocations: 132.9 kB / 471.2 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.6519, allocations: 55.34 kB / 471.3 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.6521, allocations: 65.16 kB / 471.4 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.6522, allocations: 4 kB / 471.4 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.6522, allocations: 4 kB / 471.4 MB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-06/0.6522, allocations: 3.938 kB / 471.4 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.6534, allocations: 0.536 MB / 471.9 MB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.6534, allocations: 7.984 kB / 471.9 MB, free: 248 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6544, allocations: 96.77 kB / 472 MB, free: 152 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.6545, allocations: 0 / 472 MB, free: 152 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.344e-05/0.6545, allocations: 8 kB / 472 MB, free: 144 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.287e-05/0.6546, allocations: 7.953 kB / 472 MB, free: 136 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6546, allocations: 0 / 472 MB, free: 136 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.6561, allocations: 0.6736 MB / 472.7 MB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.6564, allocations: 164.5 kB / 472.9 MB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.6565, allocations: 15.95 kB / 472.9 MB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006778/0.6572, allocations: 31.97 kB / 472.9 MB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.6574, allocations: 31.95 kB / 472.9 MB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.6574, allocations: 8.844 kB / 472.9 MB, free: 15.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005637/0.658, allocations: 313.6 kB / 473.3 MB, free: 14.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.658, allocations: 0 / 473.3 MB, free: 14.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00111/0.6591, allocations: 219.2 kB / 473.5 MB, free: 14.65 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.001887/0.661, allocations: 1.305 MB / 474.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.6626, allocations: 0.5452 MB / 475.3 MB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.6627, allocations: 1.75 kB / 475.3 MB, free: 12.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.6631, allocations: 155.8 kB / 475.5 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.6645, allocations: 148.9 kB / 475.6 MB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.6676, allocations: 1.118 MB / 476.7 MB, free: 11.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.6683, allocations: 0.8998 MB / 477.6 MB, free: 10.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007393/0.669, allocations: 98.16 kB / 477.7 MB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004356/0.6695, allocations: 207.4 kB / 477.9 MB, free: 10.08 MB / 410.7 MB Notification: Performance of SimCode: time 4.518e-06/0.6695, allocations: 0 / 477.9 MB, free: 10.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.713, allocations: 11.25 MB / 489.2 MB, free: 14.91 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/0.7133, allocations: 141 kB / 489.3 MB, free: 14.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.852/3.565, allocations: 4 kB / 489.3 MB, free: 14.68 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