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.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.834e-05, allocations: 4 kB / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3047, allocations: 44.49 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004275/0.309, allocations: 2.511 MB / 305.8 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.3111, allocations: 0.716 MB / 306.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.3114, allocations: 8.312 kB / 306.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.3115, allocations: 40.98 kB / 306.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003439/0.3118, allocations: 115 kB / 306.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.3123, allocations: 71.86 kB / 306.7 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.3128, allocations: 220.6 kB / 307 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.313, allocations: 84.56 kB / 307 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.3133, allocations: 116.4 kB / 307.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.3136, allocations: 129.2 kB / 307.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.3137, allocations: 17.81 kB / 307.3 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.3137, allocations: 15.31 kB / 307.3 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.032e-05/0.3138, allocations: 57.88 kB / 307.4 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.3139, allocations: 38.28 kB / 307.4 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.3144, allocations: 304.1 kB / 307.7 MB, free: 9.277 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3144, allocations: 4 kB / 307.7 MB, free: 9.273 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3144, allocations: 0 / 307.7 MB, free: 9.273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3145, allocations: 0 / 307.7 MB, free: 9.273 MB / 250.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.001373/0.3158, allocations: 0.5801 MB / 308.3 MB, free: 8.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.3159, allocations: 8.031 kB / 308.3 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.316, allocations: 39.58 kB / 308.3 MB, free: 8.598 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.3165, allocations: 276 kB / 308.6 MB, free: 8.285 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.3166, allocations: 72.06 kB / 308.7 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/0.3167, allocations: 36 kB / 308.7 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.3176, allocations: 330.8 kB / 309 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3177, allocations: 7.984 kB / 309 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.226e-05/0.3177, allocations: 12 kB / 309.1 MB, free: 7.809 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/0.3177, allocations: 8 kB / 309.1 MB, free: 7.801 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007302/0.3185, allocations: 226.5 kB / 309.3 MB, free: 7.574 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002932/0.3214, allocations: 1.38 MB / 310.7 MB, free: 6.094 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005085/0.322, allocations: 166.5 kB / 310.8 MB, free: 5.922 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.322, allocations: 15.97 kB / 310.8 MB, free: 5.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004287/0.3225, allocations: 162.1 kB / 311 MB, free: 5.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.474e-06/0.3225, allocations: 3.938 kB / 311 MB, free: 5.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001798/0.3243, allocations: 416.6 kB / 311.4 MB, free: 5.293 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.3244, allocations: 111.2 kB / 311.5 MB, free: 5.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003602/0.3248, allocations: 225.9 kB / 311.7 MB, free: 4.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.3248, allocations: 29.7 kB / 311.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.325, allocations: 270.2 kB / 312 MB, free: 4.629 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.719e-05/0.3251, allocations: 63.11 kB / 312.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.289e-05/0.3252, allocations: 8 kB / 312.1 MB, free: 4.559 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3253, allocations: 322.8 kB / 312.4 MB, free: 4.234 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.3256, allocations: 88.61 kB / 312.5 MB, free: 4.148 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.326, allocations: 169.5 kB / 312.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.3263, allocations: 97.11 kB / 312.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.3263, allocations: 4 kB / 312.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001123/0.3275, allocations: 332 kB / 313.1 MB, free: 3.512 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.3275, allocations: 8 kB / 313.1 MB, free: 3.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3275, allocations: 0 / 313.1 MB, free: 3.504 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003683/0.3279, allocations: 60.75 kB / 313.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004784/0.3284, allocations: 72 kB / 313.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.3303, allocations: 1.416 MB / 314.6 MB, free: 1.824 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.3308, allocations: 43.67 kB / 314.7 MB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.3309, allocations: 16 kB / 314.7 MB, free: 1.766 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (38): * Single equations (assignments): 37 * 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.0002458/0.3311, allocations: 155 kB / 314.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.3312, allocations: 23.72 kB / 314.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.647e-05/0.3313, allocations: 34.12 kB / 314.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3313, allocations: 0 / 314.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3313, allocations: 4 kB / 314.9 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3313, allocations: 0 / 314.9 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004967/0.3318, allocations: 341.3 kB / 315.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3319, allocations: 0 / 315.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003751/0.3322, allocations: 39.92 kB / 315.3 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/0.3326, allocations: 52.81 kB / 315.3 MB, free: 1.066 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.3326, allocations: 8 kB / 315.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.3343, allocations: 1.339 MB / 316.7 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3343, allocations: 0 / 316.7 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3355, allocations: 356.8 kB / 317 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.3357, allocations: 116.7 kB / 317.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/0.3358, allocations: 11.89 kB / 317.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.3362, allocations: 28.05 kB / 317.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.3363, allocations: 27.95 kB / 317.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.3364, allocations: 7.984 kB / 317.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002662/0.3366, allocations: 182 kB / 317.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3367, allocations: 0 / 317.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005616/0.3372, allocations: 87.78 kB / 317.5 MB, free: 14.75 MB / 266.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.0001883/0.3374, allocations: 115.2 kB / 317.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009868/0.3384, allocations: 310.4 kB / 317.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3385, allocations: 0.6875 kB / 317.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004747/0.339, allocations: 202.6 kB / 318.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.3393, allocations: 36.42 kB / 318.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.342, allocations: 0.8554 MB / 319 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.3424, allocations: 0.7755 MB / 319.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.3426, allocations: 27.42 kB / 319.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3426, allocations: 0 / 319.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Templates: time 0.01081/0.3534, allocations: 4.461 MB / 324.3 MB, free: 7.887 MB / 266.7 MB