Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.819e-05, allocations: 5.562 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08869, allocations: 50.42 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.445, allocations: 80.6 MB / 423.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.4453, allocations: 74.14 kB / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02448/0.4698, allocations: 6.281 MB / 429.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.223e-06/0.4698, allocations: 0 / 429.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.4699, allocations: 11.94 kB / 429.5 MB, free: 8.168 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00107/0.471, allocations: 0.5771 MB / 430.1 MB, free: 7.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.471, allocations: 12.03 kB / 430.1 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.4712, allocations: 35.84 kB / 430.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.4716, allocations: 265.4 kB / 430.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.706e-05/0.4717, allocations: 85.91 kB / 430.5 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.191e-05/0.4718, allocations: 34.39 kB / 430.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006779/0.4725, allocations: 323.9 kB / 430.8 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.4725, allocations: 0 / 430.8 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.927e-05/0.4726, allocations: 20.73 kB / 430.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4726, allocations: 8 kB / 430.8 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.4731, allocations: 196.5 kB / 431 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.4756, allocations: 1.39 MB / 432.4 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.476, allocations: 146.9 kB / 432.6 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.4762, allocations: 77.48 kB / 432.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.4763, allocations: 11.58 kB / 432.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.4766, allocations: 151.2 kB / 432.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.531e-06/0.4766, allocations: 0 / 432.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007326/0.4774, allocations: 224.3 kB / 433 MB, free: 4.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.073e-05/0.4775, allocations: 114.8 kB / 433.1 MB, free: 4.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.4778, allocations: 223.4 kB / 433.4 MB, free: 4.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.4779, allocations: 28.89 kB / 433.4 MB, free: 4.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.4781, allocations: 265.3 kB / 433.6 MB, free: 4.398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.881e-05/0.4782, allocations: 67.39 kB / 433.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.796e-05/0.4782, allocations: 6.625 kB / 433.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4784, allocations: 321.8 kB / 434 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.4786, allocations: 71.62 kB / 434.1 MB, free: 3.977 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.4788, allocations: 155.5 kB / 434.3 MB, free: 3.816 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.479, allocations: 75.8 kB / 434.3 MB, free: 3.766 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.753e-06/0.4791, allocations: 3.938 kB / 434.3 MB, free: 3.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008153/0.4799, allocations: 299.8 kB / 434.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4799, allocations: 7.984 kB / 434.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.823e-06/0.4799, allocations: 11.92 kB / 434.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002992/0.4803, allocations: 52.42 kB / 434.7 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.4806, allocations: 67.03 kB / 434.8 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/0.4823, allocations: 1.4 MB / 436.2 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.4827, allocations: 54.8 kB / 436.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.4828, allocations: 8 kB / 436.2 MB, free: 1.859 MB / 346.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: 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 (36): * Single equations (assignments): 35 * 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.0001485/0.4829, allocations: 127.8 kB / 436.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.276e-05/0.483, allocations: 35.55 kB / 436.4 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.4831, allocations: 31.28 kB / 436.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.665e-06/0.4831, allocations: 0 / 436.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.402e-06/0.4831, allocations: 0 / 436.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.627e-06/0.4831, allocations: 3.984 kB / 436.4 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.4836, allocations: 341.7 kB / 436.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-06/0.4836, allocations: 4 kB / 436.8 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.4839, allocations: 43.34 kB / 436.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002509/0.4842, allocations: 50.75 kB / 436.8 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.4842, allocations: 0 / 436.8 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.4858, allocations: 1.331 MB / 438.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.24e-06/0.4858, allocations: 0 / 438.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008391/0.4867, allocations: 329.3 kB / 438.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.4868, allocations: 111.7 kB / 438.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.4869, allocations: 7.375 kB / 438.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.4872, allocations: 27.42 kB / 438.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.4873, allocations: 27.33 kB / 438.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.4873, allocations: 11.73 kB / 438.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.4876, allocations: 178.9 kB / 438.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.4876, allocations: 0 / 438.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005509/0.4881, allocations: 98.31 kB / 439 MB, free: 15.19 MB / 362.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.000176/0.4883, allocations: 115.1 kB / 439.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006359/0.489, allocations: 272.7 kB / 439.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.85e-06/0.489, allocations: 0 / 439.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.4894, allocations: 191.1 kB / 439.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.4897, allocations: 50.92 kB / 439.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.4912, allocations: 0.51 MB / 440.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.4918, allocations: 0.776 MB / 440.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.4919, allocations: 27.42 kB / 440.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.726e-06/0.4919, allocations: 0 / 440.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of Templates: time 0.008511/0.5004, allocations: 4.467 MB / 445.3 MB, free: 8.883 MB / 362.7 MB