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_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 2.131/2.131, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.102e-05, allocations: 7.906 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3063, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004111/0.3105, allocations: 2.326 MB / 305.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.3125, allocations: 0.6944 MB / 306.3 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.3128, allocations: 8.125 kB / 306.3 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.3129, allocations: 35.77 kB / 306.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000381/0.3133, allocations: 111.7 kB / 306.5 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.3137, allocations: 60.78 kB / 306.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004542/0.3141, allocations: 208.5 kB / 306.7 MB, free: 9.988 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.3144, allocations: 68.52 kB / 306.8 MB, free: 9.941 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.3146, allocations: 105.6 kB / 306.9 MB, free: 9.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003009/0.315, allocations: 119.9 kB / 307 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.103e-05/0.315, allocations: 15.78 kB / 307 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.3151, allocations: 12.47 kB / 307 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.3152, allocations: 47.94 kB / 307.1 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.397e-05/0.3153, allocations: 29.5 kB / 307.1 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.3158, allocations: 313.4 kB / 307.4 MB, free: 9.539 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3158, allocations: 0 / 307.4 MB, free: 9.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3158, allocations: 1.156 kB / 307.4 MB, free: 9.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.3158, allocations: 0 / 307.4 MB, free: 9.539 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.001286/0.3171, allocations: 0.5472 MB / 308 MB, free: 8.969 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.3172, allocations: 16.02 kB / 308 MB, free: 8.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3173, allocations: 31.62 kB / 308 MB, free: 8.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004892/0.3178, allocations: 278.3 kB / 308.3 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.3179, allocations: 24.5 kB / 308.3 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-05/0.318, allocations: 24 kB / 308.3 MB, free: 8.562 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007982/0.3188, allocations: 292.5 kB / 308.6 MB, free: 8.262 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.3188, allocations: 0 / 308.6 MB, free: 8.262 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.3189, allocations: 8 kB / 308.6 MB, free: 8.254 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.3189, allocations: 8 kB / 308.6 MB, free: 8.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006779/0.3196, allocations: 206.2 kB / 308.8 MB, free: 8.043 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.3224, allocations: 1.164 MB / 310 MB, free: 6.805 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/0.3233, allocations: 227.2 kB / 310.2 MB, free: 6.574 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.3234, allocations: 4.188 kB / 310.2 MB, free: 6.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004695/0.3239, allocations: 163 kB / 310.4 MB, free: 6.395 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 3.256e-06/0.3239, allocations: 4 kB / 310.4 MB, free: 6.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.002289/0.3262, allocations: 0.5155 MB / 310.9 MB, free: 5.848 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.3263, allocations: 106.8 kB / 311 MB, free: 5.719 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.3267, allocations: 216.2 kB / 311.2 MB, free: 5.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.3267, allocations: 25.7 kB / 311.2 MB, free: 5.469 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.327, allocations: 234.8 kB / 311.5 MB, free: 5.238 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.592e-05/0.3271, allocations: 71.08 kB / 311.5 MB, free: 5.168 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.3271, allocations: 8 kB / 311.6 MB, free: 5.16 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3273, allocations: 318.8 kB / 311.9 MB, free: 4.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.3276, allocations: 71.98 kB / 311.9 MB, free: 4.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.3279, allocations: 124.5 kB / 312.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.3282, allocations: 89.17 kB / 312.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3282, allocations: 0 / 312.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008532/0.3291, allocations: 288 kB / 312.4 MB, free: 4.258 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.3291, allocations: 4.938 kB / 312.4 MB, free: 4.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3291, allocations: 11.95 kB / 312.4 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000532/0.3297, allocations: 88.8 kB / 312.5 MB, free: 4.152 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.33, allocations: 27.98 kB / 312.6 MB, free: 4.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00351/0.3335, allocations: 1.948 MB / 314.5 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004189/0.334, allocations: 39.83 kB / 314.5 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.334, allocations: 4 kB / 314.5 MB, free: 2 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.0002503/0.3343, allocations: 157.9 kB / 314.7 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.3343, allocations: 27.66 kB / 314.7 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-05/0.3344, allocations: 26.19 kB / 314.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3345, allocations: 7.984 kB / 314.8 MB, free: 1.777 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3345, allocations: 0 / 314.8 MB, free: 1.777 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3345, allocations: 4 kB / 314.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006037/0.3351, allocations: 357.2 kB / 315.1 MB, free: 1.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.3351, allocations: 7.984 kB / 315.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.3354, allocations: 23.92 kB / 315.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.3358, allocations: 84.81 kB / 315.2 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.3359, allocations: 7.938 kB / 315.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.3394, allocations: 1.967 MB / 317.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3395, allocations: 0 / 317.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.3408, allocations: 416.3 kB / 317.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.341, allocations: 124.8 kB / 317.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/0.3411, allocations: 4 kB / 317.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.3414, allocations: 23.98 kB / 317.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.3416, allocations: 35.88 kB / 317.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.3416, allocations: 4 kB / 317.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002557/0.3419, allocations: 180.5 kB / 318 MB, free: 14.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3419, allocations: 0 / 318 MB, free: 14.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006093/0.3425, allocations: 95.69 kB / 318.1 MB, free: 14.24 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.0001796/0.3427, allocations: 111.2 kB / 318.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.3438, allocations: 358.5 kB / 318.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3439, allocations: 0 / 318.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006371/0.3445, allocations: 262.6 kB / 318.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.345, allocations: 52.91 kB / 318.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.3469, allocations: 0.748 MB / 319.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.3474, allocations: 0.779 MB / 320.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.3475, allocations: 23.42 kB / 320.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of SimCode: time 1.403e-06/0.3475, allocations: 0 / 320.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Templates: time 0.0108/0.3583, allocations: 4.499 MB / 324.9 MB, free: 7.348 MB / 266.7 MB