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_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.919e-05/2.93e-05, allocations: 4 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.08922, allocations: 50.42 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.444, allocations: 79.85 MB / 422.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.4443, allocations: 69.16 kB / 422.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01876/0.4631, allocations: 5.073 MB / 427.6 MB, free: 9.977 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.112e-06/0.4631, allocations: 4 kB / 427.6 MB, free: 9.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.071e-05/0.4632, allocations: 4 kB / 427.6 MB, free: 9.969 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.0009949/0.4642, allocations: 0.5319 MB / 428.1 MB, free: 9.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.4642, allocations: 8.031 kB / 428.1 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.824e-05/0.4643, allocations: 39.09 kB / 428.1 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.4648, allocations: 266 kB / 428.4 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.4648, allocations: 20.19 kB / 428.4 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.391e-05/0.4649, allocations: 34.78 kB / 428.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005913/0.4655, allocations: 271.5 kB / 428.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4656, allocations: 0 / 428.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.4656, allocations: 14.52 kB / 428.7 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.613e-06/0.4656, allocations: 4 kB / 428.7 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.4661, allocations: 191.5 kB / 428.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.4683, allocations: 1.151 MB / 430.1 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.4689, allocations: 199 kB / 430.3 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.4692, allocations: 141.3 kB / 430.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.4693, allocations: 4.188 kB / 430.4 MB, free: 7.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/0.4696, allocations: 160.1 kB / 430.6 MB, free: 7.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.945e-06/0.4696, allocations: 0 / 430.6 MB, free: 7.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007223/0.4704, allocations: 262.7 kB / 430.8 MB, free: 7.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.891e-05/0.4705, allocations: 132.5 kB / 431 MB, free: 6.992 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.4708, allocations: 224.1 kB / 431.2 MB, free: 6.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.4709, allocations: 29.02 kB / 431.2 MB, free: 6.773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.471, allocations: 167.9 kB / 431.4 MB, free: 6.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/0.4711, allocations: 66.16 kB / 431.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.4712, allocations: 3.812 kB / 431.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.4714, allocations: 337 kB / 431.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.4715, allocations: 68.06 kB / 431.8 MB, free: 6.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.4718, allocations: 115.1 kB / 431.9 MB, free: 6.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.472, allocations: 65.3 kB / 432 MB, free: 6.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.954e-06/0.472, allocations: 0 / 432 MB, free: 6.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006235/0.4726, allocations: 275.1 kB / 432.3 MB, free: 5.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4727, allocations: 8.125 kB / 432.3 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.4727, allocations: 4 kB / 432.3 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004266/0.4731, allocations: 100.1 kB / 432.4 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.4733, allocations: 27.92 kB / 432.4 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.4763, allocations: 1.993 MB / 434.4 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.4766, allocations: 34.83 kB / 434.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.4766, allocations: 7.438 kB / 434.4 MB, free: 3.902 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.0001337/0.4768, allocations: 117.1 kB / 434.6 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/0.4768, allocations: 35.67 kB / 434.6 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.616e-05/0.4769, allocations: 31.89 kB / 434.6 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.04e-06/0.4769, allocations: 4 kB / 434.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-06/0.4769, allocations: 0 / 434.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.675e-06/0.477, allocations: 0 / 434.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.4783, allocations: 0.7857 MB / 435.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4783, allocations: 3.938 kB / 435.4 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.4785, allocations: 24.12 kB / 435.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003448/0.4789, allocations: 88.62 kB / 435.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.4789, allocations: 6.859 kB / 435.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002832/0.4818, allocations: 1.936 MB / 437.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.748e-06/0.4818, allocations: 32 / 437.5 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007972/0.4826, allocations: 450.3 kB / 437.9 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.4828, allocations: 126.4 kB / 438 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.4828, allocations: 3.25 kB / 438 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.4831, allocations: 27.53 kB / 438.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.4833, allocations: 39.7 kB / 438.1 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.4833, allocations: 10.88 kB / 438.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002263/0.4836, allocations: 175.5 kB / 438.3 MB, free: 500 kB / 346.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.4836, allocations: 0 / 438.3 MB, free: 500 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006118/0.4842, allocations: 86.59 kB / 438.4 MB, free: 420 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.0001894/0.4844, allocations: 122.5 kB / 438.5 MB, free: 292 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007377/0.4852, allocations: 329.2 kB / 438.8 MB, free: 28 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.507e-06/0.4852, allocations: 4 kB / 438.8 MB, free: 24 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.4857, allocations: 250.4 kB / 439.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.4861, allocations: 51.75 kB / 439.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.4873, allocations: 398.1 kB / 439.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.4878, allocations: 0.7716 MB / 440.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.4879, allocations: 26.05 kB / 440.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.488, allocations: 19.44 kB / 440.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.398e-06/0.488, allocations: 0 / 440.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01243/0.5004, allocations: 4.269 MB / 444.6 MB, free: 10.38 MB / 362.7 MB