Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.007/2.007, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.926e-05, allocations: 4 kB / 255.5 MB, free: 2.645 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09127, allocations: 44.5 MB / 300 MB, free: 6.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5296, allocations: 77.02 MB / 377 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.5299, allocations: 70 kB / 377 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05107/0.581, allocations: 16.47 MB / 393.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.581, allocations: 3.938 kB / 393.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.5811, allocations: 7.844 kB / 393.5 MB, free: 11.03 MB / 314.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.0005814/0.5816, allocations: 0.6125 MB / 394.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.5817, allocations: 7.625 kB / 394.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.155e-05/0.5818, allocations: 45.48 kB / 394.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.5819, allocations: 35.14 kB / 394.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.5822, allocations: 254 kB / 394.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.5823, allocations: 3.688 kB / 394.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.5823, allocations: 11.34 kB / 394.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.5826, allocations: 125.8 kB / 394.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.5827, allocations: 4 kB / 394.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.5827, allocations: 3.875 kB / 394.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.5827, allocations: 0 / 394.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.5829, allocations: 67.66 kB / 394.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007975/0.5837, allocations: 465.8 kB / 395.1 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.5839, allocations: 96.34 kB / 395.2 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.5841, allocations: 85.83 kB / 395.3 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.5842, allocations: 0 / 395.3 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003338/0.5845, allocations: 211.8 kB / 395.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.434e-06/0.5845, allocations: 0 / 395.5 MB, free: 9.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.000767/0.5853, allocations: 392.9 kB / 395.9 MB, free: 9.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.5854, allocations: 168.8 kB / 396.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007784/0.5862, allocations: 463.1 kB / 396.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.5862, allocations: 29.64 kB / 396.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.5863, allocations: 98.83 kB / 396.6 MB, free: 9.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.5863, allocations: 35.52 kB / 396.7 MB, free: 8.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-05/0.5864, allocations: 0 / 396.7 MB, free: 8.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.5865, allocations: 325 kB / 397 MB, free: 8.676 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.5866, allocations: 57.67 kB / 397.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.5868, allocations: 59.66 kB / 397.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001747/0.587, allocations: 166.4 kB / 397.3 MB, free: 8.543 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.587, allocations: 3.875 kB / 397.3 MB, free: 8.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006355/0.5876, allocations: 365.7 kB / 397.6 MB, free: 8.379 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.57e-05/0.5877, allocations: 128.3 kB / 397.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5877, allocations: 0 / 397.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.5878, allocations: 3.953 kB / 397.8 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.312e-05/0.5878, allocations: 3.797 kB / 397.8 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.5878, allocations: 0 / 397.8 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.588, allocations: 11.69 kB / 397.8 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.02e-05/0.5881, allocations: 62.19 kB / 397.8 MB, free: 8.238 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.0001609/0.5883, allocations: 246.2 kB / 398.1 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.908e-05/0.5884, allocations: 38.62 kB / 398.1 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.5885, allocations: 65.16 kB / 398.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.5885, allocations: 3.953 kB / 398.2 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.5886, allocations: 3.938 kB / 398.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.5886, allocations: 3.875 kB / 398.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.5897, allocations: 0.7846 MB / 399 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5897, allocations: 7.797 kB / 399 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-06/0.5897, allocations: 3.875 kB / 399 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.5897, allocations: 0 / 399 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.5898, allocations: 19.05 kB / 399 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.5898, allocations: 0 / 399 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5898, allocations: 128 / 399 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007765/0.5906, allocations: 0.5109 MB / 399.5 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.591, allocations: 250.6 kB / 399.8 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/0.5911, allocations: 15.44 kB / 399.8 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.5913, allocations: 23.19 kB / 399.8 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.5915, allocations: 24.91 kB / 399.8 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-05/0.5916, allocations: 65 kB / 399.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005842/0.5922, allocations: 387.7 kB / 400.3 MB, free: 6.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5922, allocations: 0 / 400.3 MB, free: 6.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.5925, allocations: 38.81 kB / 400.3 MB, free: 6.906 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.0009746/0.5935, allocations: 1.085 MB / 401.4 MB, free: 6.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.5941, allocations: 429.2 kB / 401.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5941, allocations: 0 / 401.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005448/0.5947, allocations: 373 kB / 402.2 MB, free: 21.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006927/0.5954, allocations: 96.2 kB / 402.3 MB, free: 21.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.5968, allocations: 0.6089 MB / 402.9 MB, free: 21.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.5974, allocations: 0.8089 MB / 403.7 MB, free: 20.58 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.181e-05/0.5974, allocations: 12.27 kB / 403.7 MB, free: 20.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.5975, allocations: 22.62 kB / 403.7 MB, free: 20.57 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5975, allocations: 3.75 kB / 403.7 MB, free: 20.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.6223, allocations: 5.324 MB / 409 MB, free: 18.7 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/0.6226, allocations: 144.4 kB / 409.2 MB, free: 18.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/3.127, allocations: 0 / 409.2 MB, free: 18.47 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat