Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_WiredX",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.247/2.247, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.251e-05/3.249e-05, allocations: 3.5 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09727, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5436, allocations: 77.8 MB / 372.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.5439, allocations: 68.22 kB / 372.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1588/0.7028, allocations: 42.84 MB / 415 MB, free: 6.648 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.7028, allocations: 0 / 415 MB, free: 6.648 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.7029, allocations: 8 kB / 415 MB, free: 6.641 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.001514/0.7044, allocations: 0.9498 MB / 416 MB, free: 5.633 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.7045, allocations: 8.031 kB / 416 MB, free: 5.625 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.7047, allocations: 75.06 kB / 416 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008051/0.7055, allocations: 364.8 kB / 416.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.7056, allocations: 10.69 kB / 416.4 MB, free: 5.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.7057, allocations: 20 kB / 416.4 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005367/0.7063, allocations: 139.1 kB / 416.6 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008106/0.7071, allocations: 275.3 kB / 416.8 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.7072, allocations: 0 / 416.8 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-05/0.7073, allocations: 10.56 kB / 416.8 MB, free: 4.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.7073, allocations: 4 kB / 416.8 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.7096, allocations: 0.7333 MB / 417.6 MB, free: 4.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/0.7102, allocations: 199.5 kB / 417.8 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004895/0.7107, allocations: 176.8 kB / 417.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.7107, allocations: 4 kB / 417.9 MB, free: 3.816 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008657/0.7116, allocations: 421.5 kB / 418.4 MB, free: 3.371 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.857e-06/0.7116, allocations: 0 / 418.4 MB, free: 3.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002076/0.7137, allocations: 0.6143 MB / 419 MB, free: 2.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/0.7139, allocations: 281 kB / 419.2 MB, free: 2.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002035/0.716, allocations: 0.7922 MB / 420 MB, free: 1.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.7162, allocations: 37.7 kB / 420.1 MB, free: 1.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.7164, allocations: 129.9 kB / 420.2 MB, free: 1.438 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.7166, allocations: 59.33 kB / 420.3 MB, free: 1.379 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/0.7167, allocations: 12 kB / 420.3 MB, free: 1.367 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.7169, allocations: 334.8 kB / 420.6 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.7174, allocations: 136.2 kB / 420.7 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.7178, allocations: 154.2 kB / 420.9 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.7183, allocations: 115.9 kB / 421 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.7183, allocations: 0 / 421 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001873/0.7202, allocations: 0.5713 MB / 421.6 MB, free: 52 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002641/0.7205, allocations: 245.6 kB / 421.8 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.7205, allocations: 0 / 421.8 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.7205, allocations: 0 / 421.8 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.558e-05/0.7206, allocations: 11.94 kB / 421.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.7206, allocations: 7.984 kB / 421.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005567/0.7212, allocations: 31.88 kB / 421.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004755/0.7217, allocations: 263.8 kB / 422.1 MB, free: 15.45 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.0005634/0.7223, allocations: 399.2 kB / 422.5 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002122/0.7244, allocations: 0.649 MB / 423.1 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.7246, allocations: 79.09 kB / 423.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004927/0.7251, allocations: 123.3 kB / 423.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.7252, allocations: 4 kB / 423.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.7252, allocations: 3.984 kB / 423.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.7252, allocations: 0 / 423.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/0.7284, allocations: 1.185 MB / 424.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.7285, allocations: 0 / 424.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.655e-05/0.7285, allocations: 4 kB / 424.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.818e-05/0.7286, allocations: 11.97 kB / 424.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.7287, allocations: 43.97 kB / 424.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.7287, allocations: 0 / 424.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7287, allocations: 0 / 424.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.731, allocations: 0.7599 MB / 425.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.7323, allocations: 439.6 kB / 425.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/0.7326, allocations: 20 kB / 425.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005528/0.7332, allocations: 31.91 kB / 425.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/0.7336, allocations: 71.92 kB / 425.9 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004866/0.7341, allocations: 267.6 kB / 426.2 MB, free: 11.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001704/0.7358, allocations: 0.6431 MB / 426.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.427e-06/0.7358, allocations: 0 / 426.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008872/0.7367, allocations: 91.94 kB / 426.9 MB, free: 10.52 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.002761/0.7395, allocations: 1.346 MB / 428.2 MB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.7412, allocations: 0.8741 MB / 429.1 MB, free: 8.176 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.7412, allocations: 0 / 429.1 MB, free: 8.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.7423, allocations: 0.7492 MB / 429.9 MB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.7442, allocations: 221.2 kB / 430.1 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.7484, allocations: 1.194 MB / 431.3 MB, free: 5.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.7496, allocations: 0.952 MB / 432.2 MB, free: 4.902 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004703/0.7501, allocations: 101 kB / 432.3 MB, free: 4.805 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.7504, allocations: 91.34 kB / 432.4 MB, free: 4.715 MB / 330.7 MB Notification: Performance of SimCode: time 1.183e-06/0.7504, allocations: 0 / 432.4 MB, free: 4.715 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07575/0.8261, allocations: 13.54 MB / 446 MB, free: 7.008 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0005303/0.8267, allocations: 133.8 kB / 446.1 MB, free: 6.816 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.167/3.994, allocations: 0 / 446.1 MB, free: 6.816 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat