Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.396e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2806, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.4065, allocations: 68.37 MB / 332.2 MB, free: 5.246 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.4068, allocations: 71.95 kB / 332.3 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0255/0.4324, allocations: 5.31 MB / 337.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4324, allocations: 0 / 337.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.292e-05/0.4325, allocations: 8 kB / 337.6 MB, free: 15.83 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001353/0.4338, allocations: 0.544 MB / 338.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.4339, allocations: 8.031 kB / 338.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.434, allocations: 70.53 kB / 338.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.4342, allocations: 31.62 kB / 338.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.4346, allocations: 254.9 kB / 338.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.4348, allocations: 76.14 kB / 338.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.4348, allocations: 36 kB / 338.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007462/0.4356, allocations: 281.9 kB / 338.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.4356, allocations: 3.984 kB / 338.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.007e-05/0.4357, allocations: 12 kB / 338.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.4357, allocations: 4 kB / 338.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005497/0.4363, allocations: 177 kB / 339.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.4392, allocations: 1.158 MB / 340.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.4397, allocations: 154.6 kB / 340.4 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.4399, allocations: 89.12 kB / 340.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.44, allocations: 3.953 kB / 340.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.4404, allocations: 154.7 kB / 340.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 3.066e-06/0.4404, allocations: 0 / 340.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009314/0.4414, allocations: 220.6 kB / 340.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.641e-05/0.4415, allocations: 106.8 kB / 341 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.4419, allocations: 200.8 kB / 341.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.4419, allocations: 33.7 kB / 341.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.4421, allocations: 172 kB / 341.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.4422, allocations: 71.08 kB / 341.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.4422, allocations: 4 kB / 341.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.4424, allocations: 338.8 kB / 341.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.4426, allocations: 60.56 kB / 341.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.4429, allocations: 127.9 kB / 342 MB, free: 11.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.4432, allocations: 76.42 kB / 342 MB, free: 11.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.4432, allocations: 0 / 342 MB, free: 11.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007225/0.4439, allocations: 252.2 kB / 342.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.444, allocations: 4 kB / 342.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.444, allocations: 7.984 kB / 342.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.4444, allocations: 56.92 kB / 342.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.4448, allocations: 51.91 kB / 342.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.4469, allocations: 1.397 MB / 343.8 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.4474, allocations: 43.89 kB / 343.8 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.4474, allocations: 15.98 kB / 343.9 MB, free: 9.141 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.0001586/0.4476, allocations: 124.8 kB / 344 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.299e-05/0.4477, allocations: 23.72 kB / 344 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.308e-05/0.4478, allocations: 25.95 kB / 344 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4478, allocations: 4 kB / 344 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.4478, allocations: 0 / 344 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4478, allocations: 4 kB / 344 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005374/0.4484, allocations: 321.4 kB / 344.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4484, allocations: 3.984 kB / 344.4 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003429/0.4487, allocations: 35.92 kB / 344.4 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003209/0.4491, allocations: 48.81 kB / 344.4 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.4491, allocations: 12 kB / 344.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/0.4509, allocations: 1.323 MB / 345.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.4509, allocations: 0 / 345.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.452, allocations: 325.3 kB / 346.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.4522, allocations: 113 kB / 346.2 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.4523, allocations: 8 kB / 346.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.4526, allocations: 23.98 kB / 346.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.4528, allocations: 31.94 kB / 346.3 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.4528, allocations: 7.938 kB / 346.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.4531, allocations: 161.4 kB / 346.4 MB, free: 6.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.4531, allocations: 0 / 346.4 MB, free: 6.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006/0.4537, allocations: 91.7 kB / 346.5 MB, free: 6.242 MB / 298.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001511/0.4553, allocations: 0.8628 MB / 347.4 MB, free: 5.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007885/0.4561, allocations: 273.5 kB / 347.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.4561, allocations: 0 / 347.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.4566, allocations: 181.7 kB / 347.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.457, allocations: 36.72 kB / 347.9 MB, free: 4.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.4599, allocations: 0.5637 MB / 348.4 MB, free: 4.254 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.4604, allocations: 0.7674 MB / 349.2 MB, free: 3.461 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000195/0.4606, allocations: 26.06 kB / 349.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.4608, allocations: 83.41 kB / 349.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of SimCode: time 3.086e-06/0.4608, allocations: 0 / 349.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.4981, allocations: 4.979 MB / 354.3 MB, free: 14.44 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002764/0.4984, allocations: 185.3 kB / 354.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/2.887, allocations: 0 / 354.5 MB, free: 14.21 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat