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.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.876/1.876, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.435e-05/3.451e-05, allocations: 4 kB / 269.3 MB, free: 6.406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08572, allocations: 47.58 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3323/0.4181, allocations: 78.23 MB / 395.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.4183, allocations: 70.78 kB / 395.2 MB, free: 9.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01855/0.4369, allocations: 4.893 MB / 400.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.97e-06/0.437, allocations: 0 / 400.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.372e-05/0.437, allocations: 10.19 kB / 400.1 MB, free: 5.699 MB / 314.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.0009731/0.438, allocations: 0.5372 MB / 400.7 MB, free: 5.141 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.438, allocations: 8.031 kB / 400.7 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.4381, allocations: 35.53 kB / 400.7 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.4386, allocations: 283.6 kB / 401 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.4386, allocations: 27.83 kB / 401 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.4387, allocations: 26.19 kB / 401 MB, free: 4.773 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.4393, allocations: 270.5 kB / 401.3 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.4393, allocations: 0 / 401.3 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.4394, allocations: 13.38 kB / 401.3 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.984e-06/0.4394, allocations: 4 kB / 401.3 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.4399, allocations: 195.2 kB / 401.5 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.4422, allocations: 1.147 MB / 402.7 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.4428, allocations: 206.1 kB / 402.9 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/0.4432, allocations: 140.2 kB / 403 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.4432, allocations: 12.17 kB / 403 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.4435, allocations: 157.8 kB / 403.2 MB, free: 3.059 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 3.696e-06/0.4436, allocations: 4 kB / 403.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007378/0.4443, allocations: 257.9 kB / 403.4 MB, free: 2.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.4445, allocations: 143.6 kB / 403.6 MB, free: 2.688 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.4448, allocations: 209.5 kB / 403.8 MB, free: 2.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.4448, allocations: 33.52 kB / 403.8 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.445, allocations: 163.7 kB / 404 MB, free: 2.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.4451, allocations: 74.8 kB / 404 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.892e-05/0.4451, allocations: 7.125 kB / 404 MB, free: 2.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4453, allocations: 333.9 kB / 404.4 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4455, allocations: 64.88 kB / 404.4 MB, free: 1.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.4458, allocations: 116.1 kB / 404.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.446, allocations: 67.31 kB / 404.6 MB, free: 1.773 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.164e-06/0.446, allocations: 0 / 404.6 MB, free: 1.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006407/0.4466, allocations: 282 kB / 404.9 MB, free: 1.566 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.4467, allocations: 4 kB / 404.9 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.728e-06/0.4467, allocations: 0 / 404.9 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004513/0.4472, allocations: 97.27 kB / 405 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.4474, allocations: 27.73 kB / 405 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/0.451, allocations: 1.978 MB / 407 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.4516, allocations: 31.45 kB / 407 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.673e-05/0.4517, allocations: 15.92 kB / 407 MB, free: 15.61 MB / 330.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.0002313/0.4519, allocations: 124.5 kB / 407.2 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.4521, allocations: 23.72 kB / 407.2 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.4522, allocations: 33.2 kB / 407.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.01e-06/0.4522, allocations: 0 / 407.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.287e-06/0.4523, allocations: 0 / 407.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.4523, allocations: 4 kB / 407.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.4547, allocations: 0.792 MB / 408 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.4547, allocations: 4 kB / 408 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.455, allocations: 19.98 kB / 408 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005711/0.4556, allocations: 95.84 kB / 408.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.4557, allocations: 0 / 408.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004517/0.4602, allocations: 1.943 MB / 410.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.333e-06/0.4603, allocations: 0 / 410.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.4617, allocations: 437.8 kB / 410.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.462, allocations: 126.8 kB / 410.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.481e-05/0.4621, allocations: 7.391 kB / 410.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/0.4626, allocations: 23.23 kB / 410.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.4628, allocations: 34.69 kB / 410.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/0.4629, allocations: 11.38 kB / 410.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003839/0.4633, allocations: 168.1 kB / 410.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.251e-06/0.4633, allocations: 7.938 kB / 410.9 MB, free: 12.2 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001257/0.4646, allocations: 94.03 kB / 411 MB, free: 12.12 MB / 330.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.0002248/0.4649, allocations: 106.6 kB / 411.1 MB, free: 12.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008077/0.4657, allocations: 335.2 kB / 411.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4657, allocations: 192 / 411.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004812/0.4662, allocations: 246.5 kB / 411.6 MB, free: 11.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.4667, allocations: 52.56 kB / 411.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.4679, allocations: 412.7 kB / 412.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.4684, allocations: 0.7716 MB / 412.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.4686, allocations: 18.08 kB / 412.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.113e-05/0.4686, allocations: 22.94 kB / 412.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of SimCode: time 2.283e-06/0.4686, allocations: 0 / 412.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of Templates: time 0.01245/0.4811, allocations: 4.269 MB / 417.2 MB, free: 6.059 MB / 330.7 MB