Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.55/2.55, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 6.512e-05/6.527e-05, allocations: 11.92 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4931/0.4932, allocations: 58.82 MB / 382.3 MB, free: 10.24 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1778/0.6711, allocations: 94.34 MB / 476.6 MB, free: 14.08 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.6714, allocations: 71.97 kB / 476.7 MB, free: 14.01 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.07259/0.744, allocations: 14.35 MB / 491 MB, free: 15.62 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7441, allocations: 0 / 491 MB, free: 15.62 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.0001153/0.7442, allocations: 23.94 kB / 491.1 MB, free: 15.6 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.003477/0.7477, allocations: 0.8804 MB / 491.9 MB, free: 14.68 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.469e-05/0.7478, allocations: 11.97 kB / 492 MB, free: 14.66 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002613/0.7481, allocations: 90.52 kB / 492 MB, free: 14.57 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/0.7485, allocations: 94.92 kB / 492.1 MB, free: 14.47 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.7505, allocations: 0.5154 MB / 492.6 MB, free: 13.92 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.7506, allocations: 41.31 kB / 492.7 MB, free: 13.88 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.7509, allocations: 63.91 kB / 492.8 MB, free: 13.82 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.7536, allocations: 0.5593 MB / 493.3 MB, free: 13.2 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.215e-05/0.7537, allocations: 4 kB / 493.3 MB, free: 13.2 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.7538, allocations: 20 kB / 493.3 MB, free: 13.18 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.052e-05/0.7539, allocations: 23.95 kB / 493.4 MB, free: 13.15 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.7553, allocations: 325.1 kB / 493.7 MB, free: 12.83 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009216/0.7646, allocations: 3.029 MB / 496.7 MB, free: 9.66 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.7662, allocations: 356.6 kB / 497.1 MB, free: 9.293 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005822/0.7668, allocations: 137.7 kB / 497.2 MB, free: 9.152 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.211e-05/0.7669, allocations: 12.67 kB / 497.2 MB, free: 9.141 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.911e-05/0.767, allocations: 46.55 kB / 497.2 MB, free: 9.086 MB / 426.8 MB Notification: Performance of pre-optimization done (n=39): time 4.879e-06/0.767, allocations: 0 / 497.2 MB, free: 9.086 MB / 426.8 MB Notification: Performance of matching and sorting (n=39): time 0.001713/0.7688, allocations: 353.5 kB / 497.6 MB, free: 8.73 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.7689, allocations: 106.8 kB / 497.7 MB, free: 8.602 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.7702, allocations: 475.5 kB / 498.2 MB, free: 8.129 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.7704, allocations: 37.7 kB / 498.2 MB, free: 8.086 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/0.7709, allocations: 376 kB / 498.6 MB, free: 7.711 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.7712, allocations: 153.8 kB / 498.7 MB, free: 7.559 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.149e-05/0.7713, allocations: 20 kB / 498.7 MB, free: 7.539 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002889/0.7716, allocations: 374.7 kB / 499.1 MB, free: 7.164 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006584/0.7723, allocations: 145.5 kB / 499.2 MB, free: 7.023 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009431/0.7733, allocations: 356.6 kB / 499.6 MB, free: 6.578 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000805/0.7741, allocations: 199.7 kB / 499.8 MB, free: 6.383 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.7741, allocations: 0 / 499.8 MB, free: 6.383 MB / 426.8 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002312/0.7764, allocations: 0.5582 MB / 0.4886 GB, free: 5.816 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.001655/0.7781, allocations: 2.624 MB / 0.4912 GB, free: 2.988 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.7782, allocations: 7.938 kB / 0.4912 GB, free: 2.98 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.369e-05/0.7783, allocations: 16 kB / 0.4912 GB, free: 2.965 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.7801, allocations: 139.8 kB / 0.4913 GB, free: 2.828 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.139e-05/0.7801, allocations: 15.92 kB / 0.4913 GB, free: 2.812 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.7815, allocations: 79.36 kB / 0.4914 GB, free: 2.734 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.7816, allocations: 32 kB / 0.4915 GB, free: 2.703 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.7816, allocations: 6.5 kB / 0.4915 GB, free: 2.699 MB / 426.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002041/0.7837, allocations: 479.4 kB / 0.4919 GB, free: 2.23 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.7838, allocations: 8 kB / 0.4919 GB, free: 2.223 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/0.7838, allocations: 12 kB / 0.4919 GB, free: 2.211 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.7853, allocations: 132.4 kB / 0.4921 GB, free: 2.082 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.971e-05/0.7854, allocations: 27.88 kB / 0.4921 GB, free: 2.055 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.7866, allocations: 55.67 kB / 0.4921 GB, free: 2 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.499e-05/0.7867, allocations: 28 kB / 0.4922 GB, free: 1.973 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.000325/0.787, allocations: 140.7 kB / 0.4923 GB, free: 1.828 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.7873, allocations: 71.16 kB / 0.4924 GB, free: 1.758 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002947/0.7876, allocations: 66.3 kB / 0.4924 GB, free: 1.688 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.7877, allocations: 8 kB / 0.4924 GB, free: 1.68 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.7877, allocations: 7.953 kB / 0.4925 GB, free: 1.672 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.7877, allocations: 3.984 kB / 0.4925 GB, free: 1.668 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.7896, allocations: 0.5751 MB / 0.493 GB, free: 1.043 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.7896, allocations: 0 / 0.493 GB, free: 1.043 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.7911, allocations: 91.89 kB / 0.4931 GB, free: 0.9531 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.176e-05/0.7912, allocations: 0 / 0.4931 GB, free: 0.9531 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-05/0.7913, allocations: 12 kB / 0.4931 GB, free: 0.9414 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-05/0.7913, allocations: 8 kB / 0.4931 GB, free: 0.9336 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.7913, allocations: 3.984 kB / 0.4931 GB, free: 0.9297 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.7935, allocations: 0.7006 MB / 0.4938 GB, free: 208 kB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004549/0.794, allocations: 176.3 kB / 0.494 GB, free: 12 kB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.7942, allocations: 8 kB / 0.494 GB, free: 4 kB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7953, allocations: 36.03 kB / 0.494 GB, free: 15.96 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.7955, allocations: 39.83 kB / 0.4941 GB, free: 15.93 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.125e-05/0.7956, allocations: 8 kB / 0.4941 GB, free: 15.92 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00101/0.7966, allocations: 371.2 kB / 0.4944 GB, free: 15.56 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.02e-07/0.7966, allocations: 3.938 kB / 0.4944 GB, free: 15.55 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.002002/0.7986, allocations: 247.2 kB / 0.4947 GB, free: 15.31 MB / 442.8 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 (39): * Single equations (assignments): 39 * 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.002722/0.8014, allocations: 1.33 MB / 0.496 GB, free: 13.95 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.8041, allocations: 0.6362 MB / 0.4966 GB, free: 13.31 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.8041, allocations: 0 / 0.4966 GB, free: 13.31 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0006511/0.8048, allocations: 155.9 kB / 0.4967 GB, free: 13.16 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.8069, allocations: 160.3 kB / 0.4969 GB, free: 13.01 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/0.812, allocations: 1.2 MB / 0.4981 GB, free: 11.77 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000913/0.8129, allocations: 0.9322 MB / 0.499 GB, free: 10.81 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.001285/0.8143, allocations: 115.2 kB / 0.4991 GB, free: 10.7 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006971/0.815, allocations: 239.3 kB / 0.4993 GB, free: 10.46 MB / 442.8 MB Notification: Performance of SimCode: time 1.984e-06/0.815, allocations: 4 kB / 0.4993 GB, free: 10.46 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0661/0.8811, allocations: 12.74 MB / 0.5117 GB, free: 13.79 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003479/0.8815, allocations: 141 kB / 0.5119 GB, free: 13.57 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.222/4.103, allocations: 0 / 0.5119 GB, free: 13.57 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat