Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.248e-05, allocations: 7.984 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09295, allocations: 44.51 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4238/0.5168, allocations: 78.47 MB / 378.4 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.5171, allocations: 68.78 kB / 378.5 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.6767, allocations: 43.14 MB / 421.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6768, allocations: 0 / 421.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.6768, allocations: 15.69 kB / 421.7 MB, free: 3.926 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001138/0.678, allocations: 0.9466 MB / 422.6 MB, free: 3.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.6781, allocations: 11.41 kB / 422.6 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.6782, allocations: 49.39 kB / 422.7 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.6783, allocations: 77.28 kB / 422.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.6789, allocations: 355.3 kB / 423.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.679, allocations: 18.38 kB / 423.1 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.642e-05/0.6791, allocations: 22.92 kB / 423.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.6798, allocations: 298.2 kB / 423.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.6798, allocations: 4 kB / 423.4 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.6799, allocations: 15.3 kB / 423.4 MB, free: 2.566 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.6799, allocations: 0 / 423.4 MB, free: 2.566 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.6804, allocations: 145.6 kB / 423.6 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.6821, allocations: 0.7787 MB / 424.4 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004919/0.6826, allocations: 209.2 kB / 424.6 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004104/0.683, allocations: 184.1 kB / 424.7 MB, free: 2.035 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.683, allocations: 3.688 kB / 424.7 MB, free: 2.035 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006662/0.6837, allocations: 431.7 kB / 425.2 MB, free: 1.766 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.885e-06/0.6837, allocations: 0 / 425.2 MB, free: 1.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001722/0.6855, allocations: 0.8566 MB / 426 MB, free: 1.367 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.6856, allocations: 283.6 kB / 426.3 MB, free: 1.051 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.6872, allocations: 0.8293 MB / 427.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.57e-05/0.6873, allocations: 37.02 kB / 427.2 MB, free: 0.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/0.6874, allocations: 185.5 kB / 427.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.6875, allocations: 66.94 kB / 427.4 MB, free: 484 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.6876, allocations: 3.812 kB / 427.4 MB, free: 484 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.6876, allocations: 334 kB / 427.7 MB, free: 152 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.688, allocations: 137.5 kB / 427.9 MB, free: 140 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003958/0.6884, allocations: 168.9 kB / 428 MB, free: 104 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.689, allocations: 353.8 kB / 428.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.689, allocations: 0 / 428.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0017/0.6907, allocations: 0.8109 MB / 429.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.6909, allocations: 238.5 kB / 429.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.6909, allocations: 4.031 kB / 429.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.691, allocations: 3.75 kB / 429.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.178e-05/0.691, allocations: 11.73 kB / 429.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.691, allocations: 0 / 429.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.6915, allocations: 32.77 kB / 429.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000325/0.6918, allocations: 262.7 kB / 429.7 MB, free: 15.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.000455/0.6923, allocations: 396.8 kB / 430.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.6925, allocations: 76.91 kB / 430.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.6929, allocations: 130.5 kB / 430.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.6929, allocations: 7.812 kB / 430.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6929, allocations: 0 / 430.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.6929, allocations: 0 / 430.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.6957, allocations: 1.485 MB / 431.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.6958, allocations: 3.219 kB / 431.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.824e-05/0.6958, allocations: 6.922 kB / 431.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.044e-06/0.6958, allocations: 4 kB / 431.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.696, allocations: 46.38 kB / 431.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.696, allocations: 0 / 431.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.696, allocations: 0 / 431.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.6979, allocations: 1.018 MB / 432.9 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.699, allocations: 435 kB / 433.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.6992, allocations: 26.39 kB / 433.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.6997, allocations: 31.27 kB / 433.4 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.7, allocations: 80.44 kB / 433.5 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/0.7003, allocations: 269.5 kB / 433.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001452/0.7018, allocations: 0.6834 MB / 434.4 MB, free: 12.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7018, allocations: 0 / 434.4 MB, free: 12.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006333/0.7024, allocations: 88.09 kB / 434.5 MB, free: 12.69 MB / 330.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.002669/0.7051, allocations: 1.608 MB / 436.1 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.7068, allocations: 0.9041 MB / 437 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.7068, allocations: 0 / 437 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.7078, allocations: 0.7662 MB / 437.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.7095, allocations: 226.7 kB / 438 MB, free: 9.629 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.7132, allocations: 1.268 MB / 439.3 MB, free: 8.465 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.7143, allocations: 0.9595 MB / 440.2 MB, free: 7.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/0.7146, allocations: 97.75 kB / 440.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7147, allocations: 4 kB / 440.3 MB, free: 7.438 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.474, allocations: 8.926 MB / 449.2 MB, free: 14.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat