Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.074e-05/4.072e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1229, allocations: 50.42 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003991/0.1269, allocations: 2.275 MB / 347.3 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.1287, allocations: 0.6625 MB / 347.9 MB, free: 6 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.1288, allocations: 15.94 kB / 347.9 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.22e-05/0.129, allocations: 31.75 kB / 348 MB, free: 5.953 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002911/0.1293, allocations: 99.67 kB / 348.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.1296, allocations: 71.8 kB / 348.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.13, allocations: 191.5 kB / 348.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.1302, allocations: 65.61 kB / 348.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.1304, allocations: 99.75 kB / 348.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.1307, allocations: 119.6 kB / 348.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.1308, allocations: 12 kB / 348.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.1308, allocations: 16 kB / 348.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.116e-05/0.1309, allocations: 59.75 kB / 348.7 MB, free: 5.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.542e-05/0.131, allocations: 32 kB / 348.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003818/0.1314, allocations: 255.5 kB / 349 MB, free: 4.949 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1314, allocations: 0 / 349 MB, free: 4.949 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1314, allocations: 0 / 349 MB, free: 4.949 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1315, allocations: 0 / 349 MB, free: 4.949 MB / 282.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.001308/0.1328, allocations: 0.5396 MB / 349.5 MB, free: 4.363 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1328, allocations: 8.031 kB / 349.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.133, allocations: 43.48 kB / 349.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.1334, allocations: 251.7 kB / 349.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.1336, allocations: 91.97 kB / 349.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1337, allocations: 32 kB / 349.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007633/0.1344, allocations: 289.8 kB / 350.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.1345, allocations: 3.938 kB / 350.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.1345, allocations: 8 kB / 350.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.1346, allocations: 11.95 kB / 350.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/0.1351, allocations: 190.2 kB / 350.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.1379, allocations: 1.139 MB / 351.5 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.1384, allocations: 154.5 kB / 351.7 MB, free: 2.008 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.1385, allocations: 4 kB / 351.7 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004088/0.1389, allocations: 162.3 kB / 351.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.935e-06/0.1389, allocations: 0 / 351.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001695/0.1406, allocations: 393 kB / 352.2 MB, free: 1.418 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.613e-05/0.1408, allocations: 106.8 kB / 352.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.1411, allocations: 200.2 kB / 352.5 MB, free: 1.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.1411, allocations: 29.7 kB / 352.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.1413, allocations: 246.6 kB / 352.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.579e-05/0.1414, allocations: 71 kB / 352.9 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.252e-05/0.1415, allocations: 4 kB / 352.9 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.1417, allocations: 331.1 kB / 353.2 MB, free: 412 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.1419, allocations: 63.97 kB / 353.3 MB, free: 348 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002897/0.1422, allocations: 136.7 kB / 353.4 MB, free: 176 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.1425, allocations: 77.86 kB / 353.5 MB, free: 100 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1425, allocations: 3.938 kB / 353.5 MB, free: 96 kB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007632/0.1433, allocations: 260.2 kB / 353.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.1433, allocations: 8 kB / 353.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.1433, allocations: 0 / 353.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004074/0.1437, allocations: 57.03 kB / 353.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.1442, allocations: 55.91 kB / 353.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.1461, allocations: 1.42 MB / 355.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/0.1466, allocations: 39.73 kB / 355.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.1467, allocations: 12 kB / 355.3 MB, free: 14.11 MB / 298.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.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 (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.0002363/0.1469, allocations: 145.9 kB / 355.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.147, allocations: 23.72 kB / 355.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.008e-05/0.1471, allocations: 26.17 kB / 355.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1471, allocations: 4 kB / 355.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1471, allocations: 0 / 355.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.1471, allocations: 3.953 kB / 355.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004976/0.1476, allocations: 317.4 kB / 355.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.1476, allocations: 4 kB / 355.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/0.148, allocations: 35.98 kB / 355.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/0.1483, allocations: 52.75 kB / 355.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.1484, allocations: 7.984 kB / 355.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.1501, allocations: 1.327 MB / 357.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.1501, allocations: 3.984 kB / 357.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.1512, allocations: 331.6 kB / 357.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.1514, allocations: 116.7 kB / 357.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/0.1515, allocations: 4 kB / 357.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.1518, allocations: 20.05 kB / 357.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.152, allocations: 35.94 kB / 357.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.152, allocations: 11.95 kB / 357.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002265/0.1523, allocations: 160.5 kB / 357.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1523, allocations: 0 / 357.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006139/0.1529, allocations: 79.84 kB / 358 MB, free: 11.2 MB / 298.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.000197/0.1531, allocations: 115.2 kB / 358.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008788/0.154, allocations: 282.5 kB / 358.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.154, allocations: 0 / 358.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.1545, allocations: 197.1 kB / 358.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.1549, allocations: 28.86 kB / 358.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.1577, allocations: 0.8318 MB / 359.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.1582, allocations: 0.7677 MB / 360.2 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.1583, allocations: 23.44 kB / 360.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1583, allocations: 4 kB / 360.2 MB, free: 8.867 MB / 298.7 MB Notification: Performance of Templates: time 0.009962/0.1683, allocations: 4.024 MB / 364.3 MB, free: 4.836 MB / 298.7 MB