Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9827/0.9827, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.952e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1689, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07585/0.2448, allocations: 36.54 MB / 213.2 MB, free: 12.82 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.2452, allocations: 59.97 kB / 213.2 MB, free: 12.76 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02772/0.2729, allocations: 4.21 MB / 217.4 MB, free: 8.539 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.273, allocations: 3.938 kB / 217.5 MB, free: 8.535 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.273, allocations: 4 kB / 217.5 MB, free: 8.531 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.002142/0.2752, allocations: 0.5497 MB / 218 MB, free: 7.934 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.2753, allocations: 12.03 kB / 218 MB, free: 7.922 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.2754, allocations: 50.55 kB / 218.1 MB, free: 7.863 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.2755, allocations: 31.62 kB / 218.1 MB, free: 7.832 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.2761, allocations: 240.4 kB / 218.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.2761, allocations: 16.38 kB / 218.3 MB, free: 7.543 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.994e-05/0.2762, allocations: 16 kB / 218.4 MB, free: 7.527 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.277, allocations: 196.2 kB / 218.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.277, allocations: 7.953 kB / 218.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.998e-05/0.2771, allocations: 11.94 kB / 218.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.2771, allocations: 4 kB / 218.6 MB, free: 7.309 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006942/0.2778, allocations: 152.7 kB / 218.7 MB, free: 7.156 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003652/0.2815, allocations: 0.8682 MB / 219.6 MB, free: 6.23 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006682/0.2882, allocations: 474.3 kB / 220.1 MB, free: 5.758 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.2888, allocations: 140.8 kB / 220.2 MB, free: 5.617 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.2889, allocations: 3.984 kB / 220.2 MB, free: 5.613 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.2893, allocations: 156.8 kB / 220.4 MB, free: 5.441 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.404e-06/0.2893, allocations: 0 / 220.4 MB, free: 5.441 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006611/0.29, allocations: 190.4 kB / 220.5 MB, free: 5.25 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.378e-05/0.2901, allocations: 110.8 kB / 220.6 MB, free: 5.117 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.2904, allocations: 196.9 kB / 220.8 MB, free: 4.918 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.2905, allocations: 29.7 kB / 220.9 MB, free: 4.883 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2907, allocations: 214.5 kB / 221.1 MB, free: 4.668 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.228e-05/0.2908, allocations: 67.05 kB / 221.1 MB, free: 4.602 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/0.2908, allocations: 0 / 221.1 MB, free: 4.602 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.291, allocations: 322.8 kB / 221.5 MB, free: 4.277 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.2912, allocations: 60.22 kB / 221.5 MB, free: 4.215 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.2915, allocations: 100.5 kB / 221.6 MB, free: 4.102 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.2917, allocations: 56.73 kB / 221.7 MB, free: 4.047 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2917, allocations: 0 / 221.7 MB, free: 4.047 MB / 186.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006351/0.2924, allocations: 217 kB / 221.9 MB, free: 3.832 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.2924, allocations: 8 kB / 221.9 MB, free: 3.824 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2924, allocations: 0 / 221.9 MB, free: 3.824 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.2925, allocations: 3.953 kB / 221.9 MB, free: 3.82 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004453/0.2969, allocations: 335.7 kB / 222.2 MB, free: 3.492 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007117/0.3041, allocations: 3.048 MB / 225.3 MB, free: 184 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.3048, allocations: 55.97 kB / 225.3 MB, free: 128 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/0.3048, allocations: 7.984 kB / 225.3 MB, free: 120 kB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002486/0.3051, allocations: 121.4 kB / 225.5 MB, free: 15.99 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.3052, allocations: 27.67 kB / 225.5 MB, free: 15.96 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.035e-05/0.3053, allocations: 29.91 kB / 225.5 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3053, allocations: 4 kB / 225.5 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3053, allocations: 0 / 225.5 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3053, allocations: 0 / 225.5 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.3072, allocations: 0.7515 MB / 226.3 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3073, allocations: 0 / 226.3 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004295/0.3116, allocations: 327.7 kB / 226.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.3116, allocations: 0 / 226.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.001e-05/0.3117, allocations: 4 kB / 226.6 MB, free: 14.79 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007009/0.3187, allocations: 3.048 MB / 229.6 MB, free: 11.48 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3187, allocations: 0 / 229.6 MB, free: 11.48 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.32, allocations: 414.2 kB / 230 MB, free: 11.04 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.3202, allocations: 124.7 kB / 230.2 MB, free: 10.9 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.3203, allocations: 4 kB / 230.2 MB, free: 10.89 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006163/0.3209, allocations: 52.02 kB / 230.2 MB, free: 10.84 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.321, allocations: 23.91 kB / 230.2 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3211, allocations: 4 kB / 230.2 MB, free: 10.82 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002414/0.3213, allocations: 161.4 kB / 230.4 MB, free: 10.66 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3213, allocations: 4 kB / 230.4 MB, free: 10.66 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006936/0.322, allocations: 83.78 kB / 230.5 MB, free: 10.57 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/0.3234, allocations: 1.089 MB / 231.6 MB, free: 9.445 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003973/0.3274, allocations: 397.1 kB / 232 MB, free: 9.059 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3274, allocations: 0 / 232 MB, free: 9.059 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003679/0.3311, allocations: 327.9 kB / 232.3 MB, free: 8.738 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.3317, allocations: 32.64 kB / 232.3 MB, free: 8.703 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.3341, allocations: 498.7 kB / 232.8 MB, free: 8.168 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3346, allocations: 0.7521 MB / 233.6 MB, free: 7.391 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.3348, allocations: 75.41 kB / 233.6 MB, free: 7.316 MB / 202.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3348, allocations: 0 / 233.6 MB, free: 7.316 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.601/2.936, allocations: 5.719 MB / 239.3 MB, free: 1.602 MB / 202.7 MB