Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.021e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07899/0.07904, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004979/0.08407, allocations: 3.016 MB / 269.9 MB, free: 14.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.08641, allocations: 0.8616 MB / 270.8 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004174/0.08688, allocations: 8 kB / 270.8 MB, free: 13.22 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.08706, allocations: 63.52 kB / 270.8 MB, free: 13.16 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005869/0.08766, allocations: 167.4 kB / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.08821, allocations: 119.8 kB / 271.1 MB, free: 12.88 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008383/0.08906, allocations: 355.2 kB / 271.5 MB, free: 12.53 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002605/0.08935, allocations: 86.33 kB / 271.6 MB, free: 12.45 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004318/0.0898, allocations: 207.5 kB / 271.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005196/0.09033, allocations: 247.2 kB / 272 MB, free: 12 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.09048, allocations: 24 kB / 272 MB, free: 11.98 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.0906, allocations: 28 kB / 272.1 MB, free: 11.95 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.09074, allocations: 95.62 kB / 272.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.09091, allocations: 47.94 kB / 272.2 MB, free: 11.81 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008815/0.09181, allocations: 0.5845 MB / 272.8 MB, free: 11.22 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.09184, allocations: 4 kB / 272.8 MB, free: 11.22 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.09185, allocations: 0 / 272.8 MB, free: 11.22 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.09189, allocations: 0 / 272.8 MB, free: 11.22 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003881/0.09578, allocations: 0.8792 MB / 273.7 MB, free: 10.29 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.09585, allocations: 8.031 kB / 273.7 MB, free: 10.28 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.09615, allocations: 59.34 kB / 273.7 MB, free: 10.22 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000869/0.09703, allocations: 380.9 kB / 274.1 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.09713, allocations: 25 kB / 274.1 MB, free: 9.781 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.09728, allocations: 32 kB / 274.2 MB, free: 9.75 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.09989, allocations: 0.602 MB / 274.8 MB, free: 9.129 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.09997, allocations: 0 / 274.8 MB, free: 9.129 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.631e-05/0.1001, allocations: 19.94 kB / 274.8 MB, free: 9.109 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.1001, allocations: 8 kB / 274.8 MB, free: 9.102 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003555/0.1037, allocations: 0.6402 MB / 275.4 MB, free: 8.457 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006545/0.1103, allocations: 2.043 MB / 277.5 MB, free: 6.316 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007232/0.1175, allocations: 0.9363 MB / 278.4 MB, free: 5.367 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.684e-05/0.1177, allocations: 8 kB / 278.4 MB, free: 5.359 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002103/0.1198, allocations: 427.8 kB / 278.8 MB, free: 4.926 MB / 234.7 MB Notification: Performance of pre-optimization done (n=39): time 4.549e-06/0.1199, allocations: 0 / 278.8 MB, free: 4.926 MB / 234.7 MB Notification: Performance of matching and sorting (n=39): time 0.01848/0.1384, allocations: 2.041 MB / 280.9 MB, free: 2.855 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.1385, allocations: 85.06 kB / 280.9 MB, free: 2.754 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006236/0.1391, allocations: 328.9 kB / 281.3 MB, free: 2.426 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/0.1393, allocations: 33.7 kB / 281.3 MB, free: 2.387 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.1395, allocations: 267.1 kB / 281.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.1398, allocations: 130 kB / 281.7 MB, free: 1.992 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.1398, allocations: 12 kB / 281.7 MB, free: 1.98 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.14, allocations: 326.8 kB / 282 MB, free: 1.652 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/0.1416, allocations: 300.6 kB / 282.3 MB, free: 1.355 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.1433, allocations: 350.1 kB / 282.7 MB, free: 1.004 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.145, allocations: 323.6 kB / 283 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.145, allocations: 3.938 kB / 283 MB, free: 0.6797 MB / 234.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.008911/0.1539, allocations: 1.151 MB / 284.1 MB, free: 15.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.469e-05/0.1541, allocations: 33.7 kB / 284.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1541, allocations: 0 / 284.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/0.1564, allocations: 420.5 kB / 284.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008999/0.1573, allocations: 91.88 kB / 284.7 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/0.1728, allocations: 3.623 MB / 288.3 MB, free: 11.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.1741, allocations: 111.7 kB / 288.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.1742, allocations: 11.98 kB / 288.4 MB, free: 11.09 MB / 250.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: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003917/0.1746, allocations: 173.9 kB / 288.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.1748, allocations: 43.48 kB / 288.6 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/0.175, allocations: 56.38 kB / 288.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.175, allocations: 4 kB / 288.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.175, allocations: 0 / 288.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.175, allocations: 3.984 kB / 288.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.1762, allocations: 0.5755 MB / 289.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.1762, allocations: 0 / 289.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008868/0.1771, allocations: 99.77 kB / 289.4 MB, free: 10.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/0.1793, allocations: 424.5 kB / 289.8 MB, free: 9.664 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.1794, allocations: 8 kB / 289.8 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/0.1943, allocations: 3.608 MB / 293.4 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1944, allocations: 7.922 kB / 293.4 MB, free: 5.906 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008763/0.2032, allocations: 1.408 MB / 294.8 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004188/0.2036, allocations: 176.4 kB / 295 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.2038, allocations: 12 kB / 295 MB, free: 4.273 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.2048, allocations: 83.92 kB / 295.1 MB, free: 4.191 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.2051, allocations: 47.92 kB / 295.1 MB, free: 4.145 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.174e-05/0.2052, allocations: 12 kB / 295.1 MB, free: 4.133 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004585/0.2056, allocations: 259.2 kB / 295.4 MB, free: 3.883 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.2056, allocations: 0 / 295.4 MB, free: 3.883 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008857/0.2065, allocations: 163.8 kB / 295.5 MB, free: 3.723 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002316/0.2068, allocations: 123.4 kB / 295.7 MB, free: 3.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004756/0.2116, allocations: 0.9394 MB / 296.6 MB, free: 2.625 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.2116, allocations: 0 / 296.6 MB, free: 2.625 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002786/0.2144, allocations: 0.5648 MB / 297.2 MB, free: 2.047 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006968/0.2151, allocations: 69.47 kB / 297.2 MB, free: 1.98 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/0.2203, allocations: 1.292 MB / 298.5 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2006/0.421, allocations: 0.8397 MB / 299.4 MB, free: 30.1 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.4213, allocations: 26.77 kB / 299.4 MB, free: 30.09 MB / 250.7 MB Notification: Performance of SimCode: time 1.623e-06/0.4213, allocations: 3.906 kB / 299.4 MB, free: 30.09 MB / 250.7 MB Notification: Performance of Templates: time 0.02697/0.4483, allocations: 8.765 MB / 308.2 MB, free: 27.88 MB / 250.7 MB