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.64/1.64, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.255e-05, allocations: 4 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.251, allocations: 38.77 MB / 263.9 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3721, allocations: 69.67 MB / 333.5 MB, free: 4.023 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3724, allocations: 67.95 kB / 333.6 MB, free: 3.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03052/0.4029, allocations: 6.942 MB / 340.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4029, allocations: 0 / 340.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.283e-05/0.403, allocations: 8 kB / 340.5 MB, free: 12.98 MB / 298.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.001657/0.4047, allocations: 0.7257 MB / 341.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.4047, allocations: 8.031 kB / 341.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.4049, allocations: 82.52 kB / 341.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.405, allocations: 55.34 kB / 341.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006122/0.4057, allocations: 307.7 kB / 341.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.4057, allocations: 32.72 kB / 341.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.135e-05/0.4058, allocations: 39.95 kB / 341.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4069, allocations: 409.5 kB / 342.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.4069, allocations: 0 / 342.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.11e-05/0.407, allocations: 16 kB / 342.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.407, allocations: 8 kB / 342.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/0.4079, allocations: 283 kB / 342.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003682/0.4116, allocations: 1.651 MB / 344.1 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008183/0.4125, allocations: 311.1 kB / 344.4 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004592/0.4129, allocations: 185.1 kB / 344.6 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.413, allocations: 8.219 kB / 344.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006295/0.4136, allocations: 285.2 kB / 344.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 3.306e-06/0.4137, allocations: 0 / 344.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001531/0.4152, allocations: 478.1 kB / 345.4 MB, free: 7.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.4154, allocations: 229.5 kB / 345.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005173/0.4159, allocations: 291.5 kB / 345.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.416, allocations: 37.7 kB / 345.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.4162, allocations: 208.5 kB / 346.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4164, allocations: 110.5 kB / 346.2 MB, free: 6.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.4164, allocations: 8 kB / 346.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.4166, allocations: 346.8 kB / 346.6 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003425/0.417, allocations: 108.9 kB / 346.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.4174, allocations: 182.7 kB / 346.9 MB, free: 6.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.4178, allocations: 168.2 kB / 347 MB, free: 6.074 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4178, allocations: 0 / 347 MB, free: 6.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001332/0.4192, allocations: 0.5094 MB / 347.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.368e-05/0.4192, allocations: 63.41 kB / 347.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.4193, allocations: 0 / 347.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008074/0.4201, allocations: 151.3 kB / 347.7 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.4204, allocations: 35.92 kB / 347.8 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007069/0.4275, allocations: 5.951 MB / 353.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.4282, allocations: 55.66 kB / 353.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/0.4283, allocations: 16.06 kB / 353.8 MB, free: 14.71 MB / 314.7 MB 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.0002443/0.4286, allocations: 168.3 kB / 354 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.454e-05/0.4287, allocations: 43.53 kB / 354 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.4288, allocations: 44.19 kB / 354 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4288, allocations: 4 kB / 354.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4288, allocations: 0 / 354.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4289, allocations: 3.984 kB / 354.1 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007333/0.4296, allocations: 449.1 kB / 354.5 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4296, allocations: 7.938 kB / 354.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.4298, allocations: 23.92 kB / 354.5 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006932/0.4305, allocations: 151.4 kB / 354.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.4306, allocations: 7.984 kB / 354.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006504/0.4371, allocations: 5.789 MB / 360.5 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4372, allocations: 0 / 360.5 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.4387, allocations: 0.5283 MB / 361 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.4391, allocations: 148.6 kB / 361.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.209e-05/0.4392, allocations: 8 kB / 361.2 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004946/0.4397, allocations: 35.97 kB / 361.2 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.4399, allocations: 51.91 kB / 361.2 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.44, allocations: 12 kB / 361.2 MB, free: 6.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003736/0.4403, allocations: 230.2 kB / 361.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4404, allocations: 0 / 361.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009946/0.4414, allocations: 159.8 kB / 361.6 MB, free: 6.211 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.002045/0.4434, allocations: 1.11 MB / 362.7 MB, free: 5.055 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.4451, allocations: 0.8801 MB / 363.6 MB, free: 4.098 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4451, allocations: 0 / 363.6 MB, free: 4.098 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.4462, allocations: 0.7123 MB / 364.3 MB, free: 3.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.4469, allocations: 73.2 kB / 364.4 MB, free: 3.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.4486, allocations: 0.5851 MB / 365 MB, free: 2.633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.4491, allocations: 0.8394 MB / 365.8 MB, free: 1.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.4493, allocations: 31.28 kB / 365.9 MB, free: 1.734 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.4495, allocations: 119.4 kB / 366 MB, free: 1.617 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4495, allocations: 0 / 366 MB, free: 1.617 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2837/0.7332, allocations: 10.3 MB / 376.3 MB, free: 90.02 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.7334, allocations: 194.3 kB / 376.5 MB, free: 89.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.558, allocations: 0 / 376.5 MB, free: 89.79 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