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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 183.4 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.025e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2103, allocations: 38.76 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1189/0.3293, allocations: 68.73 MB / 332.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000378/0.3297, allocations: 75.97 kB / 332.6 MB, free: 4.922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03232/0.3621, allocations: 4.788 MB / 337.4 MB, free: 116 kB / 282.7 MB Notification: Performance of FrontEnd: time 3.077e-06/0.3621, allocations: 0 / 337.4 MB, free: 116 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.548e-05/0.3622, allocations: 8 kB / 337.4 MB, free: 108 kB / 282.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.001644/0.3638, allocations: 0.5314 MB / 337.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/0.3639, allocations: 12.03 kB / 337.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.3641, allocations: 31.62 kB / 338 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006827/0.3648, allocations: 275.6 kB / 338.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.835e-05/0.3649, allocations: 24.56 kB / 338.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.365, allocations: 27.95 kB / 338.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.3661, allocations: 267.5 kB / 338.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.3662, allocations: 3.984 kB / 338.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.3663, allocations: 12 kB / 338.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3663, allocations: 4 kB / 338.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009068/0.3673, allocations: 193 kB / 338.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003971/0.3713, allocations: 1.156 MB / 339.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.3724, allocations: 195.8 kB / 340.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006466/0.373, allocations: 137.2 kB / 340.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.3731, allocations: 4.141 kB / 340.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005888/0.3737, allocations: 168.1 kB / 340.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 6.618e-06/0.3738, allocations: 0 / 340.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001364/0.3751, allocations: 267.7 kB / 340.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.3753, allocations: 132.5 kB / 340.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/0.3759, allocations: 217.1 kB / 341 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.555e-05/0.376, allocations: 33.7 kB / 341 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.3762, allocations: 164.2 kB / 341.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.3764, allocations: 74.94 kB / 341.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.3765, allocations: 8 kB / 341.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.3767, allocations: 334.8 kB / 341.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.3771, allocations: 64 kB / 341.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.3775, allocations: 113.1 kB / 341.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.3779, allocations: 75.33 kB / 341.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.27e-06/0.378, allocations: 4.031 kB / 341.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001217/0.3792, allocations: 270.1 kB / 342.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.3793, allocations: 7.984 kB / 342.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.72e-06/0.3793, allocations: 0 / 342.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/0.3801, allocations: 92.81 kB / 342.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.3805, allocations: 31.88 kB / 342.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005204/0.3857, allocations: 1.983 MB / 344.2 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005493/0.3863, allocations: 31.83 kB / 344.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.143e-05/0.3864, allocations: 16.06 kB / 344.3 MB, free: 8.766 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.3866, allocations: 120.9 kB / 344.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3868, allocations: 23.72 kB / 344.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.3869, allocations: 33.95 kB / 344.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3869, allocations: 0 / 344.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.022e-06/0.387, allocations: 0 / 344.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.387, allocations: 4 kB / 344.4 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.3895, allocations: 0.8037 MB / 345.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.716e-06/0.3896, allocations: 0 / 345.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.3899, allocations: 16 kB / 345.3 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006803/0.3906, allocations: 92.84 kB / 345.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.3907, allocations: 4 kB / 345.4 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00655/0.3972, allocations: 1.94 MB / 347.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.28e-05/0.3973, allocations: 7.922 kB / 347.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.3998, allocations: 446.4 kB / 347.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/0.4003, allocations: 124.7 kB / 347.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.4005, allocations: 11.95 kB / 347.9 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008058/0.4013, allocations: 19.98 kB / 347.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.4017, allocations: 31.95 kB / 347.9 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.821e-05/0.4018, allocations: 11.98 kB / 347.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006672/0.4025, allocations: 169.5 kB / 348.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.146e-06/0.4025, allocations: 4 kB / 348.1 MB, free: 4.668 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001871/0.4044, allocations: 91.83 kB / 348.2 MB, free: 4.578 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * 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.0004767/0.405, allocations: 111.2 kB / 348.3 MB, free: 4.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009667/0.406, allocations: 329.7 kB / 348.6 MB, free: 4.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.406, allocations: 4.062 kB / 348.6 MB, free: 4.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.4066, allocations: 249.5 kB / 348.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.4071, allocations: 48.47 kB / 348.9 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.4081, allocations: 384.8 kB / 349.3 MB, free: 3.426 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.4087, allocations: 0.7716 MB / 350.1 MB, free: 2.629 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.4089, allocations: 26.06 kB / 350.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.4089, allocations: 15.44 kB / 350.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-06/0.409, allocations: 0 / 350.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of Templates: time 0.01272/0.4217, allocations: 4.27 MB / 354.4 MB, free: 14.35 MB / 314.7 MB