Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.099e-05, allocations: 4 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5083/0.6192, allocations: 82.97 MB / 425.6 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.6195, allocations: 62.22 kB / 425.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1022/0.7217, allocations: 28.42 MB / 454.1 MB, free: 3.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7218, allocations: 3.938 kB / 454.1 MB, free: 3.301 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.7218, allocations: 4 kB / 454.1 MB, free: 3.297 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007223/0.7225, allocations: 0.6081 MB / 454.7 MB, free: 2.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.7226, allocations: 12.03 kB / 454.7 MB, free: 2.621 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.565e-05/0.7227, allocations: 38.56 kB / 454.8 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.727e-05/0.7228, allocations: 43.56 kB / 454.8 MB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.7232, allocations: 265.4 kB / 455.1 MB, free: 2.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.7233, allocations: 12 kB / 455.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.213e-05/0.7233, allocations: 8 kB / 455.1 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.7237, allocations: 145.6 kB / 455.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.7238, allocations: 0 / 455.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.7238, allocations: 4 kB / 455.2 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.7238, allocations: 0 / 455.2 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.7241, allocations: 71.86 kB / 455.3 MB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.7251, allocations: 484.5 kB / 455.8 MB, free: 1.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.7254, allocations: 106.5 kB / 455.9 MB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.7256, allocations: 84.89 kB / 456 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.7256, allocations: 4 kB / 456 MB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/0.7261, allocations: 226.5 kB / 456.2 MB, free: 1.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.224e-06/0.7261, allocations: 4 kB / 456.2 MB, free: 1.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.00103/0.7271, allocations: 440 kB / 456.6 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.7273, allocations: 166.2 kB / 456.8 MB, free: 360 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000886/0.7282, allocations: 466.4 kB / 457.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/0.7282, allocations: 33.7 kB / 457.3 MB, free: 15.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.7283, allocations: 93.14 kB / 457.4 MB, free: 15.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.7284, allocations: 31.64 kB / 457.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.7284, allocations: 4 kB / 457.4 MB, free: 15.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.7286, allocations: 326.8 kB / 457.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.7288, allocations: 59.98 kB / 457.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.729, allocations: 67.97 kB / 457.8 MB, free: 15.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.7293, allocations: 166.8 kB / 458 MB, free: 15.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.7293, allocations: 4 kB / 458 MB, free: 15.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008894/0.7302, allocations: 412.1 kB / 458.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.7303, allocations: 122.8 kB / 458.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.7303, allocations: 3.953 kB / 458.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.7303, allocations: 0 / 458.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.982e-05/0.7304, allocations: 0 / 458.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.7304, allocations: 7.984 kB / 458.5 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.7306, allocations: 19.94 kB / 458.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/0.7309, allocations: 119.9 kB / 458.7 MB, free: 14.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0002444/0.7311, allocations: 244.1 kB / 458.9 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.327e-05/0.7312, allocations: 39.53 kB / 458.9 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.7314, allocations: 63.44 kB / 459 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.7314, allocations: 3.953 kB / 459 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7314, allocations: 0 / 459 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.7314, allocations: 4 kB / 459 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.7329, allocations: 0.8409 MB / 459.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.7329, allocations: 0 / 459.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-06/0.733, allocations: 0 / 459.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.733, allocations: 7.891 kB / 459.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.733, allocations: 19.98 kB / 459.9 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.7331, allocations: 0 / 459.9 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7331, allocations: 0 / 459.9 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.7341, allocations: 0.5526 MB / 460.4 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.7346, allocations: 248.4 kB / 460.7 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.65e-05/0.7348, allocations: 19.89 kB / 460.7 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.735, allocations: 12.17 kB / 460.7 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.7352, allocations: 39.89 kB / 460.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/0.7354, allocations: 127.8 kB / 460.9 MB, free: 11.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007026/0.7361, allocations: 384.9 kB / 461.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7361, allocations: 0 / 461.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000416/0.7366, allocations: 44 kB / 461.3 MB, free: 11.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001445/0.738, allocations: 1.117 MB / 462.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007444/0.7388, allocations: 441.6 kB / 462.8 MB, free: 9.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7388, allocations: 0 / 462.8 MB, free: 9.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.7393, allocations: 385.5 kB / 463.2 MB, free: 9.484 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007962/0.7401, allocations: 105.2 kB / 463.3 MB, free: 9.383 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.7419, allocations: 0.623 MB / 463.9 MB, free: 8.719 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.7425, allocations: 0.7987 MB / 464.7 MB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.852e-05/0.7426, allocations: 16.62 kB / 464.8 MB, free: 7.875 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.7426, allocations: 23.44 kB / 464.8 MB, free: 7.852 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7427, allocations: 4 kB / 464.8 MB, free: 7.848 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.773, allocations: 7.045 MB / 471.8 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003902/0.7735, allocations: 143.2 kB / 472 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.668/3.442, allocations: 0 / 472 MB, free: 0.6328 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat