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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.849e-05, allocations: 5.406 kB / 292.7 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08953/0.08958, allocations: 50.41 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.354/0.4436, allocations: 79.87 MB / 422.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.4439, allocations: 78.88 kB / 423 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01863/0.4625, allocations: 5.055 MB / 428.1 MB, free: 9.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4626, allocations: 0 / 428.1 MB, free: 9.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.436e-05/0.4626, allocations: 11.98 kB / 428.1 MB, free: 9.957 MB / 346.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.0009857/0.4636, allocations: 0.5405 MB / 428.6 MB, free: 9.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4637, allocations: 12.03 kB / 428.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.839e-05/0.4638, allocations: 35.53 kB / 428.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.4642, allocations: 267.7 kB / 428.9 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.4643, allocations: 24 kB / 429 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.4643, allocations: 27.34 kB / 429 MB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.465, allocations: 276.6 kB / 429.3 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.465, allocations: 0 / 429.3 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.465, allocations: 10.7 kB / 429.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.833e-06/0.4651, allocations: 8 kB / 429.3 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.4655, allocations: 187.4 kB / 429.5 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.4677, allocations: 1.15 MB / 430.6 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005924/0.4683, allocations: 198.6 kB / 430.8 MB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.4687, allocations: 146.3 kB / 430.9 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.4687, allocations: 4.188 kB / 431 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.4691, allocations: 161.2 kB / 431.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.918e-06/0.4691, allocations: 0 / 431.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000733/0.4698, allocations: 263.1 kB / 431.4 MB, free: 7.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.47, allocations: 132.5 kB / 431.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.4703, allocations: 218.7 kB / 431.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.4703, allocations: 29.45 kB / 431.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.4705, allocations: 169.2 kB / 431.9 MB, free: 6.609 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.924e-05/0.4706, allocations: 65.53 kB / 432 MB, free: 6.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.4706, allocations: 3.938 kB / 432 MB, free: 6.555 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.4708, allocations: 333.1 kB / 432.3 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.471, allocations: 69.23 kB / 432.4 MB, free: 6.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.4712, allocations: 111.5 kB / 432.5 MB, free: 6.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.4714, allocations: 74.06 kB / 432.5 MB, free: 6.051 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.2e-06/0.4715, allocations: 0 / 432.5 MB, free: 6.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006278/0.4721, allocations: 275 kB / 432.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.4721, allocations: 4 kB / 432.8 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.626e-06/0.4721, allocations: 4 kB / 432.8 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004288/0.4726, allocations: 98.62 kB / 432.9 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.4728, allocations: 31.23 kB / 432.9 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.4758, allocations: 1.979 MB / 434.9 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.4761, allocations: 35.11 kB / 435 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.4762, allocations: 7.375 kB / 435 MB, free: 3.895 MB / 346.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.pulseStart,booleanPulse.pulseStart,$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.0001343/0.4763, allocations: 119.1 kB / 435.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.4764, allocations: 35.59 kB / 435.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.648e-05/0.4765, allocations: 24.59 kB / 435.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.4765, allocations: 4 kB / 435.1 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.762e-06/0.4765, allocations: 4 kB / 435.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.063e-06/0.4765, allocations: 7.922 kB / 435.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.4779, allocations: 0.7926 MB / 436 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.191e-06/0.4779, allocations: 4 kB / 436 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.4781, allocations: 27.55 kB / 436 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003578/0.4785, allocations: 86.34 kB / 436.1 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.4785, allocations: 7.75 kB / 436.1 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.4814, allocations: 1.931 MB / 438 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.388e-06/0.4814, allocations: 0 / 438 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008152/0.4822, allocations: 453.8 kB / 438.4 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.4824, allocations: 120 kB / 438.6 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.482e-05/0.4825, allocations: 7.125 kB / 438.6 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.4828, allocations: 23.3 kB / 438.6 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.4829, allocations: 35.81 kB / 438.6 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.4829, allocations: 11.75 kB / 438.6 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002279/0.4832, allocations: 177.9 kB / 438.8 MB, free: 484 kB / 346.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.4832, allocations: 0 / 438.8 MB, free: 484 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006305/0.4838, allocations: 86.66 kB / 438.9 MB, free: 404 kB / 346.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.pulseStart,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.0001861/0.484, allocations: 117.3 kB / 439 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000745/0.4848, allocations: 331.6 kB / 439.3 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.371e-06/0.4848, allocations: 4.188 kB / 439.3 MB, free: 12 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.4853, allocations: 243.3 kB / 439.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.4858, allocations: 54.98 kB / 439.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.4869, allocations: 403.3 kB / 440 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.4875, allocations: 0.7716 MB / 440.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.4876, allocations: 22.08 kB / 440.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.158e-05/0.4877, allocations: 19.44 kB / 440.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.422e-06/0.4877, allocations: 0 / 440.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of Templates: time 0.0124/0.5001, allocations: 4.262 MB / 445.1 MB, free: 10.37 MB / 362.7 MB