Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.983/1.983, allocations: 209.4 MB / 216.5 MB, free: 6.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.389e-05/2.388e-05, allocations: 0 / 267.6 MB, free: 4.969 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 48.7 MB / 316.3 MB, free: 4.176 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4117/0.5155, allocations: 81.91 MB / 398.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.5158, allocations: 62.78 kB / 398.3 MB, free: 10.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06438/0.5802, allocations: 14.05 MB / 412.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5802, allocations: 7.875 kB / 412.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.532e-05/0.5803, allocations: 12 kB / 412.4 MB, free: 14.95 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.002223/0.5825, allocations: 0.8268 MB / 413.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.5826, allocations: 8.031 kB / 413.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.5829, allocations: 83.06 kB / 413.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.5841, allocations: 489 kB / 413.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.5842, allocations: 16 kB / 413.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.5843, allocations: 35.98 kB / 413.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007845/0.5851, allocations: 261 kB / 414.1 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009823/0.5861, allocations: 395.2 kB / 414.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.5861, allocations: 0 / 414.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.339e-05/0.5862, allocations: 3.953 kB / 414.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.5862, allocations: 19.94 kB / 414.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004796/0.591, allocations: 1.681 MB / 416.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008577/0.5919, allocations: 342.2 kB / 416.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.5922, allocations: 128.6 kB / 416.6 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.932e-05/0.5923, allocations: 8 kB / 416.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.5924, allocations: 42.41 kB / 416.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 3.597e-06/0.5924, allocations: 0 / 416.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009207/0.5933, allocations: 307.4 kB / 417 MB, free: 11.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.5934, allocations: 136.5 kB / 417.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.594, allocations: 366.1 kB / 417.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.223e-05/0.5941, allocations: 25.7 kB / 417.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.5944, allocations: 321 kB / 417.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.5945, allocations: 142.4 kB / 417.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.5946, allocations: 0 / 417.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.5948, allocations: 366.5 kB / 418.3 MB, free: 9.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.5951, allocations: 116.6 kB / 418.4 MB, free: 9.785 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/0.5956, allocations: 253.9 kB / 418.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.596, allocations: 157.2 kB / 418.8 MB, free: 9.449 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.596, allocations: 0 / 418.8 MB, free: 9.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001132/0.5972, allocations: 437.9 kB / 419.2 MB, free: 9.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.5972, allocations: 8 kB / 419.2 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.5972, allocations: 4 kB / 419.2 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.5973, allocations: 4 kB / 419.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009497/0.5982, allocations: 128.2 kB / 419.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.5983, allocations: 8 kB / 419.4 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/0.5989, allocations: 55.56 kB / 419.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.254e-05/0.599, allocations: 20 kB / 419.5 MB, free: 8.84 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.0001615/0.5991, allocations: 112.8 kB / 419.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000836/0.6, allocations: 333.8 kB / 419.9 MB, free: 8.391 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.6002, allocations: 59.28 kB / 419.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/0.6004, allocations: 57.52 kB / 420 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.6004, allocations: 4 kB / 420 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6004, allocations: 0 / 420 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.6004, allocations: 4 kB / 420 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.6015, allocations: 481.7 kB / 420.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6015, allocations: 3.953 kB / 420.5 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009777/0.6025, allocations: 91.88 kB / 420.6 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.6025, allocations: 4 kB / 420.6 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.6026, allocations: 4 kB / 420.6 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.792e-06/0.6026, allocations: 4 kB / 420.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.6026, allocations: 0 / 420.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.6039, allocations: 0.6646 MB / 421.3 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.6042, allocations: 168.5 kB / 421.4 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.6043, allocations: 0 / 421.4 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006557/0.605, allocations: 31.97 kB / 421.4 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.6051, allocations: 31.94 kB / 421.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.6052, allocations: 12 kB / 421.5 MB, free: 6.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004754/0.6057, allocations: 287 kB / 421.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6057, allocations: 0 / 421.8 MB, free: 6.422 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007553/0.6065, allocations: 103.7 kB / 421.9 MB, free: 6.32 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.001664/0.6081, allocations: 1.275 MB / 423.1 MB, free: 5.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009463/0.6091, allocations: 307.7 kB / 423.4 MB, free: 4.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6091, allocations: 7.938 kB / 423.5 MB, free: 4.707 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.6095, allocations: 143.9 kB / 423.6 MB, free: 4.566 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.6108, allocations: 140.1 kB / 423.7 MB, free: 4.438 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.6139, allocations: 1.075 MB / 424.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.6145, allocations: 0.8944 MB / 425.7 MB, free: 2.391 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000436/0.6149, allocations: 60.25 kB / 425.8 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.6154, allocations: 207.4 kB / 426 MB, free: 2.129 MB / 346.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6154, allocations: 3.938 kB / 426 MB, free: 2.125 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1203/0.7357, allocations: 9.641 MB / 435.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002919/0.7361, allocations: 129.4 kB / 435.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.765/3.502, allocations: 0 / 435.7 MB, free: 8.305 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat