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.678/1.678, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.589e-05/3.613e-05, allocations: 7.984 kB / 225 MB, free: 2.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2096, allocations: 38.76 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3129, allocations: 68.74 MB / 332.5 MB, free: 5.043 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.3132, allocations: 71.97 kB / 332.6 MB, free: 4.973 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01855/0.3318, allocations: 4.784 MB / 337.3 MB, free: 176 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.3318, allocations: 0 / 337.3 MB, free: 176 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.3318, allocations: 8 kB / 337.4 MB, free: 168 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.001017/0.3329, allocations: 0.5392 MB / 337.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.3329, allocations: 16.03 kB / 337.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.3331, allocations: 31.62 kB / 337.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.3335, allocations: 275.6 kB / 338.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.3336, allocations: 20.56 kB / 338.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.3336, allocations: 27.95 kB / 338.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006327/0.3343, allocations: 271.5 kB / 338.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3343, allocations: 0 / 338.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.3344, allocations: 12 kB / 338.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.646e-06/0.3344, allocations: 8 kB / 338.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005065/0.3349, allocations: 189 kB / 338.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.3372, allocations: 1.152 MB / 339.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.3378, allocations: 195.1 kB / 340.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000366/0.3382, allocations: 137.2 kB / 340.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.3383, allocations: 8.141 kB / 340.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003456/0.3386, allocations: 157 kB / 340.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 3.617e-06/0.3387, allocations: 0 / 340.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007732/0.3394, allocations: 270.9 kB / 340.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.3396, allocations: 132.5 kB / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.3399, allocations: 217.1 kB / 341 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.34, allocations: 33.7 kB / 341 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3402, allocations: 226.6 kB / 341.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.369e-05/0.3403, allocations: 71 kB / 341.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.3403, allocations: 11.97 kB / 341.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3405, allocations: 314.8 kB / 341.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.3407, allocations: 71.98 kB / 341.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.3409, allocations: 109.2 kB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.3411, allocations: 76 kB / 341.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.158e-06/0.3412, allocations: 0 / 341.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006304/0.3418, allocations: 254.3 kB / 342.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3418, allocations: 8 kB / 342.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.508e-06/0.3419, allocations: 0 / 342.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000446/0.3423, allocations: 96.8 kB / 342.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.3425, allocations: 35.97 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/0.3457, allocations: 1.971 MB / 344.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.346, allocations: 35.89 kB / 344.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.346, allocations: 8 kB / 344.3 MB, free: 8.805 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.0001546/0.3462, allocations: 128.9 kB / 344.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.3463, allocations: 27.7 kB / 344.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.653e-05/0.3464, allocations: 25.97 kB / 344.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.949e-06/0.3464, allocations: 4 kB / 344.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.563e-06/0.3464, allocations: 0 / 344.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.58e-06/0.3464, allocations: 3.984 kB / 344.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.3479, allocations: 0.7959 MB / 345.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3479, allocations: 4 kB / 345.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.3481, allocations: 23.92 kB / 345.3 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.3486, allocations: 88.86 kB / 345.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.3486, allocations: 8.031 kB / 345.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.3517, allocations: 1.936 MB / 347.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.38e-06/0.3517, allocations: 7.969 kB / 347.3 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008996/0.3526, allocations: 442.2 kB / 347.7 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.3528, allocations: 120.8 kB / 347.9 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.3529, allocations: 7.953 kB / 347.9 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.3532, allocations: 23.98 kB / 347.9 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3533, allocations: 32 kB / 347.9 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.3534, allocations: 16 kB / 347.9 MB, free: 4.871 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.3536, allocations: 169.4 kB / 348.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.18e-07/0.3536, allocations: 0 / 348.1 MB, free: 4.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006651/0.3543, allocations: 103.7 kB / 348.2 MB, free: 4.605 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.000185/0.3545, allocations: 106.3 kB / 348.3 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007949/0.3553, allocations: 337.6 kB / 348.6 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.909e-06/0.3554, allocations: 0 / 348.6 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.3559, allocations: 241.6 kB / 348.9 MB, free: 3.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.3563, allocations: 54.11 kB / 348.9 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.3574, allocations: 418.5 kB / 349.3 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.3579, allocations: 0.7716 MB / 350.1 MB, free: 2.625 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.518e-05/0.358, allocations: 19.44 kB / 350.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of SimCode: time 1.913e-06/0.358, allocations: 0 / 350.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of Templates: time 0.00876/0.3668, allocations: 4.467 MB / 354.6 MB, free: 14.15 MB / 314.7 MB "Error: Could not read variable V.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable V.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! Error: Could not read variable idealTriac.idealThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat. Warning: Get data of variable idealTriac.idealThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat failed! " Variables in the reference:time,idealTriac.capacitor.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off Variables in the result:R.LossPower,R.R,R.R_actual,R.T,R.T_heatPort,R.T_ref,R.alpha,R.i,R.n.i,R.n.v,R.p.i,R.p.v,R.v,V.V,V.freqHz,V.i,V.n.i,V.n.v,V.offset,V.p.i,V.p.v,V.phase,V.signalSource.amplitude,V.signalSource.freqHz,V.signalSource.offset,V.signalSource.phase,V.signalSource.startTime,V.signalSource.y,V.startTime,V.v,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ground.p.i,ground.p.v,idealTriac.Cdis,idealTriac.Goff,idealTriac.Rdis,idealTriac.Ron,idealTriac.Vknee,idealTriac.capacitor.C,der(idealTriac.capacitor.v),idealTriac.capacitor.i,idealTriac.capacitor.n.i,idealTriac.capacitor.n.v,idealTriac.capacitor.p.i,idealTriac.capacitor.p.v,idealTriac.capacitor.v,idealTriac.fire1,idealTriac.idealThyristor.Goff,idealTriac.idealThyristor.LossPower,idealTriac.idealThyristor.Ron,idealTriac.idealThyristor.T,idealTriac.idealThyristor.T_heatPort,idealTriac.idealThyristor.Vknee,idealTriac.idealThyristor.fire,idealTriac.idealThyristor.i,idealTriac.idealThyristor.n.i,idealTriac.idealThyristor.n.v,idealTriac.idealThyristor.off,idealTriac.idealThyristor.p.i,idealTriac.idealThyristor.p.v,idealTriac.idealThyristor.v,idealTriac.idealThyristor1.Goff,idealTriac.idealThyristor1.LossPower,idealTriac.idealThyristor1.Ron,idealTriac.idealThyristor1.T,idealTriac.idealThyristor1.T_heatPort,idealTriac.idealThyristor1.Vknee,idealTriac.idealThyristor1.fire,idealTriac.idealThyristor1.i,idealTriac.idealThyristor1.n.i,idealTriac.idealThyristor1.n.v,idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.p.i,idealTriac.idealThyristor1.p.v,idealTriac.idealThyristor1.v,idealTriac.n.i,idealTriac.n.v,idealTriac.p.i,idealTriac.p.v,idealTriac.resistor.LossPower,idealTriac.resistor.R,idealTriac.resistor.R_actual,idealTriac.resistor.T,idealTriac.resistor.T_heatPort,idealTriac.resistor.T_ref,idealTriac.resistor.alpha,idealTriac.resistor.i,idealTriac.resistor.n.i,idealTriac.resistor.n.v,idealTriac.resistor.p.i,idealTriac.resistor.p.v,idealTriac.resistor.v,time