Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.679e-05, allocations: 0 / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1402, allocations: 50.42 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4686/0.6088, allocations: 84.36 MB / 427.5 MB, free: 9.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.6092, allocations: 74.45 kB / 427.6 MB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05315/0.6624, allocations: 11.31 MB / 438.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6624, allocations: 0 / 438.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.716e-05/0.6625, allocations: 12 kB / 438.9 MB, free: 15.89 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002222/0.6647, allocations: 0.7958 MB / 439.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.6648, allocations: 8.031 kB / 439.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.665, allocations: 78.95 kB / 439.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.6652, allocations: 67.25 kB / 439.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.6664, allocations: 401.3 kB / 440.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/0.6664, allocations: 33.72 kB / 440.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.881e-05/0.6665, allocations: 34.88 kB / 440.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.6677, allocations: 424.3 kB / 440.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.6677, allocations: 0 / 440.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.6678, allocations: 22.02 kB / 440.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.6678, allocations: 15.94 kB / 440.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008693/0.6687, allocations: 283.3 kB / 441.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004352/0.6731, allocations: 1.745 MB / 442.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/0.6741, allocations: 347.8 kB / 443.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.6746, allocations: 180.5 kB / 443.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.6747, allocations: 4 kB / 443.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005894/0.6753, allocations: 253.7 kB / 443.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.887e-06/0.6753, allocations: 0 / 443.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001587/0.6769, allocations: 458.7 kB / 444 MB, free: 11.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001602/0.6771, allocations: 183.9 kB / 444.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009541/0.6781, allocations: 441.5 kB / 444.6 MB, free: 11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.6783, allocations: 43.31 kB / 444.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.6785, allocations: 259.9 kB / 444.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.6787, allocations: 116.9 kB / 445 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.6788, allocations: 6.625 kB / 445 MB, free: 10.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.6789, allocations: 356.9 kB / 445.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.6793, allocations: 112.4 kB / 445.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.6798, allocations: 205.4 kB / 445.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.6801, allocations: 121.3 kB / 445.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.6801, allocations: 0 / 445.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00128/0.6814, allocations: 465.2 kB / 446.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.6815, allocations: 7.938 kB / 446.3 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.6815, allocations: 3.953 kB / 446.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008613/0.6824, allocations: 150.8 kB / 446.4 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.6829, allocations: 55.12 kB / 446.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/0.6898, allocations: 5.921 MB / 452.4 MB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.6907, allocations: 64.34 kB / 452.5 MB, free: 3.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.6908, allocations: 11.5 kB / 452.5 MB, free: 3.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0002191/0.691, allocations: 141 kB / 452.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.6912, allocations: 51.34 kB / 452.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.6928, allocations: 0.4891 MB / 453.2 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.6929, allocations: 4 kB / 453.2 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.6929, allocations: 0 / 453.2 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.6929, allocations: 0 / 453.2 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.694, allocations: 0.4982 MB / 453.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.694, allocations: 0 / 453.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/0.6943, allocations: 38.97 kB / 453.7 MB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007713/0.6951, allocations: 150.9 kB / 453.8 MB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-05/0.6952, allocations: 14.36 kB / 453.9 MB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006962/0.7022, allocations: 5.769 MB / 459.6 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.7022, allocations: 0 / 459.6 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.7038, allocations: 0.4935 MB / 460.1 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/0.7043, allocations: 170 kB / 460.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.7044, allocations: 6.5 kB / 460.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005642/0.705, allocations: 42.53 kB / 460.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.7053, allocations: 58.34 kB / 460.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.7053, allocations: 11.88 kB / 460.4 MB, free: 11.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006829/0.706, allocations: 351.7 kB / 460.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.706, allocations: 0 / 460.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001305/0.7073, allocations: 188 kB / 460.9 MB, free: 11.17 MB / 378.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,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.003091/0.7105, allocations: 1.348 MB / 462.3 MB, free: 10 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.7123, allocations: 0.7527 MB / 463 MB, free: 9.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.7124, allocations: 4 kB / 463 MB, free: 9.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.7135, allocations: 0.6084 MB / 463.6 MB, free: 8.555 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.7146, allocations: 109.9 kB / 463.8 MB, free: 8.449 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003554/0.7182, allocations: 0.7955 MB / 464.5 MB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000646/0.7189, allocations: 0.8787 MB / 465.4 MB, free: 6.711 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004617/0.7194, allocations: 55.42 kB / 465.5 MB, free: 6.656 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/0.7198, allocations: 163.4 kB / 465.6 MB, free: 6.496 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.7198, allocations: 0 / 465.6 MB, free: 6.496 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06276/0.7826, allocations: 12.81 MB / 478.4 MB, free: 9.84 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003735/0.783, allocations: 239.7 kB / 478.7 MB, free: 9.527 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.236/4.019, allocations: 0 / 478.7 MB, free: 9.527 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat