Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.148/2.148, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.18e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 50.42 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004415/0.1175, allocations: 2.481 MB / 347.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1194, allocations: 0.6859 MB / 348.1 MB, free: 5.762 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.1198, allocations: 8 kB / 348.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.1199, allocations: 47.67 kB / 348.2 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003392/0.1202, allocations: 111.6 kB / 348.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.1207, allocations: 79.78 kB / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004894/0.1212, allocations: 219.5 kB / 348.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.1214, allocations: 74.06 kB / 348.7 MB, free: 5.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.1217, allocations: 115.8 kB / 348.8 MB, free: 5.117 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.122, allocations: 139.5 kB / 348.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.091e-05/0.1221, allocations: 16 kB / 348.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.1222, allocations: 12 kB / 349 MB, free: 4.953 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.1223, allocations: 51.77 kB / 349 MB, free: 4.902 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1224, allocations: 32 kB / 349 MB, free: 4.871 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.1229, allocations: 307.4 kB / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1229, allocations: 0 / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.837e-06/0.1229, allocations: 3.938 kB / 349.3 MB, free: 4.566 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.123, allocations: 4 kB / 349.3 MB, free: 4.562 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001512/0.1245, allocations: 0.5732 MB / 349.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.1246, allocations: 12.03 kB / 349.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.1247, allocations: 39.53 kB / 350 MB, free: 3.887 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.1252, allocations: 272.1 kB / 350.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1254, allocations: 80.06 kB / 350.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.752e-05/0.1255, allocations: 31.91 kB / 350.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.1264, allocations: 338.7 kB / 350.7 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.1264, allocations: 4 kB / 350.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.895e-05/0.1265, allocations: 19.95 kB / 350.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1265, allocations: 11.94 kB / 350.7 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007145/0.1273, allocations: 218.5 kB / 350.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003217/0.1305, allocations: 1.376 MB / 352.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.1311, allocations: 170.6 kB / 352.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.1311, allocations: 4 kB / 352.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.1316, allocations: 159.5 kB / 352.6 MB, free: 1.027 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.116e-06/0.1316, allocations: 4 kB / 352.6 MB, free: 1.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001882/0.1335, allocations: 423.8 kB / 353 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/0.1336, allocations: 106.8 kB / 353.1 MB, free: 468 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.134, allocations: 241.7 kB / 353.4 MB, free: 224 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.1341, allocations: 25.7 kB / 353.4 MB, free: 192 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.1344, allocations: 266.3 kB / 353.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.664e-05/0.1345, allocations: 67.02 kB / 353.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.1345, allocations: 8 kB / 353.7 MB, free: 15.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1347, allocations: 330.8 kB / 354.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.135, allocations: 76.62 kB / 354.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003821/0.1354, allocations: 173.5 kB / 354.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.1357, allocations: 97.84 kB / 354.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1357, allocations: 0 / 354.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001158/0.1369, allocations: 332.1 kB / 354.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.137, allocations: 4 kB / 354.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.137, allocations: 4 kB / 354.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004073/0.1374, allocations: 64.92 kB / 354.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.1379, allocations: 63.91 kB / 354.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.1399, allocations: 1.408 MB / 356.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.1404, allocations: 47.86 kB / 356.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.1405, allocations: 19.98 kB / 356.3 MB, free: 13.07 MB / 298.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.0002488/0.1407, allocations: 148.4 kB / 356.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.1408, allocations: 35.52 kB / 356.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.526e-05/0.1409, allocations: 34.17 kB / 356.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1409, allocations: 3.938 kB / 356.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1409, allocations: 0 / 356.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.141, allocations: 4 kB / 356.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000554/0.1415, allocations: 337.4 kB / 356.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1415, allocations: 0 / 356.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.142, allocations: 39.94 kB / 356.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003315/0.1423, allocations: 60.75 kB / 357 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.1423, allocations: 0 / 357 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.144, allocations: 1.347 MB / 358.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1441, allocations: 0 / 358.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.1454, allocations: 357.6 kB / 358.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.1456, allocations: 120.8 kB / 358.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.252e-05/0.1457, allocations: 0 / 358.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.146, allocations: 23.98 kB / 358.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1462, allocations: 31.94 kB / 358.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.1462, allocations: 8.062 kB / 358.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002667/0.1465, allocations: 182 kB / 359 MB, free: 10.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1465, allocations: 0 / 359 MB, free: 10.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005788/0.1471, allocations: 87.75 kB / 359.1 MB, free: 10.04 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: 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.0001816/0.1473, allocations: 115.2 kB / 359.2 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.1483, allocations: 317 kB / 359.5 MB, free: 9.602 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.1483, allocations: 0 / 359.5 MB, free: 9.602 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.1488, allocations: 198.5 kB / 359.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.1492, allocations: 32.36 kB / 359.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.1519, allocations: 0.8636 MB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.1523, allocations: 0.7794 MB / 361.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.1525, allocations: 19.44 kB / 361.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1525, allocations: 4 kB / 361.4 MB, free: 7.637 MB / 298.7 MB Notification: Performance of Templates: time 0.01111/0.1636, allocations: 4.465 MB / 365.9 MB, free: 3.168 MB / 298.7 MB