Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.524e-05, allocations: 4 kB / 292.1 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.08936, allocations: 50.41 MB / 342.5 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.35/0.4394, allocations: 79.64 MB / 422.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.4397, allocations: 70.41 kB / 422.2 MB, free: 14.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02228/0.462, allocations: 5.567 MB / 427.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.462, allocations: 0 / 427.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.4621, allocations: 4 kB / 427.8 MB, free: 9.691 MB / 346.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.001012/0.4631, allocations: 0.5342 MB / 428.4 MB, free: 9.129 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4631, allocations: 8.031 kB / 428.4 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.498e-05/0.4633, allocations: 35.62 kB / 428.4 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.4636, allocations: 249.7 kB / 428.6 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.4638, allocations: 85.09 kB / 428.7 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.4638, allocations: 37.84 kB / 428.8 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.4645, allocations: 290.2 kB / 429 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.4645, allocations: 3.953 kB / 429 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.4646, allocations: 8.438 kB / 429.1 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.4646, allocations: 8 kB / 429.1 MB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.4651, allocations: 180 kB / 429.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.4672, allocations: 1.134 MB / 430.4 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.4676, allocations: 156.1 kB / 430.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.4678, allocations: 78.61 kB / 430.6 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.4679, allocations: 7.938 kB / 430.6 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003197/0.4682, allocations: 147.2 kB / 430.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.169e-06/0.4682, allocations: 0 / 430.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007139/0.4689, allocations: 222.9 kB / 431 MB, free: 6.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.469, allocations: 111.1 kB / 431.1 MB, free: 6.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.4693, allocations: 212.3 kB / 431.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.4694, allocations: 28.95 kB / 431.3 MB, free: 6.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.4696, allocations: 232.2 kB / 431.5 MB, free: 6.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.365e-05/0.4697, allocations: 61.28 kB / 431.6 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.4697, allocations: 3.438 kB / 431.6 MB, free: 6.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4699, allocations: 324.6 kB / 431.9 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.47, allocations: 63.25 kB / 432 MB, free: 5.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.4703, allocations: 123.9 kB / 432.1 MB, free: 5.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.4705, allocations: 73.39 kB / 432.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.36e-06/0.4705, allocations: 0 / 432.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005534/0.4711, allocations: 239 kB / 432.4 MB, free: 5.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.4711, allocations: 8 kB / 432.4 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.387e-06/0.4711, allocations: 0 / 432.4 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003045/0.4714, allocations: 59.22 kB / 432.5 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.4717, allocations: 43.92 kB / 432.5 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.4735, allocations: 1.419 MB / 433.9 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.4738, allocations: 43.48 kB / 434 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.4738, allocations: 15.97 kB / 434 MB, free: 3.863 MB / 346.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.pulseStart,booleanPulse.pulseStart,$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.0001372/0.474, allocations: 115.1 kB / 434.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.4741, allocations: 19.81 kB / 434.1 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.161e-05/0.4741, allocations: 32.64 kB / 434.2 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.724e-06/0.4742, allocations: 3.953 kB / 434.2 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.4742, allocations: 0 / 434.2 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.37e-06/0.4742, allocations: 3.984 kB / 434.2 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004514/0.4747, allocations: 319 kB / 434.5 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.229e-06/0.4747, allocations: 4 kB / 434.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.4749, allocations: 31.98 kB / 434.5 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002492/0.4752, allocations: 55.06 kB / 434.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.4752, allocations: 7.5 kB / 434.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.4768, allocations: 1.314 MB / 435.9 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.625e-06/0.4768, allocations: 12.12 kB / 435.9 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008192/0.4776, allocations: 320.7 kB / 436.2 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.4778, allocations: 110.6 kB / 436.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.4779, allocations: 3.25 kB / 436.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.4781, allocations: 31.69 kB / 436.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4783, allocations: 35.55 kB / 436.4 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.4783, allocations: 7.25 kB / 436.4 MB, free: 1.469 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001981/0.4785, allocations: 162.1 kB / 436.6 MB, free: 1.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.33e-07/0.4785, allocations: 3.938 kB / 436.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005058/0.479, allocations: 80.66 kB / 436.6 MB, free: 1.254 MB / 346.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.pulseStart,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.0001744/0.4792, allocations: 110.7 kB / 436.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006054/0.4799, allocations: 264.6 kB / 437 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.021e-06/0.4799, allocations: 0 / 437 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.4802, allocations: 185.7 kB / 437.2 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.4805, allocations: 38.41 kB / 437.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.4822, allocations: 0.5439 MB / 437.8 MB, free: 196 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.4827, allocations: 0.7679 MB / 438.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.176e-05/0.4828, allocations: 23.38 kB / 438.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.38e-06/0.4828, allocations: 0 / 438.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of Templates: time 0.008098/0.491, allocations: 4.033 MB / 442.6 MB, free: 11.38 MB / 362.7 MB