Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.837e-05/2.844e-05, allocations: 4 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.08957, allocations: 50.42 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3531/0.4427, allocations: 79.91 MB / 422.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.443, allocations: 71.09 kB / 422.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01894/0.462, allocations: 5.066 MB / 427.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.08e-06/0.462, allocations: 0 / 427.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.878e-05/0.4621, allocations: 4 kB / 427.6 MB, free: 9.922 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.0009995/0.4631, allocations: 0.5422 MB / 428.1 MB, free: 9.355 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4631, allocations: 8.031 kB / 428.1 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.978e-05/0.4632, allocations: 39.53 kB / 428.2 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.4637, allocations: 268.5 kB / 428.4 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.4637, allocations: 20.25 kB / 428.5 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.147e-05/0.4638, allocations: 27.59 kB / 428.5 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.4644, allocations: 272.1 kB / 428.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.4644, allocations: 0 / 428.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.4645, allocations: 15.39 kB / 428.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.4645, allocations: 4 kB / 428.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004761/0.465, allocations: 193.8 kB / 429 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.4671, allocations: 1.145 MB / 430.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005798/0.4677, allocations: 202.8 kB / 430.3 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003547/0.4681, allocations: 146.7 kB / 430.5 MB, free: 7.441 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.4682, allocations: 4.188 kB / 430.5 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.4685, allocations: 152.4 kB / 430.6 MB, free: 7.301 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.245e-05/0.4685, allocations: 0 / 430.6 MB, free: 7.301 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000759/0.4693, allocations: 268.1 kB / 430.9 MB, free: 7.094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.4694, allocations: 132.5 kB / 431 MB, free: 6.934 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.4697, allocations: 213.7 kB / 431.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.4698, allocations: 33.06 kB / 431.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.47, allocations: 225.3 kB / 431.5 MB, free: 6.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.463e-05/0.4701, allocations: 68.39 kB / 431.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.969e-05/0.4701, allocations: 7.562 kB / 431.5 MB, free: 6.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.4703, allocations: 322.3 kB / 431.9 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.4705, allocations: 65.56 kB / 431.9 MB, free: 6.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.4707, allocations: 117 kB / 432 MB, free: 6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.4709, allocations: 64.27 kB / 432.1 MB, free: 5.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.235e-06/0.4709, allocations: 0 / 432.1 MB, free: 5.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006072/0.4715, allocations: 269.1 kB / 432.4 MB, free: 5.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.4716, allocations: 4 kB / 432.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4716, allocations: 8 kB / 432.4 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.472, allocations: 91.56 kB / 432.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.4722, allocations: 36.02 kB / 432.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.4752, allocations: 1.977 MB / 434.5 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.4755, allocations: 39.33 kB / 434.5 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.4756, allocations: 19.36 kB / 434.5 MB, free: 3.801 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.0001348/0.4757, allocations: 116 kB / 434.6 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.4758, allocations: 23.77 kB / 434.7 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.4759, allocations: 30.58 kB / 434.7 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4759, allocations: 4 kB / 434.7 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.918e-06/0.4759, allocations: 0 / 434.7 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.406e-06/0.4759, allocations: 0 / 434.7 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.4772, allocations: 0.7938 MB / 435.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4773, allocations: 0 / 435.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.4774, allocations: 27.92 kB / 435.5 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.4778, allocations: 88.02 kB / 435.6 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.4779, allocations: 4 kB / 435.6 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002796/0.4807, allocations: 1.947 MB / 437.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.96e-06/0.4807, allocations: 0 / 437.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000804/0.4815, allocations: 454 kB / 438 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.4817, allocations: 115.3 kB / 438.1 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.4818, allocations: 7.75 kB / 438.1 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.482, allocations: 19.23 kB / 438.1 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.4822, allocations: 42.88 kB / 438.2 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.4822, allocations: 12 kB / 438.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002276/0.4825, allocations: 176.2 kB / 438.4 MB, free: 400 kB / 346.7 MB Notification: Performance of sort global known variables: time 7.9e-07/0.4825, allocations: 0 / 438.4 MB, free: 400 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006221/0.4831, allocations: 91.56 kB / 438.4 MB, free: 316 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.0001761/0.4833, allocations: 111.1 kB / 438.6 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000757/0.4841, allocations: 336.6 kB / 438.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.746e-06/0.4841, allocations: 0 / 438.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004651/0.4846, allocations: 242.6 kB / 439.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.485, allocations: 53.44 kB / 439.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.4862, allocations: 434.4 kB / 439.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.4867, allocations: 0.7677 MB / 440.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.4868, allocations: 23.44 kB / 440.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of SimCode: time 1.469e-06/0.4868, allocations: 0 / 440.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of Templates: time 0.008602/0.4954, allocations: 4.479 MB / 444.9 MB, free: 10.06 MB / 362.7 MB