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.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.323e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2778, allocations: 44.5 MB / 294.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.3969, allocations: 75.19 MB / 369.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.3972, allocations: 63.97 kB / 369.4 MB, free: 6.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03367/0.4309, allocations: 8.125 MB / 377.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.934e-06/0.4309, allocations: 0 / 377.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.625e-05/0.431, allocations: 11.94 kB / 377.5 MB, free: 14.54 MB / 330.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.002331/0.4333, allocations: 0.8281 MB / 378.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.4334, allocations: 12.03 kB / 378.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.4336, allocations: 59.28 kB / 378.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007151/0.4343, allocations: 375.5 kB / 378.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.4344, allocations: 16 kB / 378.8 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-05/0.4345, allocations: 20 kB / 378.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001005/0.4355, allocations: 365.5 kB / 379.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.4366, allocations: 403.9 kB / 379.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.4366, allocations: 0 / 379.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.4367, allocations: 7.938 kB / 379.6 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.4367, allocations: 8 kB / 379.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004684/0.4414, allocations: 1.968 MB / 381.5 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003766/0.4452, allocations: 0.7023 MB / 382.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005949/0.4458, allocations: 241.2 kB / 382.5 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.666e-05/0.4459, allocations: 8 kB / 382.5 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00066/0.4466, allocations: 284.1 kB / 382.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.731e-06/0.4466, allocations: 0 / 382.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.00171/0.4483, allocations: 0.5221 MB / 383.3 MB, free: 8.523 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.4484, allocations: 89.05 kB / 383.4 MB, free: 8.418 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/0.4489, allocations: 290.3 kB / 383.7 MB, free: 8.129 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.35e-05/0.449, allocations: 25.7 kB / 383.7 MB, free: 8.098 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.4492, allocations: 270.9 kB / 383.9 MB, free: 7.832 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.4494, allocations: 126.2 kB / 384.1 MB, free: 7.707 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.919e-05/0.4495, allocations: 0 / 384.1 MB, free: 7.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4497, allocations: 326.8 kB / 384.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.4501, allocations: 156.8 kB / 384.5 MB, free: 7.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.4506, allocations: 189.9 kB / 384.7 MB, free: 7.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.451, allocations: 150 kB / 384.9 MB, free: 6.879 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.052e-06/0.451, allocations: 0 / 384.9 MB, free: 6.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001572/0.4526, allocations: 0.5141 MB / 385.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.58e-05/0.4527, allocations: 39.73 kB / 385.4 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.87e-06/0.4527, allocations: 0 / 385.4 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.4539, allocations: 324.7 kB / 385.7 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005806/0.4545, allocations: 99.86 kB / 385.8 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008886/0.4634, allocations: 2.991 MB / 388.8 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008662/0.4643, allocations: 99.81 kB / 388.9 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.4644, allocations: 15.98 kB / 388.9 MB, free: 2.668 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real 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.0002333/0.4646, allocations: 116.8 kB / 389.1 MB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.4648, allocations: 43.44 kB / 389.1 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.4649, allocations: 44.69 kB / 389.1 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.4649, allocations: 8 kB / 389.2 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.043e-06/0.465, allocations: 4 kB / 389.2 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.465, allocations: 7.938 kB / 389.2 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008732/0.4659, allocations: 0.5176 MB / 389.7 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.066e-06/0.4659, allocations: 0 / 389.7 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005734/0.4665, allocations: 91.86 kB / 389.8 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.4676, allocations: 329.5 kB / 390.1 MB, free: 1.473 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.4677, allocations: 7.984 kB / 390.1 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008819/0.4765, allocations: 2.989 MB / 393.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.559e-06/0.4766, allocations: 3.938 kB / 393.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.4788, allocations: 0.7944 MB / 393.9 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.4792, allocations: 168.5 kB / 394.1 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.4793, allocations: 4 kB / 394.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007448/0.48, allocations: 83.88 kB / 394.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.4802, allocations: 47.92 kB / 394.2 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.649e-05/0.4803, allocations: 19.94 kB / 394.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003568/0.4807, allocations: 228.6 kB / 394.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.53e-07/0.4807, allocations: 0 / 394.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008294/0.4815, allocations: 155.7 kB / 394.6 MB, free: 12.83 MB / 346.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.0002163/0.4818, allocations: 111.4 kB / 394.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.4835, allocations: 0.63 MB / 395.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.405e-06/0.4835, allocations: 0 / 395.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.4847, allocations: 425.3 kB / 395.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.4852, allocations: 53.31 kB / 395.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.4881, allocations: 0.7663 MB / 396.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.4887, allocations: 0.8394 MB / 397.4 MB, free: 9.914 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.4889, allocations: 31.42 kB / 397.4 MB, free: 9.883 MB / 346.7 MB Notification: Performance of SimCode: time 1.798e-06/0.4889, allocations: 4 kB / 397.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of Templates: time 0.01547/0.5044, allocations: 8.151 MB / 405.6 MB, free: 1.738 MB / 346.7 MB