Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.31e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2902, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4236, allocations: 76.36 MB / 370.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.4239, allocations: 67.97 kB / 370.6 MB, free: 5.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05645/0.4803, allocations: 16.35 MB / 387 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4804, allocations: 0 / 387 MB, free: 5.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.4804, allocations: 4 kB / 387 MB, free: 5.199 MB / 330.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.0006902/0.4811, allocations: 0.6136 MB / 387.6 MB, free: 4.516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4811, allocations: 8.031 kB / 387.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.668e-05/0.4813, allocations: 39.58 kB / 387.6 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.4817, allocations: 263.6 kB / 387.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.4817, allocations: 8 kB / 387.9 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.965e-05/0.4817, allocations: 8 kB / 387.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001812/0.4819, allocations: 51.98 kB / 388 MB, free: 4.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.4822, allocations: 109.6 kB / 388.1 MB, free: 3.992 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.4823, allocations: 0 / 388.1 MB, free: 3.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.4823, allocations: 7.984 kB / 388.1 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.4823, allocations: 4 kB / 388.1 MB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/0.4831, allocations: 437.2 kB / 388.5 MB, free: 3.516 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.4834, allocations: 82.56 kB / 388.6 MB, free: 3.426 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.4836, allocations: 80.91 kB / 388.7 MB, free: 3.344 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.4836, allocations: 4 kB / 388.7 MB, free: 3.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.4839, allocations: 198.7 kB / 388.9 MB, free: 3.121 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 4.87e-06/0.484, allocations: 0 / 388.9 MB, free: 3.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007582/0.4847, allocations: 277 kB / 389.1 MB, free: 2.844 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.4848, allocations: 170.2 kB / 389.3 MB, free: 2.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007941/0.4857, allocations: 444.9 kB / 389.7 MB, free: 2.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.4857, allocations: 33.7 kB / 389.8 MB, free: 2.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.119e-05/0.4858, allocations: 163.8 kB / 389.9 MB, free: 2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.4859, allocations: 35.64 kB / 390 MB, free: 1.965 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/0.4859, allocations: 7.938 kB / 390 MB, free: 1.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.486, allocations: 310.8 kB / 390.3 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.4862, allocations: 55.98 kB / 390.3 MB, free: 1.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.4864, allocations: 52.09 kB / 390.4 MB, free: 1.539 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.4865, allocations: 48.75 kB / 390.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4865, allocations: 0 / 390.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006458/0.4872, allocations: 234.7 kB / 390.7 MB, free: 1.258 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.4873, allocations: 130.8 kB / 390.8 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.4873, allocations: 0 / 390.8 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4873, allocations: 3.984 kB / 390.8 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.04e-05/0.4874, allocations: 0 / 390.8 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4874, allocations: 8.094 kB / 390.8 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.4876, allocations: 15.98 kB / 390.8 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.933e-05/0.4877, allocations: 55.94 kB / 390.9 MB, free: 1.023 MB / 330.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.0002231/0.488, allocations: 253.8 kB / 391.1 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007139/0.4887, allocations: 293.2 kB / 391.4 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.4888, allocations: 31.62 kB / 391.4 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000194/0.489, allocations: 67.28 kB / 391.5 MB, free: 360 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.489, allocations: 3.953 kB / 391.5 MB, free: 356 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.489, allocations: 3.984 kB / 391.5 MB, free: 352 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.489, allocations: 0 / 391.5 MB, free: 352 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.4902, allocations: 0.6434 MB / 392.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4902, allocations: 0 / 392.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.027e-06/0.4903, allocations: 0 / 392.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4903, allocations: 0 / 392.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.4903, allocations: 23.94 kB / 392.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4903, allocations: 0 / 392.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4903, allocations: 0 / 392.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007807/0.4911, allocations: 387 kB / 392.6 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000498/0.4916, allocations: 252.3 kB / 392.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.981e-05/0.4918, allocations: 12 kB / 392.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.492, allocations: 15.94 kB / 392.8 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.4922, allocations: 27.97 kB / 392.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.4923, allocations: 63.92 kB / 392.9 MB, free: 14.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006346/0.4929, allocations: 370.7 kB / 393.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.304e-06/0.493, allocations: 0 / 393.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004328/0.4934, allocations: 43.94 kB / 393.3 MB, free: 14.45 MB / 346.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.001115/0.4945, allocations: 0.9462 MB / 394.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006079/0.4952, allocations: 413.6 kB / 394.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4952, allocations: 0 / 394.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003982/0.4956, allocations: 381.4 kB / 395.1 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007407/0.4963, allocations: 89.73 kB / 395.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.4981, allocations: 0.6342 MB / 395.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.4986, allocations: 0.814 MB / 396.6 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.746e-05/0.4987, allocations: 27.42 kB / 396.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4987, allocations: 0 / 396.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.728/3.226, allocations: 3.134 MB / 399.7 MB, free: 7.77 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat