Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.21e-05, allocations: 5.25 kB / 255.4 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.08971, allocations: 44.52 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4118/0.5015, allocations: 78.45 MB / 378.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.5019, allocations: 69.58 kB / 378.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1341/0.636, allocations: 43.14 MB / 421.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.6361, allocations: 3.938 kB / 421.6 MB, free: 4.266 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.6361, allocations: 11.25 kB / 421.6 MB, free: 4.266 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.000959/0.6371, allocations: 0.9445 MB / 422.6 MB, free: 3.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.6372, allocations: 11.62 kB / 422.6 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.6373, allocations: 53.23 kB / 422.7 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.6374, allocations: 76.44 kB / 422.7 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006/0.638, allocations: 357.2 kB / 423.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.6381, allocations: 17.72 kB / 423.1 MB, free: 3.031 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.593e-05/0.6382, allocations: 23.89 kB / 423.1 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/0.639, allocations: 302 kB / 423.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.639, allocations: 0 / 423.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.518e-05/0.6391, allocations: 13.31 kB / 423.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6391, allocations: 0 / 423.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004231/0.6395, allocations: 150.5 kB / 423.6 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.6414, allocations: 0.7753 MB / 424.3 MB, free: 2.434 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.6419, allocations: 207.7 kB / 424.5 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.6423, allocations: 182.7 kB / 424.7 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.6424, allocations: 3.875 kB / 424.7 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007088/0.6431, allocations: 433.9 kB / 425.2 MB, free: 2.102 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.926e-06/0.6431, allocations: 0 / 425.2 MB, free: 2.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001765/0.6449, allocations: 0.8602 MB / 426 MB, free: 1.707 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.645, allocations: 277.7 kB / 426.3 MB, free: 1.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.6467, allocations: 0.8289 MB / 427.1 MB, free: 1.039 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.6468, allocations: 40.28 kB / 427.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.99e-05/0.6469, allocations: 135.6 kB / 427.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.647, allocations: 53.17 kB / 427.3 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.6471, allocations: 10.75 kB / 427.3 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.857e-05/0.6472, allocations: 342 kB / 427.7 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.6476, allocations: 139 kB / 427.8 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00042/0.648, allocations: 169.6 kB / 428 MB, free: 0.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.6485, allocations: 349.5 kB / 428.3 MB, free: 232 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.6485, allocations: 0 / 428.3 MB, free: 232 kB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00169/0.6502, allocations: 0.8274 MB / 429.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000186/0.6504, allocations: 247 kB / 429.4 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.6504, allocations: 4 kB / 429.4 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.6505, allocations: 0 / 429.4 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.6506, allocations: 7.062 kB / 429.4 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.6506, allocations: 3.938 kB / 429.4 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.6511, allocations: 34.45 kB / 429.4 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/0.6514, allocations: 259.8 kB / 429.7 MB, free: 15.54 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.0004303/0.6518, allocations: 402.2 kB / 430.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.652, allocations: 78.16 kB / 430.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004023/0.6524, allocations: 127.6 kB / 430.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.6524, allocations: 3.875 kB / 430.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.6525, allocations: 0 / 430.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.6525, allocations: 0 / 430.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/0.6552, allocations: 1.497 MB / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.6552, allocations: 0 / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.534e-05/0.6553, allocations: 3.781 kB / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.6553, allocations: 0 / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.6554, allocations: 45.78 kB / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.6554, allocations: 0 / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6554, allocations: 0 / 431.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.6574, allocations: 1.025 MB / 432.9 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.6585, allocations: 434.2 kB / 433.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/0.6587, allocations: 31.06 kB / 433.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.6592, allocations: 33.25 kB / 433.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/0.6595, allocations: 69.42 kB / 433.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/0.6599, allocations: 268.6 kB / 433.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001543/0.6614, allocations: 0.6866 MB / 434.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.6615, allocations: 0 / 434.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007496/0.6622, allocations: 90.94 kB / 434.5 MB, free: 12.96 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.00276/0.665, allocations: 1.617 MB / 436.1 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.6666, allocations: 0.8944 MB / 437 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6666, allocations: 0 / 437 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.6676, allocations: 0.7633 MB / 437.7 MB, free: 9.828 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.6693, allocations: 227 kB / 438 MB, free: 9.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/0.6729, allocations: 1.213 MB / 439.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009337/0.6739, allocations: 0.9597 MB / 440.1 MB, free: 7.371 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.6743, allocations: 93.02 kB / 440.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.6745, allocations: 91.33 kB / 440.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.6745, allocations: 0 / 440.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04687/0.7214, allocations: 14.13 MB / 454.4 MB, free: 8.898 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000317/0.7218, allocations: 157.3 kB / 454.6 MB, free: 8.664 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.561, allocations: 0 / 454.6 MB, free: 8.664 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat