Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.677/1.677, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.862e-05/2.862e-05, allocations: 8 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.255, allocations: 38.75 MB / 258.3 MB, free: 12.22 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.3797, allocations: 69 MB / 327.3 MB, free: 8.801 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.3801, allocations: 83.83 kB / 327.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0314/0.4115, allocations: 6.859 MB / 334.3 MB, free: 1.832 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4115, allocations: 0 / 334.3 MB, free: 1.832 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.053e-05/0.4116, allocations: 15.98 kB / 334.3 MB, free: 1.816 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.001808/0.4134, allocations: 0.7218 MB / 335 MB, free: 1.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.4135, allocations: 12.03 kB / 335 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.4137, allocations: 55.34 kB / 335.1 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006534/0.4143, allocations: 315.7 kB / 335.4 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.4144, allocations: 12 kB / 335.4 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.4145, allocations: 24 kB / 335.4 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008424/0.4154, allocations: 265.5 kB / 335.7 MB, free: 332 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009003/0.4163, allocations: 344 kB / 336 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.4163, allocations: 7.938 kB / 336 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.4164, allocations: 4 kB / 336 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.4164, allocations: 8 kB / 336 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.4201, allocations: 1.56 MB / 337.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000774/0.421, allocations: 302.8 kB / 337.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.4214, allocations: 169.1 kB / 338.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.878e-05/0.4215, allocations: 4.281 kB / 338.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005654/0.422, allocations: 265.3 kB / 338.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 2.675e-06/0.4221, allocations: 0 / 338.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001458/0.4235, allocations: 432 kB / 338.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.4237, allocations: 221.6 kB / 339 MB, free: 12.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004421/0.4242, allocations: 245.2 kB / 339.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.058e-05/0.4243, allocations: 33.7 kB / 339.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/0.4245, allocations: 216.3 kB / 339.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.4246, allocations: 110.4 kB / 339.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.688e-05/0.4247, allocations: 3.938 kB / 339.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4249, allocations: 346.8 kB / 339.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.4252, allocations: 96.88 kB / 340 MB, free: 11.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003853/0.4256, allocations: 169.9 kB / 340.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.4259, allocations: 111.9 kB / 340.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4259, allocations: 4 kB / 340.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001179/0.4271, allocations: 418.3 kB / 340.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.4272, allocations: 59.41 kB / 340.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4273, allocations: 8.016 kB / 340.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007905/0.4281, allocations: 155.3 kB / 340.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.4284, allocations: 35.91 kB / 340.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/0.4351, allocations: 5.733 MB / 346.7 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006143/0.4357, allocations: 39.84 kB / 346.7 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.09e-05/0.4358, allocations: 12 kB / 346.7 MB, free: 4.52 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.0003215/0.4362, allocations: 171.1 kB / 346.9 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001318/0.4375, allocations: 428.6 kB / 347.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.737e-05/0.4376, allocations: 35.62 kB / 347.3 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001503/0.4378, allocations: 44.31 kB / 347.4 MB, free: 3.824 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4378, allocations: 8 kB / 347.4 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.4378, allocations: 0 / 347.4 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.4378, allocations: 7.984 kB / 347.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007158/0.4386, allocations: 385.6 kB / 347.8 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.4386, allocations: 0 / 347.8 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.4388, allocations: 27.97 kB / 347.8 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007127/0.4396, allocations: 155.3 kB / 348 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/0.4396, allocations: 0 / 348 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006602/0.4462, allocations: 5.552 MB / 353.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/0.4463, allocations: 4.203 kB / 353.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.4478, allocations: 467.3 kB / 354 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.4481, allocations: 152.5 kB / 354.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.4482, allocations: 7.953 kB / 354.1 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.4487, allocations: 35.97 kB / 354.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.4489, allocations: 47.92 kB / 354.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.449, allocations: 12 kB / 354.2 MB, free: 12.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003205/0.4493, allocations: 196.6 kB / 354.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4493, allocations: 0 / 354.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001171/0.4505, allocations: 159.7 kB / 354.6 MB, free: 12.08 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.001869/0.4524, allocations: 1.029 MB / 355.6 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.454, allocations: 0.8455 MB / 356.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.454, allocations: 0 / 356.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.455, allocations: 0.6741 MB / 357.1 MB, free: 9.371 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.4556, allocations: 45.19 kB / 357.2 MB, free: 9.328 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.4574, allocations: 0.5512 MB / 357.7 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.4579, allocations: 0.8316 MB / 358.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002476/0.4582, allocations: 27.28 kB / 358.6 MB, free: 7.852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.4585, allocations: 119.3 kB / 358.7 MB, free: 7.734 MB / 314.7 MB Notification: Performance of SimCode: time 2.124e-06/0.4585, allocations: 0 / 358.7 MB, free: 7.734 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3102/0.7687, allocations: 9.066 MB / 367.7 MB, free: 93.72 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.769, allocations: 151.5 kB / 367.9 MB, free: 93.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.776/3.545, allocations: 0.625 kB / 367.9 MB, free: 93.54 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat