Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.401e-05/2.408e-05, allocations: 0 / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.276, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.4048, allocations: 69.01 MB / 327.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.4052, allocations: 75.95 kB / 327.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03121/0.4364, allocations: 6.859 MB / 334.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4365, allocations: 0 / 334.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.541e-05/0.4365, allocations: 8 kB / 334.3 MB, free: 1.941 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001853/0.4384, allocations: 0.7257 MB / 335 MB, free: 1.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.4384, allocations: 15.97 kB / 335 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.4387, allocations: 55.34 kB / 335.1 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006739/0.4393, allocations: 311.7 kB / 335.4 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.753e-05/0.4394, allocations: 12 kB / 335.4 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-05/0.4395, allocations: 24 kB / 335.4 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008377/0.4404, allocations: 265.5 kB / 335.7 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00088/0.4413, allocations: 347.9 kB / 336 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.4413, allocations: 3.984 kB / 336 MB, free: 84 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.4414, allocations: 4 kB / 336 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.4414, allocations: 8 kB / 336 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.4451, allocations: 1.564 MB / 337.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007865/0.446, allocations: 306.8 kB / 337.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.4464, allocations: 169.1 kB / 338 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.872e-05/0.4465, allocations: 288 / 338 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005754/0.4471, allocations: 269.4 kB / 338.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 2.264e-06/0.4471, allocations: 0 / 338.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001441/0.4485, allocations: 432 kB / 338.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.4487, allocations: 217.6 kB / 338.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.4492, allocations: 253.2 kB / 339.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.213e-05/0.4492, allocations: 29.7 kB / 339.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.4495, allocations: 266.7 kB / 339.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.4497, allocations: 102.5 kB / 339.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.4497, allocations: 0 / 339.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4499, allocations: 330.8 kB / 339.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.4502, allocations: 100.9 kB / 340 MB, free: 11.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.4506, allocations: 173.8 kB / 340.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.451, allocations: 108.7 kB / 340.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.451, allocations: 0 / 340.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001116/0.4522, allocations: 394.5 kB / 340.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.693e-05/0.4523, allocations: 59.47 kB / 340.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.4523, allocations: 7.953 kB / 340.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007991/0.4531, allocations: 151.3 kB / 340.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.4534, allocations: 35.92 kB / 340.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006556/0.46, allocations: 5.741 MB / 346.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.4607, allocations: 43.72 kB / 346.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/0.4608, allocations: 12 kB / 346.7 MB, free: 4.625 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00032/0.4611, allocations: 167.1 kB / 346.9 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001357/0.4625, allocations: 428.2 kB / 347.3 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.11e-05/0.4626, allocations: 39.53 kB / 347.3 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000147/0.4628, allocations: 48.31 kB / 347.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4628, allocations: 4 kB / 347.4 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.4628, allocations: 0 / 347.4 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4628, allocations: 3.984 kB / 347.4 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006805/0.4635, allocations: 389.7 kB / 347.8 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4636, allocations: 0 / 347.8 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.4638, allocations: 23.92 kB / 347.8 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006826/0.4645, allocations: 155.3 kB / 347.9 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.4646, allocations: 0 / 347.9 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006421/0.471, allocations: 5.556 MB / 353.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/0.471, allocations: 4.203 kB / 353.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.4725, allocations: 479.2 kB / 354 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.4728, allocations: 140.6 kB / 354.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.4729, allocations: 11.95 kB / 354.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/0.4734, allocations: 35.97 kB / 354.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.4737, allocations: 51.86 kB / 354.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.249e-05/0.4737, allocations: 12 kB / 354.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003167/0.474, allocations: 200.6 kB / 354.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.4741, allocations: 0 / 354.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001141/0.4752, allocations: 147.7 kB / 354.6 MB, free: 12.19 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00188/0.4771, allocations: 1.029 MB / 355.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.4787, allocations: 0.8416 MB / 356.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4787, allocations: 0 / 356.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.4797, allocations: 0.6702 MB / 357.1 MB, free: 9.484 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.4804, allocations: 49.17 kB / 357.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.4821, allocations: 0.5802 MB / 357.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005132/0.4827, allocations: 0.8316 MB / 358.6 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.483, allocations: 119.3 kB / 358.7 MB, free: 7.836 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.483, allocations: 0 / 358.7 MB, free: 7.836 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.587, allocations: 12.4 MB / 371.1 MB, free: 93.26 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat