Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.733e-05, allocations: 4 kB / 225 MB, free: 2.824 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2097, allocations: 38.77 MB / 263.8 MB, free: 9.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1028/0.3126, allocations: 68.37 MB / 332.1 MB, free: 5.418 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.3128, allocations: 67.97 kB / 332.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02137/0.3342, allocations: 5.32 MB / 337.5 MB, free: 8 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.005e-06/0.3343, allocations: 0 / 337.5 MB, free: 8 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.3343, allocations: 8 kB / 337.5 MB, free: 0 / 282.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.001029/0.3353, allocations: 0.5323 MB / 338.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3354, allocations: 12.03 kB / 338.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.3355, allocations: 31.62 kB / 338.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.3359, allocations: 254.9 kB / 338.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.336, allocations: 76.14 kB / 338.4 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/0.3361, allocations: 28 kB / 338.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.3368, allocations: 289.9 kB / 338.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3368, allocations: 0 / 338.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.3369, allocations: 12 kB / 338.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.3369, allocations: 4 kB / 338.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.3374, allocations: 181 kB / 338.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.3397, allocations: 1.151 MB / 340.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003981/0.3401, allocations: 154.6 kB / 340.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.3403, allocations: 77.23 kB / 340.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.3403, allocations: 15.94 kB / 340.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.3407, allocations: 158.7 kB / 340.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 5.103e-06/0.3407, allocations: 3.938 kB / 340.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007299/0.3415, allocations: 220.6 kB / 340.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.143e-05/0.3416, allocations: 102.8 kB / 340.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.3419, allocations: 204.8 kB / 341 MB, free: 12.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.3419, allocations: 33.7 kB / 341 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.3421, allocations: 230.5 kB / 341.2 MB, free: 12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.758e-05/0.3422, allocations: 71.08 kB / 341.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.3422, allocations: 4 kB / 341.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3424, allocations: 322.8 kB / 341.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.3426, allocations: 64.56 kB / 341.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.3429, allocations: 119.9 kB / 341.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.3431, allocations: 73.11 kB / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.3431, allocations: 4 kB / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005748/0.3437, allocations: 240.3 kB / 342.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3437, allocations: 4 kB / 342.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.755e-06/0.3437, allocations: 4 kB / 342.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/0.3441, allocations: 56.97 kB / 342.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.3444, allocations: 51.91 kB / 342.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001745/0.3461, allocations: 1.401 MB / 343.6 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.3464, allocations: 39.95 kB / 343.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.3465, allocations: 11.98 kB / 343.7 MB, free: 9.375 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.0001422/0.3467, allocations: 128.8 kB / 343.8 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.3467, allocations: 23.72 kB / 343.8 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.68e-05/0.3468, allocations: 21.97 kB / 343.9 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.967e-06/0.3468, allocations: 4 kB / 343.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3468, allocations: 3.984 kB / 343.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.818e-06/0.3469, allocations: 0 / 343.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.3473, allocations: 333.3 kB / 344.2 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3474, allocations: 0 / 344.2 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.3476, allocations: 35.92 kB / 344.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000256/0.3479, allocations: 52.81 kB / 344.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3479, allocations: 4 kB / 344.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.3495, allocations: 1.331 MB / 345.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.271e-06/0.3495, allocations: 0 / 345.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.3504, allocations: 325.4 kB / 345.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.3506, allocations: 112.8 kB / 346 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.3506, allocations: 4.125 kB / 346.1 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.3509, allocations: 27.98 kB / 346.1 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.351, allocations: 31.94 kB / 346.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.351, allocations: 8 kB / 346.1 MB, free: 6.715 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002129/0.3513, allocations: 161.4 kB / 346.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.57e-07/0.3513, allocations: 0 / 346.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004962/0.3518, allocations: 79.78 kB / 346.4 MB, free: 6.477 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.0001828/0.352, allocations: 123.1 kB / 346.5 MB, free: 6.348 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006273/0.3526, allocations: 257.7 kB / 346.7 MB, free: 6.086 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.233e-06/0.3526, allocations: 4 kB / 346.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.353, allocations: 193.3 kB / 346.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3533, allocations: 32.73 kB / 346.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.3551, allocations: 0.535 MB / 347.5 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.3556, allocations: 0.7635 MB / 348.2 MB, free: 4.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.05e-05/0.3557, allocations: 19.44 kB / 348.3 MB, free: 4.488 MB / 298.7 MB Notification: Performance of SimCode: time 1.769e-06/0.3557, allocations: 4 kB / 348.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of Templates: time 0.007898/0.3636, allocations: 4.032 MB / 352.3 MB, free: 468 kB / 298.7 MB