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.742/1.742, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.231e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2486, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.3715, allocations: 71.03 MB / 329.4 MB, free: 6.781 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.3718, allocations: 67.97 kB / 329.4 MB, free: 6.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06319/0.435, allocations: 16.35 MB / 345.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4351, allocations: 0 / 345.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.4351, allocations: 8 kB / 345.8 MB, free: 6.371 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.0007571/0.4359, allocations: 0.6098 MB / 346.4 MB, free: 5.691 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.4359, allocations: 8.031 kB / 346.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.938e-05/0.4361, allocations: 39.53 kB / 346.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.4365, allocations: 259.6 kB / 346.7 MB, free: 5.348 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.4365, allocations: 7.984 kB / 346.7 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.4366, allocations: 8 kB / 346.7 MB, free: 5.332 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000186/0.4368, allocations: 51.98 kB / 346.8 MB, free: 5.281 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.4371, allocations: 113.6 kB / 346.9 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.4371, allocations: 4 kB / 346.9 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.628e-05/0.4371, allocations: 8 kB / 346.9 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.4372, allocations: 0 / 346.9 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/0.4381, allocations: 433.1 kB / 347.3 MB, free: 4.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.4383, allocations: 84.28 kB / 347.4 MB, free: 4.602 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.4385, allocations: 84.91 kB / 347.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.4385, allocations: 0 / 347.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.4389, allocations: 202.5 kB / 347.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.485e-06/0.4389, allocations: 0 / 347.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008014/0.4397, allocations: 269.5 kB / 347.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.4398, allocations: 170.2 kB / 348.1 MB, free: 3.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008541/0.4407, allocations: 464.8 kB / 348.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.4408, allocations: 29.7 kB / 348.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.4409, allocations: 159.9 kB / 348.7 MB, free: 3.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.962e-05/0.441, allocations: 35.58 kB / 348.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.441, allocations: 4 kB / 348.8 MB, free: 3.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.4412, allocations: 318.8 kB / 349.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.4415, allocations: 51.98 kB / 349.1 MB, free: 2.758 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.4417, allocations: 51.98 kB / 349.2 MB, free: 2.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4419, allocations: 46.64 kB / 349.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4419, allocations: 4 kB / 349.2 MB, free: 2.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009004/0.4428, allocations: 233.5 kB / 349.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.443, allocations: 126.8 kB / 349.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.443, allocations: 0 / 349.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.443, allocations: 64 / 349.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.867e-05/0.4431, allocations: 4 kB / 349.6 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.4431, allocations: 4 kB / 349.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.4434, allocations: 15.92 kB / 349.6 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.4436, allocations: 59.94 kB / 349.7 MB, free: 2.195 MB / 298.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.0003192/0.4439, allocations: 251.3 kB / 349.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001033/0.445, allocations: 289.2 kB / 350.2 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4451, allocations: 39.53 kB / 350.2 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.4454, allocations: 63.44 kB / 350.3 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4455, allocations: 3.984 kB / 350.3 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.4455, allocations: 0 / 350.3 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4455, allocations: 0 / 350.3 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.4471, allocations: 0.6433 MB / 350.9 MB, free: 0.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.4471, allocations: 0 / 350.9 MB, free: 0.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.368e-05/0.4471, allocations: 4 kB / 351 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.4472, allocations: 3.984 kB / 351 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-05/0.4472, allocations: 12 kB / 351 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.4473, allocations: 0 / 351 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4473, allocations: 3.938 kB / 351 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.4483, allocations: 394.8 kB / 351.4 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006854/0.449, allocations: 244.4 kB / 351.6 MB, free: 152 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.4492, allocations: 12 kB / 351.6 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.4495, allocations: 19.92 kB / 351.6 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4497, allocations: 27.97 kB / 351.7 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.4499, allocations: 60.11 kB / 351.7 MB, free: 32 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009671/0.4509, allocations: 370.7 kB / 352.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4509, allocations: 0 / 352.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006755/0.4516, allocations: 40 kB / 352.1 MB, free: 15.63 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.001639/0.4532, allocations: 0.9577 MB / 353.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008703/0.4541, allocations: 421.5 kB / 353.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4542, allocations: 0 / 353.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005868/0.4548, allocations: 369.6 kB / 353.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4559, allocations: 85.78 kB / 353.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.4586, allocations: 0.6469 MB / 354.6 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008478/0.4595, allocations: 0.8061 MB / 355.4 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.4596, allocations: 27.42 kB / 355.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4597, allocations: 0 / 355.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/3.019, allocations: 3.138 MB / 358.5 MB, free: 8.938 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