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.847/1.847, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.927e-05/3.961e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2607, allocations: 38.77 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.4103, allocations: 69.67 MB / 333.5 MB, free: 3.98 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.4106, allocations: 67.97 kB / 333.6 MB, free: 3.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03315/0.4438, allocations: 6.957 MB / 340.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4439, allocations: 0 / 340.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.505e-05/0.4439, allocations: 12 kB / 340.6 MB, free: 12.92 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.001862/0.4458, allocations: 0.7179 MB / 341.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.4459, allocations: 8.031 kB / 341.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.446, allocations: 78.53 kB / 341.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.4462, allocations: 55.34 kB / 341.4 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.4468, allocations: 311.7 kB / 341.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.4469, allocations: 28.78 kB / 341.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.362e-05/0.447, allocations: 43.95 kB / 341.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.4481, allocations: 395.9 kB / 342.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4481, allocations: 0 / 342.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.561e-05/0.4482, allocations: 16 kB / 342.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.4482, allocations: 12 kB / 342.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008767/0.4491, allocations: 281.5 kB / 342.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.453, allocations: 1.643 MB / 344.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.4539, allocations: 310.8 kB / 344.4 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004732/0.4544, allocations: 183.5 kB / 344.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.4545, allocations: 12.22 kB / 344.6 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006227/0.4551, allocations: 273.2 kB / 344.9 MB, free: 8.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 3.337e-06/0.4551, allocations: 0 / 344.9 MB, free: 8.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001638/0.4568, allocations: 486 kB / 345.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.457, allocations: 221.6 kB / 345.6 MB, free: 7.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.4575, allocations: 287.5 kB / 345.8 MB, free: 7.258 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.807e-05/0.4576, allocations: 37.7 kB / 345.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.4578, allocations: 262.9 kB / 346.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.458, allocations: 110.5 kB / 346.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.458, allocations: 8 kB / 346.3 MB, free: 6.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4582, allocations: 330.8 kB / 346.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/0.4585, allocations: 112.8 kB / 346.7 MB, free: 6.398 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.4589, allocations: 177.9 kB / 346.9 MB, free: 6.199 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/0.4593, allocations: 169 kB / 347 MB, free: 6.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4593, allocations: 0 / 347 MB, free: 6.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001234/0.4606, allocations: 493.8 kB / 347.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.672e-05/0.4607, allocations: 61.11 kB / 347.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.4607, allocations: 4 kB / 347.6 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008429/0.4616, allocations: 159.5 kB / 347.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.4619, allocations: 39.91 kB / 347.8 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006823/0.4688, allocations: 5.939 MB / 353.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006879/0.4695, allocations: 51.73 kB / 353.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.4696, allocations: 19.98 kB / 353.8 MB, free: 14.68 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.0002356/0.4699, allocations: 164.3 kB / 353.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.47, allocations: 43.53 kB / 354 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.4701, allocations: 48.19 kB / 354 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.4702, allocations: 8 kB / 354 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4702, allocations: 0 / 354 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4702, allocations: 3.984 kB / 354 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007461/0.4709, allocations: 449.1 kB / 354.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.471, allocations: 48 / 354.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.4712, allocations: 23.97 kB / 354.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007361/0.472, allocations: 151.3 kB / 354.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.472, allocations: 12 kB / 354.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006566/0.4786, allocations: 5.777 MB / 360.4 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4787, allocations: 0 / 360.4 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.4802, allocations: 0.5244 MB / 361 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/0.4806, allocations: 148.5 kB / 361.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.4807, allocations: 12 kB / 361.1 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005205/0.4812, allocations: 39.97 kB / 361.2 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.4815, allocations: 47.92 kB / 361.2 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-05/0.4815, allocations: 12 kB / 361.2 MB, free: 6.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.4819, allocations: 230.2 kB / 361.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4819, allocations: 0 / 361.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001134/0.4831, allocations: 159.8 kB / 361.6 MB, free: 6.195 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.00204/0.4851, allocations: 1.097 MB / 362.7 MB, free: 5.051 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.4868, allocations: 0.8572 MB / 363.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4868, allocations: 0 / 363.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4879, allocations: 0.6858 MB / 364.2 MB, free: 3.391 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.4886, allocations: 88.3 kB / 364.3 MB, free: 3.309 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.4905, allocations: 0.6089 MB / 364.9 MB, free: 2.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.491, allocations: 0.8316 MB / 365.8 MB, free: 1.805 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.4913, allocations: 123.4 kB / 365.9 MB, free: 1.684 MB / 314.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4913, allocations: 0 / 365.9 MB, free: 1.684 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.238/3.729, allocations: 12.66 MB / 378.5 MB, free: 87.73 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