Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.614/1.614, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.93e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2493, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3732, allocations: 71.71 MB / 335.5 MB, free: 2.043 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.3735, allocations: 63.97 kB / 335.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05742/0.4309, allocations: 16.47 MB / 352.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.431, allocations: 0 / 352.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.431, allocations: 8 kB / 352.1 MB, free: 1.52 MB / 298.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.0007053/0.4317, allocations: 0.6136 MB / 352.7 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.363e-05/0.4318, allocations: 8.031 kB / 352.7 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.095e-05/0.4319, allocations: 42.55 kB / 352.7 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.013e-05/0.432, allocations: 39.53 kB / 352.8 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.4324, allocations: 249.5 kB / 353 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.4324, allocations: 4 kB / 353 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.4325, allocations: 11.94 kB / 353 MB, free: 448 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.4328, allocations: 133.5 kB / 353.2 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4329, allocations: 4 kB / 353.2 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.4329, allocations: 4 kB / 353.2 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.4329, allocations: 0 / 353.2 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.4331, allocations: 55.98 kB / 353.2 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009266/0.4341, allocations: 464.6 kB / 353.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.4343, allocations: 98.56 kB / 353.8 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.4345, allocations: 84.91 kB / 353.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.4346, allocations: 0 / 353.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003795/0.435, allocations: 206.6 kB / 354.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 5.05e-06/0.435, allocations: 112 / 354.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009412/0.4359, allocations: 399.9 kB / 354.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.4361, allocations: 170.8 kB / 354.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009256/0.437, allocations: 466.5 kB / 355.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.4371, allocations: 29.7 kB / 355.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.814e-05/0.4372, allocations: 159.6 kB / 355.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.4372, allocations: 31.64 kB / 355.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.4373, allocations: 4 kB / 355.3 MB, free: 14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4374, allocations: 318.8 kB / 355.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.4376, allocations: 63.92 kB / 355.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.4378, allocations: 62.36 kB / 355.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.438, allocations: 166.8 kB / 355.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4381, allocations: 0 / 355.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007637/0.4388, allocations: 360.3 kB / 356.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.439, allocations: 126.8 kB / 356.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.439, allocations: 0 / 356.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.439, allocations: 0 / 356.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-05/0.439, allocations: 4 kB / 356.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.4391, allocations: 0 / 356.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.4393, allocations: 11.98 kB / 356.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4394, allocations: 55.94 kB / 356.4 MB, free: 12.77 MB / 314.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.0002273/0.4396, allocations: 249.9 kB / 356.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-05/0.4398, allocations: 39.61 kB / 356.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.44, allocations: 63.44 kB / 356.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.44, allocations: 4 kB / 356.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.44, allocations: 0 / 356.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.44, allocations: 0 / 356.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.4414, allocations: 0.7938 MB / 357.6 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4414, allocations: 0 / 357.6 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.007e-06/0.4414, allocations: 7.984 kB / 357.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4414, allocations: 0 / 357.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.701e-05/0.4415, allocations: 23.92 kB / 357.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.4415, allocations: 3.938 kB / 357.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4415, allocations: 3.938 kB / 357.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.4424, allocations: 0.5214 MB / 358.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004887/0.4429, allocations: 252.3 kB / 358.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.115e-05/0.443, allocations: 12 kB / 358.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.4433, allocations: 19.98 kB / 358.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.4434, allocations: 27.97 kB / 358.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.314e-05/0.4435, allocations: 55.94 kB / 358.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007523/0.4443, allocations: 384.9 kB / 358.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4443, allocations: 0 / 358.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003805/0.4447, allocations: 40 kB / 358.9 MB, free: 10.11 MB / 314.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.001269/0.446, allocations: 1.082 MB / 360 MB, free: 8.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006773/0.4467, allocations: 429.6 kB / 360.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4467, allocations: 0 / 360.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004377/0.4471, allocations: 373.5 kB / 360.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008135/0.448, allocations: 101 kB / 360.9 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.4497, allocations: 0.6552 MB / 361.5 MB, free: 7.305 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.4503, allocations: 0.7987 MB / 362.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.385e-05/0.4504, allocations: 31.42 kB / 362.4 MB, free: 6.445 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4504, allocations: 0 / 362.4 MB, free: 6.445 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/2.997, allocations: 3.147 MB / 365.5 MB, free: 3.242 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat