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 2.224/2.224, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.322e-05/2.32e-05, allocations: 4 kB / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2979, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.4398, allocations: 77.8 MB / 372 MB, free: 4.145 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.4401, allocations: 67.95 kB / 372.1 MB, free: 4.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1733/0.6134, allocations: 42.82 MB / 414.9 MB, free: 9.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.6134, allocations: 0 / 414.9 MB, free: 9.324 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.6135, allocations: 12 kB / 414.9 MB, free: 9.312 MB / 362.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.001236/0.6147, allocations: 0.9551 MB / 415.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.6148, allocations: 8.031 kB / 415.9 MB, free: 8.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.615, allocations: 75.06 kB / 415.9 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006707/0.6156, allocations: 360.1 kB / 416.3 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.6157, allocations: 8 kB / 416.3 MB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.6158, allocations: 19.94 kB / 416.3 MB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004358/0.6163, allocations: 140.4 kB / 416.5 MB, free: 7.617 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/0.617, allocations: 279 kB / 416.7 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.617, allocations: 4 kB / 416.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.48e-05/0.6171, allocations: 8 kB / 416.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.6171, allocations: 4 kB / 416.7 MB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.6189, allocations: 0.7433 MB / 417.5 MB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.6194, allocations: 198.5 kB / 417.7 MB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.6198, allocations: 172.8 kB / 417.8 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.6198, allocations: 4 kB / 417.9 MB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007164/0.6206, allocations: 417.8 kB / 418.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.785e-06/0.6206, allocations: 4 kB / 418.3 MB, free: 5.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001691/0.6223, allocations: 0.6177 MB / 418.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.6225, allocations: 277 kB / 419.2 MB, free: 4.758 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.6241, allocations: 0.7961 MB / 420 MB, free: 3.953 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.369e-05/0.6242, allocations: 33.7 kB / 420 MB, free: 3.914 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.6244, allocations: 180.5 kB / 420.2 MB, free: 3.734 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.6245, allocations: 67.25 kB / 420.2 MB, free: 3.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.6246, allocations: 4 kB / 420.2 MB, free: 3.664 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6247, allocations: 330.8 kB / 420.6 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.6251, allocations: 132.2 kB / 420.7 MB, free: 3.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.6255, allocations: 150.2 kB / 420.8 MB, free: 3.051 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.6258, allocations: 121.5 kB / 420.9 MB, free: 2.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.6259, allocations: 0 / 420.9 MB, free: 2.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001507/0.6274, allocations: 0.5558 MB / 421.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001998/0.6276, allocations: 245.6 kB / 421.7 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.6276, allocations: 4 kB / 421.7 MB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.6276, allocations: 4.031 kB / 421.7 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.276e-05/0.6277, allocations: 8 kB / 421.8 MB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.6277, allocations: 7.938 kB / 421.8 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.6282, allocations: 31.83 kB / 421.8 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004061/0.6286, allocations: 263.8 kB / 422.1 MB, free: 1.77 MB / 362.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.0004262/0.629, allocations: 387.5 kB / 422.4 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001694/0.6308, allocations: 0.6568 MB / 423.1 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.6309, allocations: 79.06 kB / 423.2 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.6313, allocations: 127.3 kB / 423.3 MB, free: 480 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.6313, allocations: 0 / 423.3 MB, free: 480 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.6313, allocations: 4 kB / 423.3 MB, free: 476 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.6314, allocations: 3.984 kB / 423.3 MB, free: 472 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2417/0.8731, allocations: 1.167 MB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.8731, allocations: 0.5312 kB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.563e-05/0.8732, allocations: 5.688 kB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.8732, allocations: 5.641 kB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.8733, allocations: 48.92 kB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.8733, allocations: 0.75 kB / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.8734, allocations: 0 / 424.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/0.8752, allocations: 0.7567 MB / 425.3 MB, free: 103.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.8762, allocations: 436.2 kB / 425.7 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.8765, allocations: 19.75 kB / 425.7 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004648/0.877, allocations: 36.72 kB / 425.8 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.8773, allocations: 74.31 kB / 425.8 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004195/0.8777, allocations: 267.1 kB / 426.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001352/0.8791, allocations: 0.6527 MB / 426.7 MB, free: 102.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.8791, allocations: 0 / 426.7 MB, free: 102.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007209/0.8798, allocations: 86.84 kB / 426.8 MB, free: 102.7 MB / 362.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.002133/0.8819, allocations: 1.345 MB / 428.2 MB, free: 102 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.8832, allocations: 0.8745 MB / 429.1 MB, free: 101.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.8832, allocations: 3.75 kB / 429.1 MB, free: 101.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007785/0.884, allocations: 0.7453 MB / 429.8 MB, free: 101 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.8855, allocations: 228.4 kB / 430 MB, free: 101 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.8888, allocations: 1.257 MB / 431.3 MB, free: 100.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007297/0.8896, allocations: 0.9555 MB / 432.2 MB, free: 99.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/0.8899, allocations: 101.1 kB / 432.3 MB, free: 99.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8899, allocations: 0 / 432.3 MB, free: 99.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.229/4.119, allocations: 8.918 MB / 441.3 MB, free: 98.89 MB / 362.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