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 2.285/2.285, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.651e-05/3.65e-05, allocations: 8 kB / 258.8 MB, free: 8.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3364, allocations: 44.5 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004077/0.3406, allocations: 2.287 MB / 305.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.3426, allocations: 0.7005 MB / 306.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.3429, allocations: 11.84 kB / 306.3 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.3431, allocations: 36.23 kB / 306.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004539/0.3436, allocations: 99.03 kB / 306.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.3441, allocations: 78.56 kB / 306.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.3445, allocations: 192.4 kB / 306.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.3448, allocations: 63.67 kB / 306.8 MB, free: 9.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.345, allocations: 105.4 kB / 306.9 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.3453, allocations: 114.6 kB / 307 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.243e-05/0.3454, allocations: 13.06 kB / 307 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.3454, allocations: 13.09 kB / 307 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-05/0.3455, allocations: 53.12 kB / 307 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3456, allocations: 30.78 kB / 307.1 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.346, allocations: 254.8 kB / 307.3 MB, free: 9.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3461, allocations: 0 / 307.3 MB, free: 9.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3461, allocations: 4 kB / 307.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.3461, allocations: 0 / 307.3 MB, free: 9.609 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001388/0.3475, allocations: 0.5424 MB / 307.9 MB, free: 9.07 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.3476, allocations: 12.03 kB / 307.9 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.3477, allocations: 31.62 kB / 307.9 MB, free: 9.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.3483, allocations: 263.1 kB / 308.2 MB, free: 8.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.3484, allocations: 72.06 kB / 308.2 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.7e-05/0.3485, allocations: 28 kB / 308.3 MB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008057/0.3493, allocations: 301.7 kB / 308.6 MB, free: 8.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3494, allocations: 0 / 308.6 MB, free: 8.312 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.3494, allocations: 12 kB / 308.6 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3494, allocations: 11.94 kB / 308.6 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005917/0.35, allocations: 182.2 kB / 308.8 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002926/0.353, allocations: 1.147 MB / 309.9 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.3535, allocations: 158.6 kB / 310.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.411e-05/0.3536, allocations: 4.344 kB / 310.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004104/0.354, allocations: 159.5 kB / 310.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 3.577e-06/0.3541, allocations: 0 / 310.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001762/0.3558, allocations: 395.7 kB / 310.6 MB, free: 6.125 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.356, allocations: 106.8 kB / 310.7 MB, free: 5.996 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.3564, allocations: 200.2 kB / 310.9 MB, free: 5.797 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.711e-05/0.3564, allocations: 33.64 kB / 310.9 MB, free: 5.758 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.3567, allocations: 242.5 kB / 311.2 MB, free: 5.516 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.412e-05/0.3568, allocations: 63.14 kB / 311.2 MB, free: 5.453 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/0.3568, allocations: 8 kB / 311.3 MB, free: 5.445 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.357, allocations: 330.8 kB / 311.6 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.3572, allocations: 59.97 kB / 311.6 MB, free: 5.055 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.3576, allocations: 136.8 kB / 311.8 MB, free: 4.891 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.3579, allocations: 81.12 kB / 311.8 MB, free: 4.812 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.3579, allocations: 4 kB / 311.9 MB, free: 4.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007661/0.3587, allocations: 260.2 kB / 312.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.3587, allocations: 4 kB / 312.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.3587, allocations: 4 kB / 312.1 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.3592, allocations: 60.75 kB / 312.2 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003908/0.3596, allocations: 55.91 kB / 312.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.3616, allocations: 1.405 MB / 313.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.3621, allocations: 47.7 kB / 313.7 MB, free: 2.836 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.3622, allocations: 8 kB / 313.7 MB, free: 2.828 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (34): * Single equations (assignments): 33 * 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.0002522/0.3624, allocations: 149.7 kB / 313.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.3625, allocations: 20 kB / 313.9 MB, free: 2.652 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.765e-05/0.3626, allocations: 30.17 kB / 313.9 MB, free: 2.625 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3626, allocations: 0 / 313.9 MB, free: 2.625 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.3626, allocations: 4 kB / 313.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3626, allocations: 0 / 313.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005272/0.3632, allocations: 325.3 kB / 314.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3632, allocations: 0 / 314.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.3635, allocations: 31.98 kB / 314.2 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003129/0.3639, allocations: 60.75 kB / 314.3 MB, free: 2.16 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/0.3639, allocations: 4 kB / 314.3 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.3657, allocations: 1.335 MB / 315.6 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3657, allocations: 0 / 315.6 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.3668, allocations: 337.6 kB / 316 MB, free: 340 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.367, allocations: 112.8 kB / 316.1 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.3671, allocations: 4 kB / 316.1 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.3674, allocations: 19.98 kB / 316.1 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3675, allocations: 31.94 kB / 316.1 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.3676, allocations: 12.05 kB / 316.1 MB, free: 140 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002457/0.3678, allocations: 156.5 kB / 316.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3678, allocations: 4 kB / 316.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005371/0.3684, allocations: 79.75 kB / 316.4 MB, free: 15.9 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: 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.0001985/0.3686, allocations: 119.2 kB / 316.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008432/0.3694, allocations: 285.8 kB / 316.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3695, allocations: 4.062 kB / 316.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.3699, allocations: 186.6 kB / 317 MB, free: 15.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.3703, allocations: 36.38 kB / 317 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.3731, allocations: 0.8356 MB / 317.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.3735, allocations: 0.7638 MB / 318.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.3737, allocations: 19.44 kB / 318.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of SimCode: time 1.322e-06/0.3737, allocations: 0 / 318.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Templates: time 0.00991/0.3836, allocations: 4.038 MB / 322.6 MB, free: 9.531 MB / 266.7 MB