Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.036e-05, allocations: 3.094 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09029/0.09034, allocations: 44.49 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.4866, allocations: 77.03 MB / 377 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4869, allocations: 68.02 kB / 377.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05305/0.54, allocations: 16.46 MB / 393.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.54, allocations: 3.938 kB / 393.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.54, allocations: 3.75 kB / 393.5 MB, free: 10.93 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.0005821/0.5406, allocations: 0.6083 MB / 394.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.5407, allocations: 11.69 kB / 394.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.402e-05/0.5408, allocations: 53.39 kB / 394.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.875e-05/0.5409, allocations: 35.14 kB / 394.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.5412, allocations: 252.8 kB / 394.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.5412, allocations: 7.781 kB / 394.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.5413, allocations: 7.75 kB / 394.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.5416, allocations: 121.9 kB / 394.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.5416, allocations: 0 / 394.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.5417, allocations: 9.969 kB / 394.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.5417, allocations: 0 / 394.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.5418, allocations: 62.19 kB / 394.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000744/0.5426, allocations: 460.2 kB / 395.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.5428, allocations: 93.72 kB / 395.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.543, allocations: 85.27 kB / 395.3 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.543, allocations: 11.92 kB / 395.3 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.5434, allocations: 205.4 kB / 395.5 MB, free: 9.582 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.224e-06/0.5434, allocations: 0 / 395.5 MB, free: 9.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007545/0.5441, allocations: 401.3 kB / 395.9 MB, free: 9.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.5442, allocations: 161.8 kB / 396.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007353/0.545, allocations: 463.3 kB / 396.5 MB, free: 9.035 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.545, allocations: 29.39 kB / 396.5 MB, free: 9.004 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.5451, allocations: 171.5 kB / 396.7 MB, free: 8.844 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.5452, allocations: 27.03 kB / 396.7 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/0.5452, allocations: 3.938 kB / 396.7 MB, free: 8.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.5453, allocations: 317.4 kB / 397.1 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.5454, allocations: 57.19 kB / 397.1 MB, free: 8.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.5456, allocations: 57.81 kB / 397.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.5458, allocations: 165.2 kB / 397.3 MB, free: 8.387 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5458, allocations: 0 / 397.3 MB, free: 8.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006295/0.5464, allocations: 366.2 kB / 397.7 MB, free: 8.223 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.761e-05/0.5465, allocations: 127.8 kB / 397.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.5466, allocations: 4 kB / 397.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.5466, allocations: 3.953 kB / 397.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.255e-05/0.5466, allocations: 0 / 397.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.5466, allocations: 3.938 kB / 397.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.5469, allocations: 10.53 kB / 397.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.056e-05/0.547, allocations: 58.16 kB / 397.9 MB, free: 8.086 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0001678/0.5471, allocations: 242.6 kB / 398.1 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.5472, allocations: 38.62 kB / 398.2 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.5474, allocations: 72.97 kB / 398.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.5474, allocations: 3.953 kB / 398.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5474, allocations: 3.844 kB / 398.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.5474, allocations: 0 / 398.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.5486, allocations: 0.7915 MB / 399 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5486, allocations: 0 / 399 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-06/0.5486, allocations: 0 / 399 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.5486, allocations: 0 / 399 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.5487, allocations: 19.55 kB / 399.1 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.5487, allocations: 4 kB / 399.1 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5487, allocations: 0 / 399.1 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000745/0.5494, allocations: 0.5164 MB / 399.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.5499, allocations: 251.5 kB / 399.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/0.55, allocations: 10.53 kB / 399.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.5502, allocations: 22.64 kB / 399.9 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5504, allocations: 32.41 kB / 399.9 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.582e-05/0.5505, allocations: 57.81 kB / 399.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005856/0.5511, allocations: 391.7 kB / 400.3 MB, free: 6.742 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5511, allocations: 0 / 400.3 MB, free: 6.742 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004137/0.5515, allocations: 42.31 kB / 400.4 MB, free: 6.742 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.001007/0.5525, allocations: 1.069 MB / 401.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.5533, allocations: 434.7 kB / 401.9 MB, free: 21.67 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.5533, allocations: 0 / 401.9 MB, free: 21.67 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.5537, allocations: 373.9 kB / 402.2 MB, free: 21.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007275/0.5545, allocations: 101.3 kB / 402.3 MB, free: 21.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5561, allocations: 0.6459 MB / 403 MB, free: 21.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000538/0.5566, allocations: 0.8149 MB / 403.8 MB, free: 20.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.165e-05/0.5567, allocations: 26.17 kB / 403.8 MB, free: 20.38 MB / 330.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5567, allocations: 0 / 403.8 MB, free: 20.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.48/3.036, allocations: 3.146 MB / 407 MB, free: 19.79 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat