Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.948e-05, allocations: 7.906 kB / 258.8 MB, free: 8.051 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.401, allocations: 44.5 MB / 303.3 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005907/0.407, allocations: 2.505 MB / 305.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.4096, allocations: 0.7161 MB / 306.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.4099, allocations: 8.469 kB / 306.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.4101, allocations: 46.16 kB / 306.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.4106, allocations: 118.3 kB / 306.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.4111, allocations: 70.77 kB / 306.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006387/0.4118, allocations: 224.2 kB / 307 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.4121, allocations: 74.25 kB / 307.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.4124, allocations: 119.7 kB / 307.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.4128, allocations: 127.6 kB / 307.3 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.4129, allocations: 12 kB / 307.3 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.471e-05/0.413, allocations: 16 kB / 307.3 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.4131, allocations: 63.73 kB / 307.4 MB, free: 9.516 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.4133, allocations: 36 kB / 307.4 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005917/0.4139, allocations: 301.5 kB / 307.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4139, allocations: 0 / 307.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.414, allocations: 0 / 307.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.414, allocations: 0 / 307.7 MB, free: 9.188 MB / 250.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.001808/0.4158, allocations: 0.581 MB / 308.3 MB, free: 8.555 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.4159, allocations: 8.031 kB / 308.3 MB, free: 8.547 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.4161, allocations: 39.58 kB / 308.4 MB, free: 8.508 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.4167, allocations: 272 kB / 308.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.4169, allocations: 80.05 kB / 308.7 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.4171, allocations: 36 kB / 308.7 MB, free: 8.074 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.4183, allocations: 330.7 kB / 309.1 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.4184, allocations: 4 kB / 309.1 MB, free: 7.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.376e-05/0.4185, allocations: 8 kB / 309.1 MB, free: 7.723 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.4185, allocations: 11.98 kB / 309.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.4199, allocations: 234.5 kB / 309.3 MB, free: 7.477 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004793/0.4248, allocations: 1.383 MB / 310.7 MB, free: 5.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007384/0.4256, allocations: 165.6 kB / 310.9 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.4257, allocations: 4 kB / 310.9 MB, free: 5.82 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006103/0.4263, allocations: 163.4 kB / 311 MB, free: 5.641 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 3.847e-06/0.4263, allocations: 0 / 311 MB, free: 5.641 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.002634/0.429, allocations: 427.4 kB / 311.4 MB, free: 5.199 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.4291, allocations: 111.2 kB / 311.6 MB, free: 5.066 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.4297, allocations: 221.9 kB / 311.8 MB, free: 4.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.4298, allocations: 29.7 kB / 311.8 MB, free: 4.805 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.4301, allocations: 219.7 kB / 312 MB, free: 4.586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.4302, allocations: 63.09 kB / 312.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.4302, allocations: 4 kB / 312.1 MB, free: 4.52 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.4305, allocations: 342.8 kB / 312.4 MB, free: 4.176 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004787/0.431, allocations: 84.61 kB / 312.5 MB, free: 4.094 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/0.4315, allocations: 165.5 kB / 312.7 MB, free: 3.891 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.4319, allocations: 101.1 kB / 312.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4319, allocations: 0 / 312.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001193/0.4331, allocations: 347.9 kB / 313.1 MB, free: 3.445 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.4331, allocations: 8.938 kB / 313.1 MB, free: 3.438 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.4332, allocations: 0 / 313.1 MB, free: 3.438 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.4336, allocations: 64.75 kB / 313.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.4341, allocations: 68 kB / 313.2 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.436, allocations: 1.412 MB / 314.6 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004881/0.4365, allocations: 51.66 kB / 314.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.4366, allocations: 8 kB / 314.7 MB, free: 1.703 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (38): * Single equations (assignments): 37 * 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.0002539/0.4369, allocations: 150 kB / 314.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.939e-05/0.4369, allocations: 31.7 kB / 314.9 MB, free: 1.516 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.966e-05/0.437, allocations: 30.14 kB / 314.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.437, allocations: 4 kB / 314.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.437, allocations: 0 / 314.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.4371, allocations: 3.984 kB / 314.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.4376, allocations: 341.3 kB / 315.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.4376, allocations: 0 / 315.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.438, allocations: 43.91 kB / 315.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003777/0.4384, allocations: 56.75 kB / 315.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.4384, allocations: 8 kB / 315.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.4403, allocations: 1.335 MB / 316.7 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4403, allocations: 3.938 kB / 316.7 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.4415, allocations: 349.8 kB / 317 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.4417, allocations: 112.8 kB / 317.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.69e-05/0.4418, allocations: 11.94 kB / 317.2 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.4422, allocations: 24.05 kB / 317.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.4423, allocations: 27.95 kB / 317.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.4423, allocations: 11.98 kB / 317.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002779/0.4426, allocations: 178 kB / 317.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4426, allocations: 0 / 317.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006046/0.4433, allocations: 95.69 kB / 317.5 MB, free: 14.68 MB / 266.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.0001875/0.4435, allocations: 112.7 kB / 317.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009511/0.4444, allocations: 321.4 kB / 317.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4444, allocations: 0.6875 kB / 317.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004758/0.4449, allocations: 202.6 kB / 318.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.4453, allocations: 28.55 kB / 318.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.4478, allocations: 0.8264 MB / 319 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.4482, allocations: 0.7794 MB / 319.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002285/0.4485, allocations: 26.28 kB / 319.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.444e-05/0.4486, allocations: 23.44 kB / 319.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4486, allocations: 0 / 319.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01128/0.4599, allocations: 2.694 MB / 322.5 MB, free: 9.609 MB / 266.7 MB