Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.167e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4748/0.5839, allocations: 82.42 MB / 425.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.5842, allocations: 61.84 kB / 425.1 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06336/0.6476, allocations: 16.71 MB / 441.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6476, allocations: 0 / 441.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.6477, allocations: 4 kB / 441.8 MB, free: 13.38 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.0006807/0.6484, allocations: 0.6226 MB / 442.5 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.6484, allocations: 8.031 kB / 442.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.782e-05/0.6485, allocations: 42.3 kB / 442.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.6486, allocations: 35.62 kB / 442.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.649, allocations: 256.5 kB / 442.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.649, allocations: 4 kB / 442.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.038e-05/0.6491, allocations: 11.06 kB / 442.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.6494, allocations: 134.7 kB / 442.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.6494, allocations: 0 / 442.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.6495, allocations: 4 kB / 442.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.6495, allocations: 0 / 442.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.6497, allocations: 58.23 kB / 443 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008567/0.6506, allocations: 461.5 kB / 443.5 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.6508, allocations: 97.44 kB / 443.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.651, allocations: 80.53 kB / 443.6 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.6511, allocations: 0 / 443.6 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003777/0.6514, allocations: 203.7 kB / 443.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.224e-06/0.6515, allocations: 0 / 443.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008786/0.6524, allocations: 403.8 kB / 444.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.6525, allocations: 169.2 kB / 444.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008579/0.6533, allocations: 465.9 kB / 444.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.6534, allocations: 29.7 kB / 444.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.6535, allocations: 91.39 kB / 445 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.38e-05/0.6535, allocations: 27.14 kB / 445 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.6536, allocations: 8 kB / 445 MB, free: 10.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6537, allocations: 325 kB / 445.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.6539, allocations: 53.17 kB / 445.4 MB, free: 9.926 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.6541, allocations: 58.11 kB / 445.4 MB, free: 9.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.6543, allocations: 171.8 kB / 445.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6544, allocations: 0 / 445.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007412/0.6551, allocations: 376.6 kB / 446 MB, free: 9.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.6552, allocations: 125.6 kB / 446.1 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.6552, allocations: 0 / 446.1 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.6553, allocations: 8 kB / 446.1 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.18e-05/0.6553, allocations: 0 / 446.1 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.6553, allocations: 0 / 446.1 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.6556, allocations: 8 kB / 446.1 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.6557, allocations: 59.92 kB / 446.2 MB, free: 9.152 MB / 362.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,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.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.0002109/0.6559, allocations: 241.2 kB / 446.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.486e-05/0.656, allocations: 47.47 kB / 446.4 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.6562, allocations: 73.91 kB / 446.5 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.6562, allocations: 4.109 kB / 446.5 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6562, allocations: 3.938 kB / 446.5 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.6562, allocations: 3.984 kB / 446.5 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.6575, allocations: 0.7973 MB / 447.3 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6576, allocations: 0 / 447.3 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.845e-06/0.6576, allocations: 0 / 447.3 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.6576, allocations: 4 kB / 447.3 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.351e-05/0.6576, allocations: 11.98 kB / 447.3 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.6577, allocations: 0 / 447.3 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6577, allocations: 4 kB / 447.3 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009487/0.6586, allocations: 0.5142 MB / 447.9 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005047/0.6591, allocations: 256.2 kB / 448.1 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/0.6592, allocations: 11.75 kB / 448.1 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.6595, allocations: 8 kB / 448.1 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.6597, allocations: 27.28 kB / 448.1 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.954e-05/0.6598, allocations: 63.48 kB / 448.2 MB, free: 7.172 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007153/0.6605, allocations: 382.8 kB / 448.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6605, allocations: 0 / 448.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004092/0.6609, allocations: 47.88 kB / 448.6 MB, free: 6.816 MB / 362.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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.001263/0.6622, allocations: 1.062 MB / 449.7 MB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.6629, allocations: 433.4 kB / 450.1 MB, free: 5.387 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6629, allocations: 4 kB / 450.1 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.6633, allocations: 371.1 kB / 450.5 MB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.6641, allocations: 106.5 kB / 450.6 MB, free: 4.961 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.6658, allocations: 0.5962 MB / 451.2 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005532/0.6664, allocations: 0.8165 MB / 452 MB, free: 3.551 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.917e-05/0.6664, allocations: 4.672 kB / 452 MB, free: 3.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.6665, allocations: 28.56 kB / 452 MB, free: 3.527 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6665, allocations: 0 / 452 MB, free: 3.527 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.6958, allocations: 5.319 MB / 457.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003085/0.6962, allocations: 154.8 kB / 457.5 MB, free: 14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.331/3.027, allocations: 0 / 457.5 MB, free: 14 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat