Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.055/2.055, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.216e-05, allocations: 0 / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 50.41 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5329, allocations: 79.59 MB / 422.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.5332, allocations: 69.66 kB / 422.3 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02433/0.5576, allocations: 5.571 MB / 427.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5576, allocations: 0 / 427.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.076e-05/0.5576, allocations: 8 kB / 427.9 MB, free: 9.441 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001222/0.5589, allocations: 0.5323 MB / 428.4 MB, free: 8.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.5589, allocations: 12.03 kB / 428.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.5591, allocations: 64.22 kB / 428.5 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.5592, allocations: 35.84 kB / 428.5 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.5596, allocations: 261.4 kB / 428.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.872e-05/0.5597, allocations: 82.69 kB / 428.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.566e-05/0.5598, allocations: 26.62 kB / 428.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.5605, allocations: 294 kB / 429.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.5605, allocations: 0 / 429.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.5606, allocations: 14.94 kB / 429.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.5606, allocations: 8 kB / 429.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005106/0.5611, allocations: 172.7 kB / 429.4 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002511/0.5636, allocations: 1.14 MB / 430.5 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.5641, allocations: 153.4 kB / 430.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.5643, allocations: 78.95 kB / 430.7 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.5643, allocations: 0 / 430.7 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.5647, allocations: 157.3 kB / 430.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.5647, allocations: 0 / 430.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008423/0.5655, allocations: 225.5 kB / 431.1 MB, free: 6.516 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.5657, allocations: 110.8 kB / 431.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.566, allocations: 193.8 kB / 431.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.566, allocations: 41.02 kB / 431.4 MB, free: 6.176 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.5662, allocations: 179.7 kB / 431.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.003e-05/0.5663, allocations: 60.66 kB / 431.7 MB, free: 5.973 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.5663, allocations: 10.69 kB / 431.7 MB, free: 5.969 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5665, allocations: 329.4 kB / 432 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.5667, allocations: 64.75 kB / 432.1 MB, free: 5.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.5669, allocations: 121.5 kB / 432.2 MB, free: 5.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.5672, allocations: 67.11 kB / 432.3 MB, free: 5.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5672, allocations: 0 / 432.3 MB, free: 5.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006382/0.5678, allocations: 259.4 kB / 432.5 MB, free: 5.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.5679, allocations: 8 kB / 432.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.5679, allocations: 0 / 432.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003675/0.5683, allocations: 55.48 kB / 432.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.5687, allocations: 47.91 kB / 432.6 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.5704, allocations: 1.41 MB / 434 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004208/0.5709, allocations: 43.45 kB / 434.1 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.5709, allocations: 11.19 kB / 434.1 MB, free: 3.605 MB / 346.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.pulseStart,booleanPulse.pulseStart,$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 (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.0001499/0.5711, allocations: 120.5 kB / 434.2 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.5711, allocations: 23.72 kB / 434.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.996e-05/0.5712, allocations: 31.47 kB / 434.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.5712, allocations: 4 kB / 434.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.5712, allocations: 0 / 434.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5713, allocations: 0 / 434.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.5717, allocations: 324.8 kB / 434.6 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.5718, allocations: 0 / 434.6 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003272/0.5721, allocations: 35.97 kB / 434.6 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/0.5724, allocations: 55.44 kB / 434.7 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.5725, allocations: 15.55 kB / 434.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/0.574, allocations: 1.317 MB / 436 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.574, allocations: 0 / 436 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.575, allocations: 325 kB / 436.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.5752, allocations: 107 kB / 436.4 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.5753, allocations: 7.266 kB / 436.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.5756, allocations: 23.36 kB / 436.5 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.5757, allocations: 35.56 kB / 436.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.5758, allocations: 4 kB / 436.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002077/0.576, allocations: 161.4 kB / 436.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.576, allocations: 0 / 436.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005256/0.5765, allocations: 83 kB / 436.7 MB, free: 0.9961 MB / 346.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.pulseStart,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): 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.00131/0.5779, allocations: 0.8701 MB / 437.6 MB, free: 180 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000717/0.5786, allocations: 262.3 kB / 437.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5786, allocations: 0 / 437.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.579, allocations: 183.3 kB / 438 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.5794, allocations: 46.73 kB / 438.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.5819, allocations: 0.5756 MB / 438.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.5823, allocations: 0.7679 MB / 439.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.5825, allocations: 22.06 kB / 439.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.5827, allocations: 82.97 kB / 439.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5827, allocations: 4 kB / 439.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03437/0.6171, allocations: 4.983 MB / 444.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003439/0.6175, allocations: 184.9 kB / 444.7 MB, free: 9.234 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.482/3.1, allocations: 0 / 444.7 MB, free: 9.234 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat