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 1.971/1.971, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.265e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3242, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.4362, allocations: 73.32 MB / 367.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.4365, allocations: 75.95 kB / 367.5 MB, free: 8.586 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01783/0.4543, allocations: 4.82 MB / 372.3 MB, free: 3.742 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.077e-06/0.4544, allocations: 0 / 372.3 MB, free: 3.742 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.4544, allocations: 8 kB / 372.3 MB, free: 3.734 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.0009744/0.4554, allocations: 0.5353 MB / 372.9 MB, free: 3.152 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4554, allocations: 12.03 kB / 372.9 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.206e-05/0.4556, allocations: 31.62 kB / 372.9 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.456, allocations: 279.1 kB / 373.2 MB, free: 2.797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.456, allocations: 8 kB / 373.2 MB, free: 2.789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.4561, allocations: 19.94 kB / 373.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004789/0.4566, allocations: 173.1 kB / 373.4 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.4572, allocations: 247.4 kB / 373.6 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4572, allocations: 0 / 373.6 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.4572, allocations: 0 / 373.6 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.486e-06/0.4573, allocations: 8 kB / 373.6 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.4594, allocations: 1.087 MB / 374.7 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005751/0.46, allocations: 199.3 kB / 374.9 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.4604, allocations: 129.2 kB / 375 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.4604, allocations: 4.172 kB / 375 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.4608, allocations: 164.3 kB / 375.2 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.757e-06/0.4608, allocations: 0 / 375.2 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007011/0.4615, allocations: 235.6 kB / 375.4 MB, free: 432 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.841e-05/0.4616, allocations: 132.5 kB / 375.6 MB, free: 268 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.4619, allocations: 203.9 kB / 375.8 MB, free: 52 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.462, allocations: 29.73 kB / 375.8 MB, free: 16 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.4622, allocations: 234.5 kB / 376 MB, free: 15.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.875e-05/0.4623, allocations: 59.11 kB / 376.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.4623, allocations: 0 / 376.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4625, allocations: 322.8 kB / 376.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.4626, allocations: 63.94 kB / 376.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.4629, allocations: 109.1 kB / 376.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.463, allocations: 63.97 kB / 376.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.134e-06/0.4631, allocations: 0 / 376.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005774/0.4636, allocations: 242.2 kB / 376.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.4637, allocations: 11.94 kB / 376.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4637, allocations: 4 kB / 376.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.4641, allocations: 92.88 kB / 377 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.4643, allocations: 27.92 kB / 377 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.4673, allocations: 1.928 MB / 378.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/0.4676, allocations: 27.92 kB / 378.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.4676, allocations: 7.984 kB / 379 MB, free: 12.69 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.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.0001406/0.4678, allocations: 116.9 kB / 379.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.946e-05/0.4679, allocations: 19.72 kB / 379.1 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.134e-05/0.468, allocations: 37.97 kB / 379.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.758e-06/0.468, allocations: 3.984 kB / 379.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.174e-06/0.468, allocations: 4 kB / 379.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.528e-06/0.468, allocations: 0 / 379.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.4693, allocations: 0.7146 MB / 379.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.4694, allocations: 112 / 379.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.4696, allocations: 27.86 kB / 379.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003685/0.4699, allocations: 88.83 kB / 380 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.47, allocations: 7.938 kB / 380 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002758/0.4728, allocations: 1.857 MB / 381.8 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.322e-06/0.4728, allocations: 4.016 kB / 381.8 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008129/0.4736, allocations: 434.7 kB / 382.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.4738, allocations: 116.9 kB / 382.4 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.21e-05/0.4739, allocations: 4.109 kB / 382.4 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.4742, allocations: 31.94 kB / 382.4 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.4743, allocations: 31.94 kB / 382.4 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.4743, allocations: 8 kB / 382.4 MB, free: 8.973 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002073/0.4746, allocations: 156.5 kB / 382.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.4746, allocations: 0 / 382.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006486/0.4752, allocations: 83.75 kB / 382.7 MB, free: 8.738 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.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.0001859/0.4754, allocations: 111.7 kB / 382.8 MB, free: 8.621 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007676/0.4762, allocations: 325.4 kB / 383.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.625e-06/0.4762, allocations: 0 / 383.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004643/0.4767, allocations: 229.8 kB / 383.3 MB, free: 8.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.4771, allocations: 55.5 kB / 383.4 MB, free: 8.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.4783, allocations: 414 kB / 383.8 MB, free: 7.574 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.4788, allocations: 0.7755 MB / 384.6 MB, free: 6.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.244e-05/0.4789, allocations: 19.44 kB / 384.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4789, allocations: 0 / 384.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of Templates: time 0.008588/0.4875, allocations: 4.335 MB / 388.9 MB, free: 2.422 MB / 330.7 MB