Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadModel(Modelica): time 2.329/2.329, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.165e-05, allocations: 8 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 50.4 MB / 345 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003641/0.1177, allocations: 2.138 MB / 347.1 MB, free: 6.824 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.1193, allocations: 0.573 MB / 347.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.1195, allocations: 8 kB / 347.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.658e-05/0.1196, allocations: 31.75 kB / 347.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002667/0.1198, allocations: 87.72 kB / 347.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.1201, allocations: 71.83 kB / 347.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.1205, allocations: 179.6 kB / 348 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1207, allocations: 48.27 kB / 348.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.121, allocations: 115.7 kB / 348.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.1212, allocations: 127.6 kB / 348.3 MB, free: 5.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.1213, allocations: 12 kB / 348.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-05/0.1214, allocations: 16 kB / 348.4 MB, free: 5.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/0.1215, allocations: 43.81 kB / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.1216, allocations: 24 kB / 348.4 MB, free: 5.496 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.122, allocations: 247.5 kB / 348.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.122, allocations: 0 / 348.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.122, allocations: 0 / 348.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.122, allocations: 4 kB / 348.7 MB, free: 5.25 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.002072/0.1241, allocations: 0.581 MB / 349.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.1242, allocations: 15.97 kB / 349.3 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.1243, allocations: 31.67 kB / 349.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.1247, allocations: 259.4 kB / 349.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.1248, allocations: 16.44 kB / 349.6 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-05/0.1248, allocations: 20 kB / 349.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.1259, allocations: 298.6 kB / 349.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.126, allocations: 4 kB / 349.9 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.761e-05/0.126, allocations: 12 kB / 349.9 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.126, allocations: 4 kB / 349.9 MB, free: 3.918 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.1274, allocations: 293.5 kB / 350.2 MB, free: 3.633 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.1302, allocations: 1.077 MB / 351.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.1337, allocations: 486.2 kB / 351.7 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.1338, allocations: 4 kB / 351.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.1339, allocations: 34.56 kB / 351.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 3.016e-06/0.1339, allocations: 0 / 351.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.009104/0.143, allocations: 1.135 MB / 352.9 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.1431, allocations: 51.41 kB / 353 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003331/0.1434, allocations: 191.4 kB / 353.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.1435, allocations: 25.7 kB / 353.2 MB, free: 500 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.1437, allocations: 218.5 kB / 353.4 MB, free: 276 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.443e-05/0.1437, allocations: 51.3 kB / 353.4 MB, free: 224 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-05/0.1438, allocations: 0 / 353.4 MB, free: 224 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.144, allocations: 322.8 kB / 353.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006065/0.1446, allocations: 111.9 kB / 353.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.1452, allocations: 145.5 kB / 354 MB, free: 15.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006398/0.1459, allocations: 114.9 kB / 354.1 MB, free: 15.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1459, allocations: 0 / 354.1 MB, free: 15.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.005367/0.1513, allocations: 0.6815 MB / 354.8 MB, free: 14.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.1514, allocations: 7.953 kB / 354.8 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1514, allocations: 4 kB / 354.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.1526, allocations: 232.7 kB / 355 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.153, allocations: 39.97 kB / 355.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.1651, allocations: 2.669 MB / 357.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005228/0.1657, allocations: 39.86 kB / 357.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.1657, allocations: 7.984 kB / 357.8 MB, free: 11.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.166, allocations: 141.8 kB / 357.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.984e-05/0.166, allocations: 19.75 kB / 357.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.61e-05/0.1661, allocations: 25.52 kB / 358 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1661, allocations: 4 kB / 358 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1661, allocations: 0 / 358 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1662, allocations: 0 / 358 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.1667, allocations: 333.2 kB / 358.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1668, allocations: 3.938 kB / 358.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.1671, allocations: 31.98 kB / 358.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.1682, allocations: 232.6 kB / 358.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.1683, allocations: 11.98 kB / 358.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.1801, allocations: 2.669 MB / 361.2 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1801, allocations: 3.953 kB / 361.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006137/0.1863, allocations: 0.9132 MB / 362.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1865, allocations: 96.81 kB / 362.3 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.1865, allocations: 7.953 kB / 362.3 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.1871, allocations: 40.03 kB / 362.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.506e-05/0.1872, allocations: 11.92 kB / 362.3 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.1872, allocations: 8 kB / 362.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1874, allocations: 161.6 kB / 362.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1874, allocations: 0 / 362.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006077/0.188, allocations: 79.84 kB / 362.6 MB, free: 6.695 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001807/0.1882, allocations: 103.2 kB / 362.7 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.191, allocations: 474.4 kB / 363.1 MB, free: 6.109 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.191, allocations: 4 kB / 363.1 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.193, allocations: 354.4 kB / 363.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.1934, allocations: 32.64 kB / 363.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.1956, allocations: 0.685 MB / 364.2 MB, free: 4.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.196, allocations: 0.7517 MB / 364.9 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.731e-05/0.1961, allocations: 19.42 kB / 365 MB, free: 4.199 MB / 298.7 MB Notification: Performance of SimCode: time 1.332e-06/0.1961, allocations: 0 / 365 MB, free: 4.199 MB / 298.7 MB Notification: Performance of Templates: time 0.009451/0.2056, allocations: 3.924 MB / 368.9 MB, free: 280 kB / 298.7 MB