Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004456/0.004456, allocations: 104.8 kB / 15.74 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001069, allocations: 194.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3724/0.3724, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 64.47 kB / 434.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 54.97 MB / 489.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002125/0.1097, allocations: 1.614 MB / 491 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005031/0.1102, allocations: 443.1 kB / 491.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.818e-05/0.1103, allocations: 0 / 491.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.1104, allocations: 11.88 kB / 491.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1105, allocations: 31.77 kB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.14e-05/0.1106, allocations: 15.98 kB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.554e-05/0.1107, allocations: 107.6 kB / 491.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1108, allocations: 24.22 kB / 491.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.042e-05/0.1109, allocations: 51.77 kB / 491.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.662e-05/0.111, allocations: 43.78 kB / 491.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.111, allocations: 8 kB / 491.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.369e-05/0.111, allocations: 8 kB / 491.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.251e-05/0.111, allocations: 27.84 kB / 491.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.696e-05/0.1111, allocations: 47.72 kB / 491.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.1112, allocations: 87.62 kB / 491.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1112, allocations: 4 kB / 491.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.1112, allocations: 0 / 491.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1112, allocations: 3.938 kB / 491.9 MB, free: 1.305 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004353/0.1116, allocations: 403 kB / 492.3 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.1117, allocations: 12.03 kB / 492.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.51e-05/0.1117, allocations: 42.75 kB / 492.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.1118, allocations: 16.78 kB / 492.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.1119, allocations: 192.2 kB / 492.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.1119, allocations: 4.375 kB / 492.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.381e-05/0.1119, allocations: 16.12 kB / 492.6 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.112, allocations: 77.66 kB / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.1121, allocations: 0 / 492.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1121, allocations: 7.984 kB / 492.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.1121, allocations: 0 / 492.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.761e-05/0.1122, allocations: 43.89 kB / 492.7 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.1126, allocations: 380.5 kB / 493.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.1129, allocations: 90.58 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.087e-05/0.113, allocations: 40.84 kB / 493.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.113, allocations: 0 / 493.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.113, allocations: 38.56 kB / 493.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.113, allocations: 4 kB / 493.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007045/0.1137, allocations: 415 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.1138, allocations: 51.41 kB / 493.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.1139, allocations: 148.3 kB / 493.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.1139, allocations: 25.7 kB / 493.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.114, allocations: 119.9 kB / 494 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.114, allocations: 39.64 kB / 494 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.1141, allocations: 29.72 kB / 494.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1142, allocations: 322.8 kB / 494.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.579e-05/0.1143, allocations: 24.64 kB / 494.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-05/0.1143, allocations: 50.56 kB / 494.5 MB, free: 14.48 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.1148, allocations: 254.2 kB / 494.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1148, allocations: 3.938 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002412/0.115, allocations: 146.4 kB / 494.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.1151, allocations: 7.984 kB / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1151, allocations: 4 kB / 494.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.1152, allocations: 32.78 kB / 494.9 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.133e-05/0.1153, allocations: 27.92 kB / 494.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.1167, allocations: 1.619 MB / 496.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.105e-05/0.1168, allocations: 8.031 kB / 496.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.1168, allocations: 4 kB / 496.6 MB, free: 12.2 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.Pcmd. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.117, allocations: 127.6 kB / 496.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.117, allocations: 7.953 kB / 496.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.291e-05/0.117, allocations: 16.7 kB / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1171, allocations: 4 kB / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1171, allocations: 0 / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1171, allocations: 4 kB / 496.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004972/0.1176, allocations: 448.7 kB / 497.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1176, allocations: 0 / 497.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.341e-05/0.1177, allocations: 12 kB / 497.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.1178, allocations: 44.88 kB / 497.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1178, allocations: 0 / 497.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.1189, allocations: 1.619 MB / 498.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1189, allocations: 0 / 498.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.1192, allocations: 266 kB / 499.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.1193, allocations: 93.09 kB / 499.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.1193, allocations: 8 kB / 499.2 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.1194, allocations: 0 / 499.2 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.291e-05/0.1194, allocations: 15.97 kB / 499.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1194, allocations: 8 kB / 499.2 MB, free: 9.297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.733e-05/0.1195, allocations: 117.1 kB / 499.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1195, allocations: 4.094 kB / 499.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.1199, allocations: 27.94 kB / 499.4 MB, free: 9.152 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.wg) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005888/0.1205, allocations: 0.7968 MB / 0.4884 GB, free: 8.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.1208, allocations: 202.6 kB / 0.4886 GB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1208, allocations: 0 / 0.4886 GB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.121, allocations: 154.6 kB / 0.4888 GB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.1212, allocations: 12 kB / 0.4888 GB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.1233, allocations: 1.974 MB / 0.4907 GB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.1236, allocations: 0.7084 MB / 0.4914 GB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.669e-05/0.1236, allocations: 4.891 kB / 0.4914 GB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.481e-05/0.1237, allocations: 31.42 kB / 0.4914 GB, free: 5.074 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1237, allocations: 0 / 0.4914 GB, free: 5.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.1469, allocations: 2.969 MB / 0.4943 GB, free: 2.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.38, allocations: 11.62 kB / 0.4943 GB, free: 2.246 MB / 366.1 MB (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_fixed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)