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.726/1.726, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.366e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2571, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3851, allocations: 71.7 MB / 335.6 MB, free: 1.949 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.3854, allocations: 75.95 kB / 335.6 MB, free: 1.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06099/0.4465, allocations: 16.47 MB / 352.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4465, allocations: 0 / 352.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.4466, allocations: 4 kB / 352.1 MB, free: 1.414 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.0007839/0.4474, allocations: 0.6097 MB / 352.7 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.4474, allocations: 8.031 kB / 352.7 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.007e-05/0.4475, allocations: 38.56 kB / 352.8 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.4476, allocations: 39.53 kB / 352.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.4481, allocations: 257.5 kB / 353 MB, free: 356 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.4481, allocations: 12 kB / 353.1 MB, free: 344 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.4482, allocations: 11.94 kB / 353.1 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003662/0.4485, allocations: 125.6 kB / 353.2 MB, free: 200 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4486, allocations: 0 / 353.2 MB, free: 200 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.4486, allocations: 4 kB / 353.2 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.4486, allocations: 0 / 353.2 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.4488, allocations: 55.98 kB / 353.3 MB, free: 140 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.4499, allocations: 464.7 kB / 353.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.4502, allocations: 90.56 kB / 353.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.4504, allocations: 84.91 kB / 353.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.4505, allocations: 0 / 353.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/0.4509, allocations: 210.7 kB / 354.1 MB, free: 15.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.514e-06/0.4509, allocations: 3.938 kB / 354.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009483/0.4519, allocations: 400 kB / 354.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.452, allocations: 166.2 kB / 354.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009494/0.453, allocations: 463 kB / 355.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/0.4531, allocations: 33.69 kB / 355.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.4532, allocations: 159.6 kB / 355.3 MB, free: 13.94 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.624e-05/0.4533, allocations: 27.66 kB / 355.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.667e-05/0.4533, allocations: 4 kB / 355.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4535, allocations: 326.8 kB / 355.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.4537, allocations: 59.98 kB / 355.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.4539, allocations: 54.47 kB / 355.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.4541, allocations: 170.8 kB / 355.9 MB, free: 13.28 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4541, allocations: 3.938 kB / 355.9 MB, free: 13.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008608/0.455, allocations: 356.3 kB / 356.3 MB, free: 12.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.4552, allocations: 126.8 kB / 356.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.4552, allocations: 0 / 356.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.4552, allocations: 0 / 356.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.603e-05/0.4553, allocations: 0 / 356.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4553, allocations: 8 kB / 356.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.4556, allocations: 16.03 kB / 356.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.4557, allocations: 59.94 kB / 356.5 MB, free: 12.67 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.000247/0.4559, allocations: 249.9 kB / 356.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.73e-05/0.456, allocations: 35.62 kB / 356.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002168/0.4563, allocations: 63.44 kB / 356.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.4563, allocations: 0 / 356.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4563, allocations: 7.984 kB / 356.8 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4563, allocations: 4 kB / 356.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.4578, allocations: 0.7977 MB / 357.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4578, allocations: 0 / 357.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.449e-05/0.4579, allocations: 0 / 357.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.4579, allocations: 0 / 357.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.4579, allocations: 16 kB / 357.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4579, allocations: 3.938 kB / 357.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.458, allocations: 0 / 357.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.459, allocations: 0.525 MB / 358.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/0.4596, allocations: 248.3 kB / 358.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.978e-05/0.4597, allocations: 11.98 kB / 358.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.46, allocations: 16 kB / 358.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.4602, allocations: 19.97 kB / 358.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.4603, allocations: 63.92 kB / 358.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007729/0.4611, allocations: 384.9 kB / 358.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4611, allocations: 0 / 358.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004723/0.4616, allocations: 44 kB / 358.9 MB, free: 10.02 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.001426/0.463, allocations: 1.078 MB / 360 MB, free: 8.891 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007252/0.4638, allocations: 437.6 kB / 360.4 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4638, allocations: 0 / 360.4 MB, free: 8.414 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004633/0.4643, allocations: 373.6 kB / 360.8 MB, free: 8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000812/0.4651, allocations: 93.36 kB / 360.9 MB, free: 7.914 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.4671, allocations: 0.6474 MB / 361.5 MB, free: 7.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005661/0.4678, allocations: 0.8103 MB / 362.3 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.352e-05/0.4679, allocations: 27.42 kB / 362.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of SimCode: time 3.437e-06/0.4679, allocations: 0 / 362.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.646/3.114, allocations: 3.143 MB / 365.5 MB, free: 3.156 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