Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.465e-05/2.475e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3007, allocations: 44.5 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1366/0.4374, allocations: 75.19 MB / 369.4 MB, free: 6.719 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4378, allocations: 63.97 kB / 369.5 MB, free: 6.656 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04015/0.4779, allocations: 8.129 MB / 377.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.478, allocations: 0 / 377.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.478, allocations: 8 kB / 377.6 MB, free: 14.48 MB / 330.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.003097/0.4811, allocations: 0.8359 MB / 378.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.4812, allocations: 12.03 kB / 378.4 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.4814, allocations: 59.34 kB / 378.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007537/0.4822, allocations: 367.7 kB / 378.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.4822, allocations: 12 kB / 378.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.4824, allocations: 24 kB / 378.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001162/0.4835, allocations: 361.5 kB / 379.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.4847, allocations: 407.9 kB / 379.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4847, allocations: 4 kB / 379.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.028e-05/0.4848, allocations: 4 kB / 379.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.4848, allocations: 8 kB / 379.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005759/0.4906, allocations: 1.968 MB / 381.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005748/0.4964, allocations: 0.7023 MB / 382.3 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00074/0.4971, allocations: 245.2 kB / 382.6 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.408e-05/0.4972, allocations: 4 kB / 382.6 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007369/0.498, allocations: 284.1 kB / 382.8 MB, free: 8.996 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.286e-06/0.498, allocations: 4 kB / 382.9 MB, free: 8.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.002055/0.5001, allocations: 0.5259 MB / 383.4 MB, free: 8.457 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.5002, allocations: 85.09 kB / 383.5 MB, free: 8.355 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005224/0.5007, allocations: 286.4 kB / 383.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.91e-05/0.5008, allocations: 29.7 kB / 383.8 MB, free: 8.035 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.501, allocations: 274.9 kB / 384 MB, free: 7.766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.5012, allocations: 126.1 kB / 384.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/0.5013, allocations: 0 / 384.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.5015, allocations: 322.8 kB / 384.5 MB, free: 7.316 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004751/0.5019, allocations: 160.8 kB / 384.6 MB, free: 7.156 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.5025, allocations: 189.9 kB / 384.8 MB, free: 6.957 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000471/0.503, allocations: 154 kB / 385 MB, free: 6.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.503, allocations: 0 / 385 MB, free: 6.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00177/0.5047, allocations: 0.514 MB / 385.5 MB, free: 6.285 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.534e-05/0.5048, allocations: 29.7 kB / 385.5 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5049, allocations: 4 kB / 385.5 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.5063, allocations: 341.4 kB / 385.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000867/0.5072, allocations: 91.94 kB / 385.9 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.519, allocations: 2.992 MB / 388.9 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.5203, allocations: 95.75 kB / 389 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.378e-05/0.5204, allocations: 8 kB / 389 MB, free: 2.605 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real 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.0002639/0.5206, allocations: 116.7 kB / 389.1 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001897/0.5225, allocations: 0.5291 MB / 389.7 MB, free: 1.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.5227, allocations: 39.53 kB / 389.7 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.5229, allocations: 48.69 kB / 389.8 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.5229, allocations: 7.953 kB / 389.8 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5229, allocations: 0 / 389.8 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.523, allocations: 7.984 kB / 389.8 MB, free: 1.844 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009857/0.5239, allocations: 0.5175 MB / 390.3 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.524, allocations: 0 / 390.3 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000829/0.5248, allocations: 92.02 kB / 390.4 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/0.5262, allocations: 328.6 kB / 390.7 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/0.5263, allocations: 7.984 kB / 390.7 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.538, allocations: 2.999 MB / 393.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.5381, allocations: 0 / 393.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.5407, allocations: 0.7978 MB / 394.5 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003507/0.5411, allocations: 168.5 kB / 394.7 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.5413, allocations: 7.953 kB / 394.7 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5424, allocations: 79.92 kB / 394.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.5426, allocations: 47.92 kB / 394.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/0.5427, allocations: 12 kB / 394.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003996/0.5431, allocations: 224.6 kB / 395 MB, free: 12.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5431, allocations: 0 / 395 MB, free: 12.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009649/0.5441, allocations: 155.7 kB / 395.2 MB, free: 12.23 MB / 346.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.003139/0.5472, allocations: 1.351 MB / 396.5 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.5495, allocations: 0.63 MB / 397.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5495, allocations: 0 / 397.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.551, allocations: 417.3 kB / 397.6 MB, free: 9.781 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.5516, allocations: 57.53 kB / 397.6 MB, free: 9.727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.5559, allocations: 0.8614 MB / 398.5 MB, free: 8.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005507/0.5565, allocations: 0.8394 MB / 399.3 MB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004058/0.5569, allocations: 147.4 kB / 399.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5569, allocations: 0 / 399.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.586/3.143, allocations: 10.14 MB / 409.6 MB, free: 13.67 MB / 362.7 MB