Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.825/1.825, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.664e-05, allocations: 3.5 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07635/0.07639, allocations: 44.51 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4434, allocations: 75.85 MB / 375.7 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.4436, allocations: 70.95 kB / 375.8 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03233/0.476, allocations: 8.216 MB / 384 MB, free: 21.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.058e-06/0.476, allocations: 0 / 384 MB, free: 21.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.325e-05/0.4761, allocations: 9.625 kB / 384 MB, free: 21.52 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002024/0.4781, allocations: 0.834 MB / 384.8 MB, free: 21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4782, allocations: 9.75 kB / 384.8 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.4783, allocations: 54.31 kB / 384.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.4789, allocations: 370.7 kB / 385.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.4789, allocations: 30.47 kB / 385.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.994e-05/0.4791, allocations: 34.09 kB / 385.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000974/0.48, allocations: 456.6 kB / 385.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.4801, allocations: 0 / 385.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-05/0.4802, allocations: 15.66 kB / 385.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.4802, allocations: 7.188 kB / 385.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009531/0.4811, allocations: 385.1 kB / 386.2 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004093/0.4853, allocations: 2.046 MB / 388.2 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003822/0.4891, allocations: 0.6992 MB / 388.9 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.4897, allocations: 266.8 kB / 389.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.4897, allocations: 11.67 kB / 389.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005849/0.4903, allocations: 294.6 kB / 389.5 MB, free: 19.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.58e-06/0.4904, allocations: 0 / 389.5 MB, free: 19.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.001673/0.492, allocations: 0.5502 MB / 390 MB, free: 19.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.4921, allocations: 84.16 kB / 390.1 MB, free: 19.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.4925, allocations: 322.8 kB / 390.4 MB, free: 19.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.305e-05/0.4926, allocations: 32.14 kB / 390.5 MB, free: 19.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.4928, allocations: 276.5 kB / 390.7 MB, free: 19.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.4929, allocations: 129.2 kB / 390.8 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.493, allocations: 3.812 kB / 390.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.493, allocations: 328.6 kB / 391.2 MB, free: 18.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.4935, allocations: 165.8 kB / 391.3 MB, free: 18.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.494, allocations: 207.7 kB / 391.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.4944, allocations: 183.5 kB / 391.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-06/0.4945, allocations: 0 / 391.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001575/0.496, allocations: 0.5738 MB / 392.3 MB, free: 18.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.4961, allocations: 29.58 kB / 392.3 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.084e-06/0.4961, allocations: 7.969 kB / 392.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.4973, allocations: 339 kB / 392.7 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.4978, allocations: 91 kB / 392.7 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00816/0.506, allocations: 3.078 MB / 395.8 MB, free: 17.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009899/0.507, allocations: 104.9 kB / 395.9 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-05/0.5071, allocations: 14.58 kB / 395.9 MB, free: 17.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.5073, allocations: 127.2 kB / 396.1 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.5074, allocations: 42.97 kB / 396.1 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.5076, allocations: 55.38 kB / 396.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.545e-06/0.5076, allocations: 3.969 kB / 396.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.865e-06/0.5076, allocations: 0 / 396.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.5076, allocations: 3.609 kB / 396.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007542/0.5084, allocations: 0.5804 MB / 396.8 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.165e-06/0.5084, allocations: 3.969 kB / 396.8 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.509, allocations: 92.91 kB / 396.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.5101, allocations: 339.5 kB / 397.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.5102, allocations: 13.45 kB / 397.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00827/0.5185, allocations: 3.065 MB / 400.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.54e-06/0.5185, allocations: 0 / 400.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.5208, allocations: 0.8298 MB / 401.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.521, allocations: 169.7 kB / 401.2 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.943e-05/0.5212, allocations: 7.688 kB / 401.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007189/0.5219, allocations: 80.8 kB / 401.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.5221, allocations: 54.61 kB / 401.4 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.5221, allocations: 18.83 kB / 401.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000329/0.5225, allocations: 257.9 kB / 401.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.5225, allocations: 0 / 401.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007758/0.5233, allocations: 170.2 kB / 401.8 MB, free: 14.89 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001834/0.5235, allocations: 117.4 kB / 401.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.5254, allocations: 0.6406 MB / 402.6 MB, free: 30.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.23e-06/0.5254, allocations: 7.844 kB / 402.6 MB, free: 30.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.5264, allocations: 424.1 kB / 403 MB, free: 30.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.5269, allocations: 80.36 kB / 403.1 MB, free: 30.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.5295, allocations: 0.7949 MB / 403.9 MB, free: 30.17 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.5301, allocations: 0.837 MB / 404.7 MB, free: 29.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.5302, allocations: 34.17 kB / 404.7 MB, free: 29.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.441e-06/0.5302, allocations: 0 / 404.7 MB, free: 29.46 MB / 330.7 MB Notification: Performance of Templates: time 0.01236/0.5426, allocations: 8.302 MB / 413 MB, free: 28.28 MB / 330.7 MB