Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.755e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3184, allocations: 44.49 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.4501, allocations: 73.09 MB / 367.3 MB, free: 8.762 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.4505, allocations: 67.97 kB / 367.4 MB, free: 8.695 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02324/0.4737, allocations: 5.341 MB / 372.7 MB, free: 3.332 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4738, allocations: 0 / 372.7 MB, free: 3.332 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.4738, allocations: 8 kB / 372.7 MB, free: 3.324 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001246/0.4751, allocations: 0.5482 MB / 373.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.4751, allocations: 8.031 kB / 373.3 MB, free: 2.723 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.4753, allocations: 39.62 kB / 373.3 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.4757, allocations: 242.6 kB / 373.6 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.4758, allocations: 68.19 kB / 373.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-05/0.4759, allocations: 19.91 kB / 373.6 MB, free: 2.309 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005454/0.4765, allocations: 169.5 kB / 373.8 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.4771, allocations: 245.9 kB / 374.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.4771, allocations: 0 / 374.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.02e-05/0.4772, allocations: 4 kB / 374.1 MB, free: 1.883 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.4772, allocations: 8 kB / 374.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002606/0.4798, allocations: 1.072 MB / 375.1 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.4803, allocations: 142.6 kB / 375.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.4805, allocations: 76.89 kB / 375.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.4805, allocations: 352 / 375.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.4809, allocations: 151.2 kB / 375.5 MB, free: 344 kB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.264e-06/0.4809, allocations: 4.219 kB / 375.5 MB, free: 340 kB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000879/0.4818, allocations: 196.7 kB / 375.7 MB, free: 136 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/0.4819, allocations: 114.8 kB / 375.8 MB, free: 16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.4821, allocations: 162 kB / 376 MB, free: 15.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.4822, allocations: 29.7 kB / 376 MB, free: 15.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.4824, allocations: 187.8 kB / 376.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/0.4824, allocations: 55.17 kB / 376.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.4825, allocations: 0 / 376.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4826, allocations: 330.8 kB / 376.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.4828, allocations: 60.5 kB / 376.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.4831, allocations: 115.9 kB / 376.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.4833, allocations: 65.14 kB / 376.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4833, allocations: 3.938 kB / 376.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005991/0.4839, allocations: 228.4 kB / 377 MB, free: 14.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4839, allocations: 11.95 kB / 377 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4839, allocations: 0 / 377 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003799/0.4843, allocations: 56.81 kB / 377.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.4847, allocations: 51.91 kB / 377.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.4864, allocations: 1.376 MB / 378.5 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/0.4869, allocations: 31.86 kB / 378.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.4869, allocations: 8 kB / 378.6 MB, free: 13.07 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.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.0001899/0.4871, allocations: 116.7 kB / 378.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006885/0.4878, allocations: 210.2 kB / 378.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/0.4879, allocations: 19.81 kB / 378.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.242e-05/0.488, allocations: 21.97 kB / 378.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.488, allocations: 3.984 kB / 378.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.488, allocations: 0 / 378.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.488, allocations: 3.984 kB / 378.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004251/0.4885, allocations: 273.9 kB / 379.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4885, allocations: 4 kB / 379.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.4888, allocations: 35.92 kB / 379.2 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/0.4891, allocations: 48.81 kB / 379.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.4892, allocations: 4 kB / 379.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.4906, allocations: 1.276 MB / 380.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4906, allocations: 160 / 380.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.4916, allocations: 310.5 kB / 380.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4917, allocations: 112.9 kB / 381 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.601e-05/0.4918, allocations: 4 kB / 381 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.4921, allocations: 20.05 kB / 381 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.4922, allocations: 31.94 kB / 381 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.4922, allocations: 4 kB / 381 MB, free: 10.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.4924, allocations: 132.3 kB / 381.2 MB, free: 10.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4924, allocations: 0 / 381.2 MB, free: 10.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005769/0.493, allocations: 83.69 kB / 381.2 MB, free: 10.17 MB / 330.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.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.001255/0.4943, allocations: 0.8487 MB / 382.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006814/0.495, allocations: 265.7 kB / 382.3 MB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.495, allocations: 0 / 382.3 MB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003718/0.4954, allocations: 185.6 kB / 382.5 MB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.4957, allocations: 27.92 kB / 382.6 MB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.4982, allocations: 0.5423 MB / 383.1 MB, free: 8.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.4986, allocations: 0.7633 MB / 383.9 MB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000167/0.4987, allocations: 26.05 kB / 383.9 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.499, allocations: 83.36 kB / 384 MB, free: 7.336 MB / 330.7 MB Notification: Performance of SimCode: time 1.113e-06/0.499, allocations: 0 / 384 MB, free: 7.336 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04576/0.5447, allocations: 4.091 MB / 388.1 MB, free: 3.266 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000275/0.5451, allocations: 145.3 kB / 388.2 MB, free: 3.066 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/3.038, allocations: 0 / 388.2 MB, free: 3.066 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat