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.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.624e-05, allocations: 3.219 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07512/0.07517, allocations: 44.51 MB / 299.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3228/0.398, allocations: 73.74 MB / 373.6 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.3984, allocations: 68.84 kB / 373.7 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03205/0.4305, allocations: 5.391 MB / 379 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.771e-06/0.4305, allocations: 0 / 379 MB, free: 21.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.4306, allocations: 6.844 kB / 379 MB, free: 21.73 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.00136/0.432, allocations: 0.5384 MB / 379.6 MB, free: 21.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.432, allocations: 9.156 kB / 379.6 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.4322, allocations: 35.91 kB / 379.6 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004794/0.4327, allocations: 248.6 kB / 379.9 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.4328, allocations: 77.12 kB / 380 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.96e-05/0.433, allocations: 29.59 kB / 380 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.434, allocations: 295.9 kB / 380.3 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.434, allocations: 0 / 380.3 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-05/0.4341, allocations: 11.31 kB / 380.3 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.4341, allocations: 6.469 kB / 380.3 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007982/0.4349, allocations: 182.9 kB / 380.5 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.4381, allocations: 1.147 MB / 381.6 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.4388, allocations: 158.3 kB / 381.8 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.4391, allocations: 88.62 kB / 381.9 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.4392, allocations: 2.062 kB / 381.9 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/0.4397, allocations: 149.3 kB / 382 MB, free: 20.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 6.224e-06/0.4397, allocations: 0 / 382 MB, free: 20.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001123/0.4408, allocations: 222.3 kB / 382.2 MB, free: 20.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.702e-05/0.4409, allocations: 109.7 kB / 382.3 MB, free: 19.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.4413, allocations: 203.6 kB / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.4414, allocations: 34.84 kB / 382.6 MB, free: 19.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.4416, allocations: 234.5 kB / 382.8 MB, free: 19.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.341e-05/0.4417, allocations: 64.67 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.4417, allocations: 7.312 kB / 382.9 MB, free: 19.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.797e-05/0.4418, allocations: 325.8 kB / 383.2 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.4421, allocations: 58.75 kB / 383.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004028/0.4425, allocations: 127.9 kB / 383.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/0.4429, allocations: 76.97 kB / 383.4 MB, free: 19.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.702e-06/0.443, allocations: 5.078 kB / 383.4 MB, free: 19.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009654/0.4439, allocations: 237.3 kB / 383.7 MB, free: 19.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.444, allocations: 5.156 kB / 383.7 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.444, allocations: 5.625 kB / 383.7 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005249/0.4446, allocations: 55.47 kB / 383.7 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004705/0.4451, allocations: 51.41 kB / 383.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.4474, allocations: 1.406 MB / 385.2 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006054/0.448, allocations: 44.72 kB / 385.2 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.4481, allocations: 17.3 kB / 385.2 MB, free: 17.75 MB / 314.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.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.00017/0.4483, allocations: 118.3 kB / 385.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.868e-05/0.4484, allocations: 23.53 kB / 385.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.4485, allocations: 29.42 kB / 385.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.701e-06/0.4486, allocations: 5.844 kB / 385.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.4486, allocations: 0 / 385.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.4486, allocations: 1.828 kB / 385.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00066/0.4493, allocations: 324.4 kB / 385.7 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.823e-06/0.4493, allocations: 0 / 385.7 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000442/0.4498, allocations: 33.64 kB / 385.8 MB, free: 17.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000464/0.4503, allocations: 56.11 kB / 385.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.124e-05/0.4504, allocations: 3.078 kB / 385.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/0.4524, allocations: 1.323 MB / 387.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.143e-06/0.4525, allocations: 0 / 387.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.454, allocations: 324.8 kB / 387.5 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.4543, allocations: 116.6 kB / 387.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.4544, allocations: 9.188 kB / 387.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.4547, allocations: 23.02 kB / 387.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4548, allocations: 33.17 kB / 387.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.4549, allocations: 10.88 kB / 387.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.4551, allocations: 161.6 kB / 387.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.4551, allocations: 0 / 387.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005385/0.4556, allocations: 78.59 kB / 387.9 MB, free: 15.85 MB / 314.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.0001544/0.4558, allocations: 119.1 kB / 388 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005908/0.4564, allocations: 282.3 kB / 388.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.545e-06/0.4564, allocations: 0 / 388.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/0.4567, allocations: 191.7 kB / 388.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.4571, allocations: 39.14 kB / 388.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.4587, allocations: 0.5282 MB / 389 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007619/0.4595, allocations: 0.7657 MB / 389.8 MB, free: 30.53 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.4596, allocations: 21.19 kB / 389.8 MB, free: 30.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.587e-06/0.4596, allocations: 0 / 389.8 MB, free: 30.52 MB / 330.7 MB Notification: Performance of Templates: time 0.006923/0.4666, allocations: 4.046 MB / 393.9 MB, free: 30.29 MB / 330.7 MB