Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.206e-05, allocations: 7.797 kB / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 50.4 MB / 342.6 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4611/0.5682, allocations: 80.55 MB / 423.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5685, allocations: 67.28 kB / 423.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02753/0.5961, allocations: 6.295 MB / 429.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5961, allocations: 3.938 kB / 429.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.356e-05/0.5961, allocations: 8 kB / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001302/0.5974, allocations: 0.5804 MB / 430.1 MB, free: 7.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5975, allocations: 8.031 kB / 430.1 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.5976, allocations: 72.06 kB / 430.2 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.5977, allocations: 51.47 kB / 430.3 MB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.5982, allocations: 271.1 kB / 430.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.561e-05/0.5983, allocations: 74.97 kB / 430.6 MB, free: 6.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-05/0.5984, allocations: 34.89 kB / 430.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007395/0.5991, allocations: 318.3 kB / 431 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.5991, allocations: 0 / 431 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.5992, allocations: 16.81 kB / 431 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.5992, allocations: 8 kB / 431 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005962/0.5998, allocations: 199 kB / 431.2 MB, free: 6.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.6026, allocations: 1.385 MB / 432.6 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.6031, allocations: 156.1 kB / 432.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.6033, allocations: 84.2 kB / 432.8 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.6034, allocations: 7.953 kB / 432.8 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.6037, allocations: 146.7 kB / 432.9 MB, free: 4.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.214e-06/0.6038, allocations: 0 / 432.9 MB, free: 4.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008209/0.6046, allocations: 222.6 kB / 433.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.893e-05/0.6047, allocations: 113.9 kB / 433.3 MB, free: 4.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003391/0.605, allocations: 229.5 kB / 433.5 MB, free: 4.344 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.6051, allocations: 33.25 kB / 433.5 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.6053, allocations: 197.6 kB / 433.7 MB, free: 4.145 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.15e-05/0.6053, allocations: 71.86 kB / 433.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.6054, allocations: 3.438 kB / 433.8 MB, free: 4.082 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.6055, allocations: 343 kB / 434.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.6057, allocations: 66 kB / 434.2 MB, free: 3.711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.606, allocations: 150.5 kB / 434.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.6063, allocations: 79.53 kB / 434.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.6063, allocations: 0 / 434.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009336/0.6072, allocations: 316.4 kB / 434.7 MB, free: 3.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.6073, allocations: 7.938 kB / 434.7 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.6073, allocations: 4 kB / 434.7 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.6077, allocations: 59.09 kB / 434.8 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004511/0.6081, allocations: 63.78 kB / 434.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.6098, allocations: 1.4 MB / 436.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004304/0.6103, allocations: 51.39 kB / 436.3 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.6103, allocations: 15.52 kB / 436.3 MB, free: 1.586 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.6105, allocations: 126.2 kB / 436.4 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.6105, allocations: 27.62 kB / 436.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.6106, allocations: 28.27 kB / 436.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.6106, allocations: 4 kB / 436.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.6106, allocations: 4 kB / 436.5 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.6106, allocations: 7.969 kB / 436.5 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/0.6111, allocations: 340.4 kB / 436.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.6111, allocations: 0 / 436.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.6115, allocations: 35.97 kB / 436.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002762/0.6118, allocations: 63.33 kB / 436.9 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.6119, allocations: 6.984 kB / 437 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.6134, allocations: 1.313 MB / 438.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6134, allocations: 0 / 438.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009568/0.6144, allocations: 346.4 kB / 438.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.6145, allocations: 111 kB / 438.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.6146, allocations: 7.984 kB / 438.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.6149, allocations: 19.42 kB / 438.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.615, allocations: 27.33 kB / 438.8 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.6151, allocations: 11.23 kB / 438.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002421/0.6153, allocations: 184.8 kB / 439 MB, free: 15 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6154, allocations: 0 / 439 MB, free: 15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005593/0.6159, allocations: 96.44 kB / 439.1 MB, free: 14.92 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/0.6173, allocations: 0.8748 MB / 439.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007215/0.618, allocations: 279.2 kB / 440.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.618, allocations: 3.938 kB / 440.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.6184, allocations: 182.6 kB / 440.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.6188, allocations: 38.55 kB / 440.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.621, allocations: 0.5526 MB / 441 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.6214, allocations: 0.7838 MB / 441.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001893/0.6216, allocations: 30.05 kB / 441.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.6218, allocations: 94.41 kB / 441.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of SimCode: time 8.32e-07/0.6218, allocations: 0 / 441.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.6513, allocations: 5.312 MB / 447.2 MB, free: 7.059 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002718/0.6516, allocations: 194.2 kB / 447.4 MB, free: 6.836 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.482/3.133, allocations: 0 / 447.4 MB, free: 6.836 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat