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 1.867/1.867, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.298e-05/3.313e-05, allocations: 1.406 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09216, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.4974, allocations: 77.01 MB / 376.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.4977, allocations: 68.38 kB / 377 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05166/0.5494, allocations: 16.47 MB / 393.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.5494, allocations: 3.938 kB / 393.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.5495, allocations: 3.906 kB / 393.5 MB, free: 11.45 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.0005915/0.5501, allocations: 0.6156 MB / 394.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5501, allocations: 7.844 kB / 394.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.282e-05/0.5502, allocations: 42.3 kB / 394.2 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.5503, allocations: 35.08 kB / 394.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.5506, allocations: 264.7 kB / 394.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.5506, allocations: 7.688 kB / 394.5 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.5507, allocations: 11.84 kB / 394.5 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/0.551, allocations: 126.4 kB / 394.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.551, allocations: 0 / 394.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.5511, allocations: 7.656 kB / 394.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.5511, allocations: 3.984 kB / 394.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.5513, allocations: 57.86 kB / 394.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007997/0.5521, allocations: 464.9 kB / 395.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.5523, allocations: 95.81 kB / 395.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.5525, allocations: 74.38 kB / 395.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/0.5525, allocations: 3.906 kB / 395.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003217/0.5529, allocations: 218.1 kB / 395.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.676e-06/0.5529, allocations: 0 / 395.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007726/0.5537, allocations: 396.5 kB / 395.9 MB, free: 9.918 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.5537, allocations: 161.9 kB / 396 MB, free: 9.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000768/0.5545, allocations: 461.8 kB / 396.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.5546, allocations: 33.55 kB / 396.5 MB, free: 9.516 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.5546, allocations: 163.3 kB / 396.7 MB, free: 9.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.5547, allocations: 34.14 kB / 396.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.5547, allocations: 3.875 kB / 396.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.849e-05/0.5548, allocations: 314.7 kB / 397 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.555, allocations: 61.81 kB / 397.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.5551, allocations: 57.94 kB / 397.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.5553, allocations: 164.2 kB / 397.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.5553, allocations: 0 / 397.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006584/0.556, allocations: 367.5 kB / 397.7 MB, free: 8.734 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.812e-05/0.5561, allocations: 122.3 kB / 397.8 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.5561, allocations: 0 / 397.8 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.5561, allocations: 3.953 kB / 397.8 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.197e-05/0.5562, allocations: 3.562 kB / 397.8 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.5562, allocations: 3.875 kB / 397.8 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.5564, allocations: 15.39 kB / 397.8 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.5565, allocations: 61.94 kB / 397.9 MB, free: 8.594 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.0001701/0.5567, allocations: 240.7 kB / 398.1 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.216e-05/0.5568, allocations: 39.09 kB / 398.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.557, allocations: 65.83 kB / 398.2 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.557, allocations: 3.953 kB / 398.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.557, allocations: 0 / 398.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.557, allocations: 0 / 398.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.5582, allocations: 0.8026 MB / 399 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5582, allocations: 4 kB / 399 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.787e-06/0.5582, allocations: 0 / 399 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.5582, allocations: 0 / 399 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/0.5583, allocations: 21.38 kB / 399 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.5583, allocations: 0 / 399 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5583, allocations: 0 / 399 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007599/0.559, allocations: 0.5126 MB / 399.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004444/0.5595, allocations: 253.3 kB / 399.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.014e-05/0.5596, allocations: 11.19 kB / 399.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.5599, allocations: 19.5 kB / 399.8 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.56, allocations: 25.83 kB / 399.9 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.561e-05/0.5601, allocations: 57.12 kB / 399.9 MB, free: 7.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006375/0.5608, allocations: 386.5 kB / 400.3 MB, free: 7.266 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5608, allocations: 0 / 400.3 MB, free: 7.266 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003794/0.5612, allocations: 42.56 kB / 400.3 MB, free: 7.266 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.001037/0.5622, allocations: 1.073 MB / 401.4 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005621/0.5628, allocations: 436.4 kB / 401.8 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5628, allocations: 0 / 401.8 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.5632, allocations: 372 kB / 402.2 MB, free: 5.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007403/0.5639, allocations: 101.9 kB / 402.3 MB, free: 5.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.5655, allocations: 0.6534 MB / 402.9 MB, free: 5.633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007228/0.5662, allocations: 0.8081 MB / 403.8 MB, free: 20.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.958e-05/0.5663, allocations: 26.78 kB / 403.8 MB, free: 20.9 MB / 330.7 MB Notification: Performance of SimCode: time 2.134e-06/0.5663, allocations: 0 / 403.8 MB, free: 20.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.404/2.97, allocations: 3.155 MB / 406.9 MB, free: 20.25 MB / 330.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