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.873/1.873, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.135e-05, allocations: 2.594 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07742/0.07748, allocations: 44.51 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3496/0.4272, allocations: 73.98 MB / 373.8 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.4274, allocations: 71.27 kB / 373.9 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01814/0.4456, allocations: 4.867 MB / 378.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.891e-06/0.4456, allocations: 1.906 kB / 378.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.182e-05/0.4457, allocations: 8.5 kB / 378.8 MB, free: 21.92 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.0008996/0.4466, allocations: 0.5388 MB / 379.3 MB, free: 21.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4466, allocations: 9.562 kB / 379.3 MB, free: 21.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.4468, allocations: 36.78 kB / 379.4 MB, free: 21.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.4472, allocations: 274.2 kB / 379.6 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.4472, allocations: 18.16 kB / 379.6 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.908e-05/0.4473, allocations: 26.08 kB / 379.7 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.4479, allocations: 275.9 kB / 379.9 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.4479, allocations: 0 / 379.9 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.066e-05/0.448, allocations: 11.55 kB / 379.9 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.448, allocations: 6.656 kB / 379.9 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.4485, allocations: 196.1 kB / 380.1 MB, free: 21.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.4505, allocations: 1.154 MB / 381.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005882/0.4512, allocations: 201.9 kB / 381.5 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003641/0.4515, allocations: 140.7 kB / 381.6 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.4516, allocations: 2.5 kB / 381.6 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003082/0.4519, allocations: 161.4 kB / 381.8 MB, free: 20.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 4.041e-06/0.4519, allocations: 1 kB / 381.8 MB, free: 20.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007255/0.4527, allocations: 264.6 kB / 382 MB, free: 20.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.4527, allocations: 133.3 kB / 382.2 MB, free: 20.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.453, allocations: 218.7 kB / 382.4 MB, free: 20.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.4531, allocations: 34.08 kB / 382.4 MB, free: 20.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.4532, allocations: 225.9 kB / 382.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.28e-05/0.4533, allocations: 67.61 kB / 382.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.4533, allocations: 7.781 kB / 382.7 MB, free: 19.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.611e-05/0.4534, allocations: 320.3 kB / 383 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.4535, allocations: 64.75 kB / 383.1 MB, free: 19.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.4538, allocations: 118.2 kB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.454, allocations: 74.11 kB / 383.3 MB, free: 19.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.454, allocations: 0 / 383.3 MB, free: 19.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005795/0.4546, allocations: 270.7 kB / 383.5 MB, free: 19.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.4546, allocations: 7.797 kB / 383.6 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.492e-06/0.4546, allocations: 1.688 kB / 383.6 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.4551, allocations: 92.03 kB / 383.6 MB, free: 19.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.4553, allocations: 31.61 kB / 383.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002492/0.4578, allocations: 1.972 MB / 385.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.4582, allocations: 44.53 kB / 385.7 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.4582, allocations: 9.125 kB / 385.7 MB, free: 18.02 MB / 314.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.0001131/0.4583, allocations: 119.8 kB / 385.8 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.266e-05/0.4584, allocations: 24.88 kB / 385.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.534e-05/0.4585, allocations: 29.22 kB / 385.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.565e-06/0.4585, allocations: 5.609 kB / 385.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.561e-06/0.4586, allocations: 0 / 385.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.297e-06/0.4586, allocations: 0 / 385.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.4599, allocations: 0.801 MB / 386.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.4599, allocations: 0 / 386.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.4601, allocations: 23.22 kB / 386.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003876/0.4605, allocations: 82.8 kB / 386.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.4606, allocations: 11.31 kB / 386.8 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.4631, allocations: 1.933 MB / 388.7 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.751e-06/0.4631, allocations: 1.25 kB / 388.7 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008348/0.464, allocations: 462.5 kB / 389.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.4642, allocations: 120.7 kB / 389.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.4642, allocations: 6.25 kB / 389.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.4646, allocations: 23.12 kB / 389.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.4647, allocations: 38.44 kB / 389.4 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.4648, allocations: 12.17 kB / 389.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002053/0.465, allocations: 171.7 kB / 389.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.465, allocations: 0 / 389.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006494/0.4657, allocations: 87.91 kB / 389.6 MB, free: 15.69 MB / 314.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.0001544/0.4658, allocations: 112.7 kB / 389.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.467, allocations: 344.4 kB / 390.1 MB, free: 31.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.326e-06/0.467, allocations: 0 / 390.1 MB, free: 31.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004775/0.4675, allocations: 254.9 kB / 390.3 MB, free: 31.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004763/0.468, allocations: 57.27 kB / 390.4 MB, free: 31.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.4691, allocations: 446.1 kB / 390.8 MB, free: 31.1 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.4696, allocations: 0.772 MB / 391.6 MB, free: 30.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.344e-05/0.4697, allocations: 19.91 kB / 391.6 MB, free: 30.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.872e-06/0.4697, allocations: 0 / 391.6 MB, free: 30.39 MB / 330.7 MB Notification: Performance of Templates: time 0.007476/0.4772, allocations: 4.48 MB / 396.1 MB, free: 30.16 MB / 330.7 MB