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.795/1.795, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.17e-05, allocations: 4 kB / 225.1 MB, free: 2.746 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2795, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4212, allocations: 69.67 MB / 333.5 MB, free: 4 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.4215, allocations: 63.97 kB / 333.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03179/0.4534, allocations: 6.937 MB / 340.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4534, allocations: 3.938 kB / 340.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.9e-05/0.4535, allocations: 11.98 kB / 340.5 MB, free: 12.95 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.001752/0.4552, allocations: 0.7217 MB / 341.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.4553, allocations: 12.03 kB / 341.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.4555, allocations: 82.53 kB / 341.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.4556, allocations: 55.34 kB / 341.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000622/0.4563, allocations: 315.7 kB / 341.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.443e-05/0.4563, allocations: 28.78 kB / 341.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-05/0.4564, allocations: 39.95 kB / 341.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.4575, allocations: 405.5 kB / 342.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4576, allocations: 4 kB / 342.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.4576, allocations: 16 kB / 342.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.4577, allocations: 12 kB / 342.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.4588, allocations: 283 kB / 342.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006444/0.4653, allocations: 1.647 MB / 344.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.4669, allocations: 311.1 kB / 344.4 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008447/0.4678, allocations: 186.3 kB / 344.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.885e-05/0.4679, allocations: 4.281 kB / 344.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008434/0.4688, allocations: 277.2 kB / 344.9 MB, free: 8.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 5.05e-06/0.4688, allocations: 3.938 kB / 344.9 MB, free: 8.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.002552/0.4714, allocations: 478.1 kB / 345.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000212/0.4716, allocations: 217.6 kB / 345.5 MB, free: 7.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.4724, allocations: 299.4 kB / 345.8 MB, free: 7.258 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.4726, allocations: 37.7 kB / 345.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.4729, allocations: 258.9 kB / 346.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002132/0.4732, allocations: 114.4 kB / 346.2 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.072e-05/0.4732, allocations: 8 kB / 346.3 MB, free: 6.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.4734, allocations: 326.8 kB / 346.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.474, allocations: 112.9 kB / 346.7 MB, free: 6.402 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006399/0.4747, allocations: 174.7 kB / 346.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.4753, allocations: 173 kB / 347 MB, free: 6.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.4753, allocations: 0 / 347 MB, free: 6.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001966/0.4773, allocations: 489.9 kB / 347.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.4775, allocations: 67.41 kB / 347.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.4775, allocations: 0 / 347.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.4788, allocations: 155.3 kB / 347.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/0.4794, allocations: 31.92 kB / 347.7 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007615/0.4871, allocations: 5.947 MB / 353.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006564/0.4878, allocations: 51.7 kB / 353.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.035e-05/0.4879, allocations: 16 kB / 353.8 MB, free: 14.7 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.0002343/0.4881, allocations: 172.3 kB / 353.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.405e-05/0.4882, allocations: 39.53 kB / 354 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.4884, allocations: 52.19 kB / 354 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.4884, allocations: 0 / 354 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4884, allocations: 4 kB / 354 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.4884, allocations: 3.984 kB / 354 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007951/0.4892, allocations: 453 kB / 354.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.4893, allocations: 0 / 354.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.4895, allocations: 36.05 kB / 354.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007266/0.4903, allocations: 151.4 kB / 354.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.4903, allocations: 8 kB / 354.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007589/0.4979, allocations: 5.777 MB / 360.4 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.498, allocations: 4.062 kB / 360.4 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.4999, allocations: 0.5245 MB / 361 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.5002, allocations: 140.5 kB / 361.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.5003, allocations: 11.98 kB / 361.1 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/0.5008, allocations: 39.98 kB / 361.2 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.5011, allocations: 51.91 kB / 361.2 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.5012, allocations: 8 kB / 361.2 MB, free: 6.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004088/0.5016, allocations: 226.2 kB / 361.4 MB, free: 6.359 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5016, allocations: 4 kB / 361.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001052/0.5027, allocations: 167.7 kB / 361.6 MB, free: 6.191 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.002178/0.5049, allocations: 1.105 MB / 362.7 MB, free: 5.039 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.5067, allocations: 0.8879 MB / 363.6 MB, free: 4.074 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5067, allocations: 4.062 kB / 363.6 MB, free: 4.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.5079, allocations: 0.7045 MB / 364.3 MB, free: 3.301 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006791/0.5086, allocations: 86.94 kB / 364.4 MB, free: 3.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.5106, allocations: 0.6063 MB / 365 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.5112, allocations: 0.8394 MB / 365.8 MB, free: 1.711 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.5114, allocations: 123.4 kB / 366 MB, free: 1.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5114, allocations: 0 / 366 MB, free: 1.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.348/3.859, allocations: 12.67 MB / 378.6 MB, free: 87.79 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