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 2.158/2.158, allocations: 194.9 MB / 211.2 MB, free: 8.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.299e-05, allocations: 7.984 kB / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3616, allocations: 44.5 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006423/0.3681, allocations: 3.038 MB / 306.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.3712, allocations: 0.862 MB / 307.2 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005738/0.3718, allocations: 13.75 kB / 307.2 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.3721, allocations: 53.08 kB / 307.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008087/0.3729, allocations: 172.9 kB / 307.4 MB, free: 9.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007002/0.3736, allocations: 119.7 kB / 307.6 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.3748, allocations: 359.4 kB / 307.9 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.3752, allocations: 92.47 kB / 308 MB, free: 8.945 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006216/0.3758, allocations: 199.5 kB / 308.2 MB, free: 8.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007349/0.3766, allocations: 243.2 kB / 308.4 MB, free: 8.512 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.3768, allocations: 31.94 kB / 308.5 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.377, allocations: 24 kB / 308.5 MB, free: 8.457 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.3772, allocations: 91.62 kB / 308.6 MB, free: 8.367 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.3774, allocations: 52 kB / 308.6 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.3786, allocations: 0.5842 MB / 309.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3787, allocations: 0 / 309.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.3787, allocations: 0 / 309.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.3787, allocations: 0 / 309.2 MB, free: 7.73 MB / 250.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.00479/0.3835, allocations: 0.8793 MB / 310.1 MB, free: 6.793 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/0.3836, allocations: 8.031 kB / 310.1 MB, free: 6.785 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.3839, allocations: 59.28 kB / 310.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009395/0.3849, allocations: 373 kB / 310.5 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.696e-05/0.385, allocations: 29 kB / 310.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.3852, allocations: 36 kB / 310.6 MB, free: 6.258 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003248/0.3884, allocations: 0.5903 MB / 311.2 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.3885, allocations: 0 / 311.2 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.3886, allocations: 16 kB / 311.2 MB, free: 5.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.3887, allocations: 8 kB / 311.2 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004742/0.3934, allocations: 0.6441 MB / 311.8 MB, free: 4.977 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008171/0.4017, allocations: 2.055 MB / 313.9 MB, free: 2.828 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009481/0.4112, allocations: 0.9249 MB / 314.8 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/0.4114, allocations: 11.94 kB / 314.8 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002626/0.414, allocations: 427.8 kB / 315.2 MB, free: 1.449 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 4.979e-06/0.4141, allocations: 0 / 315.2 MB, free: 1.449 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.02396/0.438, allocations: 2.041 MB / 317.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/0.4382, allocations: 81.11 kB / 317.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008469/0.4391, allocations: 324.9 kB / 317.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.4393, allocations: 37.7 kB / 317.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.4396, allocations: 263.1 kB / 318 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.4399, allocations: 130.1 kB / 318.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.44, allocations: 12 kB / 318.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4401, allocations: 322.8 kB / 318.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002202/0.4424, allocations: 300.6 kB / 318.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.4444, allocations: 350.1 kB / 319.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.4462, allocations: 323.6 kB / 319.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.4462, allocations: 0 / 319.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.008874/0.4551, allocations: 1.155 MB / 320.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.425e-05/0.4552, allocations: 33.7 kB / 320.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.4553, allocations: 3.953 kB / 320.6 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/0.4575, allocations: 424.4 kB / 321 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008776/0.4584, allocations: 99.86 kB / 321.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/0.4734, allocations: 3.614 MB / 324.7 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.4746, allocations: 111.7 kB / 324.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.4748, allocations: 12 kB / 324.8 MB, free: 7.621 MB / 266.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.0003641/0.4751, allocations: 169.7 kB / 325 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.4753, allocations: 39.53 kB / 325 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.4754, allocations: 64.3 kB / 325.1 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.4755, allocations: 4 kB / 325.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4755, allocations: 0 / 325.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4755, allocations: 0 / 325.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.4766, allocations: 0.5833 MB / 325.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4766, allocations: 0 / 325.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.4774, allocations: 95.86 kB / 325.8 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002084/0.4795, allocations: 416.6 kB / 326.2 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.4797, allocations: 15.98 kB / 326.2 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/0.4944, allocations: 3.613 MB / 329.8 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4945, allocations: 0 / 329.8 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008723/0.5032, allocations: 1.4 MB / 331.2 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003995/0.5037, allocations: 168.5 kB / 331.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.5038, allocations: 12 kB / 331.4 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.5048, allocations: 83.92 kB / 331.5 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.5051, allocations: 47.92 kB / 331.5 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.534e-05/0.5052, allocations: 19.94 kB / 331.5 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004397/0.5056, allocations: 255.2 kB / 331.8 MB, free: 444 kB / 266.7 MB Notification: Performance of sort global known variables: time 2.434e-06/0.5056, allocations: 0 / 331.8 MB, free: 444 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009012/0.5065, allocations: 171.6 kB / 331.9 MB, free: 272 kB / 266.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.0002349/0.5068, allocations: 116.6 kB / 332.1 MB, free: 148 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00469/0.5115, allocations: 0.9434 MB / 333 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5116, allocations: 64 / 333 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002777/0.5144, allocations: 0.5704 MB / 333.6 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.5151, allocations: 69.7 kB / 333.6 MB, free: 14.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005122/0.5203, allocations: 1.294 MB / 334.9 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/0.5208, allocations: 0.8391 MB / 335.8 MB, free: 12.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.5211, allocations: 35.42 kB / 335.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5211, allocations: 0 / 335.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of Templates: time 0.02027/0.5414, allocations: 8.742 MB / 344.5 MB, free: 3.566 MB / 282.7 MB