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.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.837e-05/2.848e-05, allocations: 0 / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2123, allocations: 38.77 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.3163, allocations: 69.36 MB / 333.1 MB, free: 4.379 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3166, allocations: 75.89 kB / 333.2 MB, free: 4.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02391/0.3405, allocations: 5.987 MB / 339.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.246e-06/0.3406, allocations: 0 / 339.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.3406, allocations: 8 kB / 339.2 MB, free: 14.28 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001136/0.3417, allocations: 0.5771 MB / 339.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3418, allocations: 8.031 kB / 339.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.3419, allocations: 39.53 kB / 339.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.3424, allocations: 271.7 kB / 340.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.3425, allocations: 76.19 kB / 340.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-05/0.3426, allocations: 36 kB / 340.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007035/0.3433, allocations: 314.7 kB / 340.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3433, allocations: 3.938 kB / 340.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.81e-05/0.3434, allocations: 12 kB / 340.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.3434, allocations: 8 kB / 340.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005174/0.3439, allocations: 193.1 kB / 340.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.3466, allocations: 1.41 MB / 342.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000478/0.3471, allocations: 170.6 kB / 342.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.3473, allocations: 76.8 kB / 342.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3474, allocations: 3.984 kB / 342.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003185/0.3477, allocations: 143.8 kB / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 3.143e-06/0.3477, allocations: 0 / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.00072/0.3485, allocations: 222.3 kB / 342.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.964e-05/0.3486, allocations: 106.8 kB / 342.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.3489, allocations: 227.2 kB / 343.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.349, allocations: 29.7 kB / 343.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3492, allocations: 203.7 kB / 343.3 MB, free: 9.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.42e-05/0.3493, allocations: 59.19 kB / 343.4 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.3493, allocations: 12 kB / 343.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3495, allocations: 338.8 kB / 343.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.3497, allocations: 64 kB / 343.8 MB, free: 9.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.3499, allocations: 142.3 kB / 343.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.3502, allocations: 83.23 kB / 344 MB, free: 9.156 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.58e-06/0.3502, allocations: 0 / 344 MB, free: 9.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006418/0.3508, allocations: 273.9 kB / 344.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3509, allocations: 7.984 kB / 344.3 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.983e-06/0.3509, allocations: 4 kB / 344.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.3512, allocations: 57.11 kB / 344.3 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.3516, allocations: 75.89 kB / 344.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.3534, allocations: 1.405 MB / 345.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/0.3537, allocations: 55.84 kB / 345.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.3538, allocations: 16 kB / 345.9 MB, free: 7.129 MB / 298.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: 7 ($whenCondition1,$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 (34): * Single equations (assignments): 33 * 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.0001355/0.3539, allocations: 121.4 kB / 346 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.354, allocations: 27.72 kB / 346 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.002e-05/0.3541, allocations: 33.95 kB / 346 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.563e-06/0.3541, allocations: 7.953 kB / 346 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.751e-06/0.3541, allocations: 0 / 346 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.786e-06/0.3541, allocations: 0 / 346 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004778/0.3546, allocations: 345.2 kB / 346.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.687e-06/0.3546, allocations: 0 / 346.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003526/0.355, allocations: 63.95 kB / 346.4 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.3552, allocations: 48.77 kB / 346.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.3553, allocations: 7.984 kB / 346.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.3568, allocations: 1.327 MB / 347.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.223e-06/0.3568, allocations: 0 / 347.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008541/0.3577, allocations: 325.4 kB / 348.1 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.3579, allocations: 112.8 kB / 348.3 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.975e-05/0.358, allocations: 11.95 kB / 348.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.3582, allocations: 28.03 kB / 348.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.3584, allocations: 27.95 kB / 348.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.3584, allocations: 19.92 kB / 348.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002525/0.3587, allocations: 179.1 kB / 348.5 MB, free: 4.234 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.3587, allocations: 0 / 348.5 MB, free: 4.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005204/0.3592, allocations: 87.78 kB / 348.6 MB, free: 4.148 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: 4 ($whenCondition1,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 (18): * Single equations (assignments): 16 * 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.0001818/0.3594, allocations: 115.2 kB / 348.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.3601, allocations: 269.9 kB / 349 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.05e-06/0.3601, allocations: 0 / 349 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.3605, allocations: 189.6 kB / 349.2 MB, free: 3.555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.3608, allocations: 37.11 kB / 349.2 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3624, allocations: 492.1 kB / 349.7 MB, free: 3.023 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.3629, allocations: 0.7835 MB / 350.5 MB, free: 2.211 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.3631, allocations: 22.08 kB / 350.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.626e-05/0.3632, allocations: 19.44 kB / 350.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of SimCode: time 1.404e-06/0.3632, allocations: 0 / 350.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of Templates: time 0.01239/0.3756, allocations: 2.824 MB / 353.3 MB, free: 15.36 MB / 314.7 MB