Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.113e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4597/0.5709, allocations: 74.74 MB / 374.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5712, allocations: 69.33 kB / 374.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02907/0.6003, allocations: 6.964 MB / 381.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.6004, allocations: 1.219 kB / 381.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.977e-05/0.6004, allocations: 9.281 kB / 381.7 MB, free: 11.58 MB / 314.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.00151/0.6019, allocations: 0.7247 MB / 382.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.602, allocations: 8.969 kB / 382.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.6021, allocations: 84.23 kB / 382.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.6022, allocations: 55.06 kB / 382.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.6027, allocations: 319.3 kB / 382.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.6028, allocations: 26.34 kB / 382.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/0.6029, allocations: 37.78 kB / 383 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009379/0.6038, allocations: 405.4 kB / 383.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.6039, allocations: 4.438 kB / 383.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.798e-05/0.6039, allocations: 16.16 kB / 383.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.604, allocations: 8.312 kB / 383.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007872/0.6048, allocations: 276.9 kB / 383.7 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.6079, allocations: 1.639 MB / 385.3 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.6087, allocations: 316.9 kB / 385.6 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004094/0.6091, allocations: 183.7 kB / 385.8 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.6092, allocations: 4.406 kB / 385.8 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005347/0.6097, allocations: 274.2 kB / 386.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.045e-06/0.6097, allocations: 0 / 386.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.001379/0.6111, allocations: 486.3 kB / 386.5 MB, free: 9.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/0.6112, allocations: 218.5 kB / 386.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.6117, allocations: 281.3 kB / 387 MB, free: 9.105 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.6117, allocations: 39.03 kB / 387.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.6119, allocations: 262.5 kB / 387.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.612, allocations: 115.3 kB / 387.4 MB, free: 8.809 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.612, allocations: 8.219 kB / 387.5 MB, free: 8.809 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.6121, allocations: 330.4 kB / 387.8 MB, free: 8.492 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.6125, allocations: 109.8 kB / 387.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.6129, allocations: 178.5 kB / 388.1 MB, free: 8.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.6132, allocations: 173.1 kB / 388.2 MB, free: 8.359 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6133, allocations: 0 / 388.2 MB, free: 8.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001069/0.6143, allocations: 489.1 kB / 388.7 MB, free: 8.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.6144, allocations: 64.84 kB / 388.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.6144, allocations: 0 / 388.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007196/0.6151, allocations: 153.9 kB / 388.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.6155, allocations: 36.06 kB / 388.9 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005799/0.6213, allocations: 5.931 MB / 394.9 MB, free: 18.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007071/0.6221, allocations: 54.09 kB / 394.9 MB, free: 18.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.015e-05/0.6221, allocations: 24.55 kB / 395 MB, free: 18.68 MB / 330.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.0002281/0.6224, allocations: 168.8 kB / 395.1 MB, free: 18.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.644e-05/0.6225, allocations: 41.81 kB / 395.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.6226, allocations: 49.5 kB / 395.2 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.6226, allocations: 3.906 kB / 395.2 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6226, allocations: 3.953 kB / 395.2 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.6226, allocations: 5.578 kB / 395.2 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006315/0.6233, allocations: 442.1 kB / 395.7 MB, free: 18.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.6233, allocations: 4.188 kB / 395.7 MB, free: 18.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.6235, allocations: 27.72 kB / 395.7 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006262/0.6242, allocations: 150.7 kB / 395.8 MB, free: 18.26 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.6242, allocations: 9.75 kB / 395.8 MB, free: 18.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005782/0.63, allocations: 5.782 MB / 401.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6301, allocations: 3.938 kB / 401.6 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.6314, allocations: 0.5208 MB / 402.2 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.6317, allocations: 145.5 kB / 402.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.908e-05/0.6318, allocations: 13.56 kB / 402.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.6323, allocations: 34.98 kB / 402.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.6325, allocations: 60.22 kB / 402.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.6326, allocations: 10.41 kB / 402.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003236/0.6329, allocations: 230.1 kB / 402.6 MB, free: 12.63 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6329, allocations: 0 / 402.6 MB, free: 12.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001072/0.634, allocations: 161 kB / 402.8 MB, free: 12.61 MB / 330.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.001726/0.6357, allocations: 1.106 MB / 403.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.6371, allocations: 0.8503 MB / 404.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6371, allocations: 3.844 kB / 404.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008821/0.638, allocations: 0.6777 MB / 405.4 MB, free: 10.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.6386, allocations: 78.55 kB / 405.5 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.6408, allocations: 0.6792 MB / 406.2 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.6413, allocations: 0.8306 MB / 407 MB, free: 9.875 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.6415, allocations: 122.9 kB / 407.1 MB, free: 9.867 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.6416, allocations: 0 / 407.1 MB, free: 9.867 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.002/3.644, allocations: 12.7 MB / 419.8 MB, free: 6.297 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat