Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.583/2.583, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.515e-05, allocations: 3.188 kB / 249.7 MB, free: 5.289 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5821/0.6969, allocations: 75.19 MB / 369.5 MB, free: 7.105 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.6972, allocations: 67.58 kB / 369.5 MB, free: 7.105 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09383/0.7911, allocations: 8.165 MB / 377.7 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.7911, allocations: 0 / 377.7 MB, free: 21.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.052e-05/0.7912, allocations: 7.75 kB / 377.7 MB, free: 21.86 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.005414/0.7967, allocations: 0.8401 MB / 378.5 MB, free: 21.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.154e-05/0.7968, allocations: 7.812 kB / 378.5 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002378/0.797, allocations: 60 kB / 378.6 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003124/0.7974, allocations: 54.53 kB / 378.7 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.7986, allocations: 382.5 kB / 379 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.448e-05/0.7987, allocations: 20.34 kB / 379 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/0.7989, allocations: 19.56 kB / 379.1 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002081/0.801, allocations: 358.1 kB / 379.4 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.803, allocations: 407 kB / 379.8 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.8031, allocations: 7.812 kB / 379.8 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.8032, allocations: 1.203 kB / 379.8 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.8033, allocations: 11.75 kB / 379.8 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007444/0.8107, allocations: 1.966 MB / 381.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008311/0.8191, allocations: 0.686 MB / 382.5 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009113/0.8201, allocations: 244.5 kB / 382.7 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.719e-05/0.8202, allocations: 7.438 kB / 382.7 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009135/0.8211, allocations: 292.3 kB / 383 MB, free: 19.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 4.218e-06/0.8211, allocations: 0 / 383 MB, free: 19.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.002617/0.8238, allocations: 0.5216 MB / 383.5 MB, free: 19.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.8238, allocations: 87.42 kB / 383.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.8245, allocations: 282.2 kB / 383.9 MB, free: 19.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.8246, allocations: 29.61 kB / 383.9 MB, free: 18.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.8249, allocations: 236.9 kB / 384.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.8251, allocations: 126.5 kB / 384.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.8252, allocations: 0 / 384.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.8254, allocations: 347.8 kB / 384.6 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005861/0.826, allocations: 158.4 kB / 384.8 MB, free: 18.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006222/0.8266, allocations: 195.5 kB / 385 MB, free: 18.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000553/0.8272, allocations: 153.5 kB / 385.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.8272, allocations: 4.031 kB / 385.1 MB, free: 18.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002416/0.8297, allocations: 0.5325 MB / 385.7 MB, free: 18.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.485e-05/0.8297, allocations: 33.62 kB / 385.7 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.8298, allocations: 3.969 kB / 385.7 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.8317, allocations: 335.5 kB / 386 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.833, allocations: 96.88 kB / 386.1 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01593/0.8489, allocations: 2.994 MB / 389.1 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.8506, allocations: 93.91 kB / 389.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.906e-05/0.8508, allocations: 19.34 kB / 389.2 MB, free: 16.42 MB / 314.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.0003146/0.8511, allocations: 116.6 kB / 389.3 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.8512, allocations: 39 kB / 389.4 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.8515, allocations: 52.19 kB / 389.4 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.8515, allocations: 3.938 kB / 389.4 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.8515, allocations: 7.953 kB / 389.4 MB, free: 16.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.8515, allocations: 3.984 kB / 389.4 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.8527, allocations: 0.523 MB / 390 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.8527, allocations: 0 / 390 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.8538, allocations: 85.34 kB / 390 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001789/0.8556, allocations: 331.2 kB / 390.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.8557, allocations: 7.875 kB / 390.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/0.8709, allocations: 2.993 MB / 393.4 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.8709, allocations: 4 kB / 393.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/0.8741, allocations: 0.7984 MB / 394.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/0.8746, allocations: 165.7 kB / 394.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.8747, allocations: 7 kB / 394.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.8763, allocations: 86.17 kB / 394.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.8765, allocations: 42.91 kB / 394.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.479e-05/0.8766, allocations: 14.8 kB / 394.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000425/0.8771, allocations: 223.7 kB / 394.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.8771, allocations: 3.938 kB / 394.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001113/0.8782, allocations: 153.7 kB / 394.8 MB, free: 13.75 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.003631/0.8819, allocations: 1.351 MB / 396.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002605/0.8845, allocations: 0.6294 MB / 396.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.8846, allocations: 0 / 396.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0018/0.8864, allocations: 424.5 kB / 397.2 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007662/0.8872, allocations: 61.73 kB / 397.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.8922, allocations: 0.8339 MB / 398.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.8928, allocations: 0.8358 MB / 399 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.8933, allocations: 38.92 kB / 399 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.8937, allocations: 142.4 kB / 399.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.8937, allocations: 4 kB / 399.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07972/0.9734, allocations: 13.59 MB / 412.7 MB, free: 3.812 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000405/0.9739, allocations: 143.6 kB / 412.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.094/5.068, allocations: 0 / 412.9 MB, free: 3.625 MB / 314.7 MB