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_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.262e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08555, allocations: 38.77 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004106/0.08971, allocations: 2.302 MB / 269.2 MB, free: 14.8 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.09158, allocations: 0.69 MB / 269.9 MB, free: 14.11 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.09188, allocations: 8 kB / 269.9 MB, free: 14.1 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.775e-05/0.09199, allocations: 31.75 kB / 269.9 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.09234, allocations: 115.6 kB / 270 MB, free: 13.95 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.09264, allocations: 63.91 kB / 270.1 MB, free: 13.89 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.09308, allocations: 199.5 kB / 270.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.09331, allocations: 69.11 kB / 270.4 MB, free: 13.63 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.09357, allocations: 115.6 kB / 270.5 MB, free: 13.52 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.09384, allocations: 119.6 kB / 270.6 MB, free: 13.4 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.787e-05/0.09392, allocations: 12 kB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.691e-05/0.09398, allocations: 12 kB / 270.6 MB, free: 13.38 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.09405, allocations: 43.83 kB / 270.7 MB, free: 13.33 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.09417, allocations: 28 kB / 270.7 MB, free: 13.3 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.09468, allocations: 319.4 kB / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0947, allocations: 0 / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.09472, allocations: 4 kB / 271 MB, free: 12.99 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.09474, allocations: 4 kB / 271 MB, free: 12.98 MB / 234.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.001311/0.09607, allocations: 0.5429 MB / 271.5 MB, free: 12.39 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.09613, allocations: 8.031 kB / 271.6 MB, free: 12.39 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.09626, allocations: 35.62 kB / 271.6 MB, free: 12.35 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005035/0.09678, allocations: 280.1 kB / 271.9 MB, free: 12.04 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.09683, allocations: 24.52 kB / 271.9 MB, free: 12.01 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.162e-05/0.09691, allocations: 27.98 kB / 271.9 MB, free: 11.98 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.09773, allocations: 284.4 kB / 272.2 MB, free: 11.69 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.09777, allocations: 4 kB / 272.2 MB, free: 11.69 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.09783, allocations: 12 kB / 272.2 MB, free: 11.68 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.09785, allocations: 4 kB / 272.2 MB, free: 11.67 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000704/0.09856, allocations: 206.2 kB / 272.4 MB, free: 11.47 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.1014, allocations: 1.156 MB / 273.6 MB, free: 10.23 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008265/0.1023, allocations: 227.1 kB / 273.8 MB, free: 10 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.1023, allocations: 4.188 kB / 273.8 MB, free: 10 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004831/0.1028, allocations: 176.1 kB / 274 MB, free: 9.809 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 2.996e-06/0.1028, allocations: 0 / 274 MB, free: 9.809 MB / 234.7 MB Notification: Performance of matching and sorting (n=22): time 0.002336/0.1052, allocations: 0.5138 MB / 274.5 MB, free: 9.27 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/0.1053, allocations: 106.8 kB / 274.6 MB, free: 9.141 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.1057, allocations: 220.2 kB / 274.8 MB, free: 8.918 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.1058, allocations: 29.7 kB / 274.8 MB, free: 8.883 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.106, allocations: 234.7 kB / 275.1 MB, free: 8.652 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.742e-05/0.1061, allocations: 71 kB / 275.1 MB, free: 8.582 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/0.1061, allocations: 4 kB / 275.1 MB, free: 8.578 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1063, allocations: 322.8 kB / 275.4 MB, free: 8.254 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.1066, allocations: 75.97 kB / 275.5 MB, free: 8.18 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.107, allocations: 146.2 kB / 275.7 MB, free: 8.016 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.1073, allocations: 77.17 kB / 275.7 MB, free: 7.941 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.1073, allocations: 4.031 kB / 275.7 MB, free: 7.938 MB / 234.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009/0.1082, allocations: 296.1 kB / 276 MB, free: 7.641 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.1083, allocations: 4 kB / 276 MB, free: 7.637 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1083, allocations: 0 / 276 MB, free: 7.637 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.1088, allocations: 100.9 kB / 276.1 MB, free: 7.535 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.1092, allocations: 35.92 kB / 276.2 MB, free: 7.5 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004406/0.1136, allocations: 1.952 MB / 278.1 MB, free: 5.41 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.1142, allocations: 35.77 kB / 278.2 MB, free: 5.375 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.1142, allocations: 12.06 kB / 278.2 MB, free: 5.363 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 20 * 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.0003423/0.1146, allocations: 158 kB / 278.3 MB, free: 5.199 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.068e-05/0.1147, allocations: 27.67 kB / 278.3 MB, free: 5.172 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.1148, allocations: 26.19 kB / 278.4 MB, free: 5.145 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.1149, allocations: 4 kB / 278.4 MB, free: 5.141 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1149, allocations: 0 / 278.4 MB, free: 5.141 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.1149, allocations: 3.984 kB / 278.4 MB, free: 5.137 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007152/0.1156, allocations: 353.3 kB / 278.7 MB, free: 4.742 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1156, allocations: 0 / 278.7 MB, free: 4.742 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.116, allocations: 27.92 kB / 278.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006015/0.1166, allocations: 88.8 kB / 278.8 MB, free: 4.625 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.1166, allocations: 7.953 kB / 278.8 MB, free: 4.617 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004532/0.1212, allocations: 1.975 MB / 280.8 MB, free: 2.512 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1213, allocations: 4.062 kB / 280.8 MB, free: 2.508 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.1231, allocations: 412.7 kB / 281.2 MB, free: 2.086 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.1234, allocations: 124.8 kB / 281.4 MB, free: 1.945 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.1236, allocations: 4 kB / 281.4 MB, free: 1.941 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.124, allocations: 32 kB / 281.4 MB, free: 1.91 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.1243, allocations: 31.94 kB / 281.4 MB, free: 1.879 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.1243, allocations: 8 kB / 281.4 MB, free: 1.871 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0003835/0.1247, allocations: 172.5 kB / 281.6 MB, free: 1.703 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.1248, allocations: 0 / 281.6 MB, free: 1.703 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001049/0.1258, allocations: 95.75 kB / 281.7 MB, free: 1.609 MB / 234.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.0002477/0.1261, allocations: 107.2 kB / 281.8 MB, free: 1.492 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.1277, allocations: 365.4 kB / 282.2 MB, free: 1.125 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1278, allocations: 256 / 282.2 MB, free: 1.125 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009103/0.1287, allocations: 270.5 kB / 282.4 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.1294, allocations: 48.52 kB / 282.5 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.1315, allocations: 0.7251 MB / 283.2 MB, free: 52 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005604/0.1321, allocations: 0.7719 MB / 284 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.1323, allocations: 23.38 kB / 284 MB, free: 15.23 MB / 250.7 MB Notification: Performance of SimCode: time 1.342e-06/0.1323, allocations: 0 / 284 MB, free: 15.23 MB / 250.7 MB Notification: Performance of Templates: time 0.01416/0.1465, allocations: 4.492 MB / 288.5 MB, free: 10.74 MB / 250.7 MB