Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 210.6 MB, free: 9.312 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.8e-05, allocations: 4 kB / 258.8 MB, free: 9.031 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3319, allocations: 44.5 MB / 303.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003757/0.3357, allocations: 2.322 MB / 305.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3373, allocations: 0.6983 MB / 306.3 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.3375, allocations: 7.906 kB / 306.3 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.71e-05/0.3376, allocations: 40.02 kB / 306.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.338, allocations: 111.9 kB / 306.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.3382, allocations: 55.19 kB / 306.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.3387, allocations: 209 kB / 306.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.3389, allocations: 72.77 kB / 306.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.3391, allocations: 106.1 kB / 306.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.3394, allocations: 119.9 kB / 307 MB, free: 9.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.3395, allocations: 11.69 kB / 307 MB, free: 9.891 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.641e-05/0.3395, allocations: 13.22 kB / 307.1 MB, free: 9.891 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.3396, allocations: 51.12 kB / 307.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.938e-05/0.3397, allocations: 33.06 kB / 307.1 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.3401, allocations: 318 kB / 307.5 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3402, allocations: 0 / 307.5 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3402, allocations: 0 / 307.5 MB, free: 9.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3402, allocations: 4 kB / 307.5 MB, free: 9.574 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00116/0.3414, allocations: 0.543 MB / 308 MB, free: 8.984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3414, allocations: 8.031 kB / 308 MB, free: 8.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.3415, allocations: 39.62 kB / 308 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.342, allocations: 274.4 kB / 308.3 MB, free: 8.629 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.342, allocations: 20.56 kB / 308.3 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.168e-05/0.3421, allocations: 24 kB / 308.4 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007584/0.3429, allocations: 288.5 kB / 308.6 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.3429, allocations: 4 kB / 308.6 MB, free: 8.285 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.343, allocations: 12 kB / 308.7 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.343, allocations: 8 kB / 308.7 MB, free: 8.266 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006589/0.3437, allocations: 202.1 kB / 308.9 MB, free: 8.066 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.3462, allocations: 1.172 MB / 310 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.347, allocations: 223.2 kB / 310.3 MB, free: 6.594 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.3471, allocations: 4.188 kB / 310.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004256/0.3475, allocations: 170.9 kB / 310.4 MB, free: 6.406 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 2.836e-06/0.3475, allocations: 0 / 310.4 MB, free: 6.406 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.002166/0.3497, allocations: 0.5077 MB / 310.9 MB, free: 5.871 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.3498, allocations: 110.8 kB / 311 MB, free: 5.738 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.3501, allocations: 220.2 kB / 311.3 MB, free: 5.516 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.3502, allocations: 25.7 kB / 311.3 MB, free: 5.484 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3504, allocations: 176.3 kB / 311.5 MB, free: 5.309 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-05/0.3505, allocations: 67.08 kB / 311.5 MB, free: 5.242 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.055e-05/0.3505, allocations: 4 kB / 311.5 MB, free: 5.238 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3507, allocations: 338.8 kB / 311.9 MB, free: 4.898 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.3509, allocations: 67.98 kB / 311.9 MB, free: 4.832 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.3513, allocations: 124.5 kB / 312 MB, free: 4.695 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.3515, allocations: 85.08 kB / 312.1 MB, free: 4.613 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3516, allocations: 0 / 312.1 MB, free: 4.613 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008919/0.3525, allocations: 304 kB / 312.4 MB, free: 4.309 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3525, allocations: 4 kB / 312.4 MB, free: 4.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3525, allocations: 3.953 kB / 312.4 MB, free: 4.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/0.353, allocations: 96.73 kB / 312.5 MB, free: 4.203 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.3533, allocations: 27.98 kB / 312.5 MB, free: 4.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00344/0.3568, allocations: 1.959 MB / 314.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.3572, allocations: 31.83 kB / 314.5 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.3572, allocations: 4 kB / 314.5 MB, free: 2.047 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.3575, allocations: 157.9 kB / 314.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.3576, allocations: 27.66 kB / 314.7 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.955e-05/0.3577, allocations: 30.19 kB / 314.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3577, allocations: 4 kB / 314.8 MB, free: 1.824 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3577, allocations: 3.984 kB / 314.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3577, allocations: 0 / 314.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.3582, allocations: 357.2 kB / 315.1 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3582, allocations: 3.938 kB / 315.1 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.3585, allocations: 31.97 kB / 315.1 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004338/0.3589, allocations: 84.81 kB / 315.2 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.359, allocations: 4 kB / 315.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.3622, allocations: 1.956 MB / 317.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3622, allocations: 4.031 kB / 317.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.3634, allocations: 412.3 kB / 317.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001712/0.3636, allocations: 124.8 kB / 317.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.3637, allocations: 4 kB / 317.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.364, allocations: 24.05 kB / 317.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.3642, allocations: 39.88 kB / 317.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.3642, allocations: 7.984 kB / 317.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002422/0.3644, allocations: 176.5 kB / 318 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3645, allocations: 0 / 318 MB, free: 14.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005884/0.3651, allocations: 91.78 kB / 318.1 MB, free: 14.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001674/0.3652, allocations: 112.4 kB / 318.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009975/0.3662, allocations: 362.4 kB / 318.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3663, allocations: 0 / 318.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006367/0.3669, allocations: 266.7 kB / 318.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.3674, allocations: 51.59 kB / 318.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.3691, allocations: 0.7261 MB / 319.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.3695, allocations: 0.7752 MB / 320.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.3697, allocations: 34.2 kB / 320.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.3698, allocations: 15.44 kB / 320.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.3698, allocations: 0 / 320.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01322/0.383, allocations: 4.287 MB / 324.7 MB, free: 7.648 MB / 266.7 MB