Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 112.5 kB / 17.14 MB, free: 5.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00227/0.00227, allocations: 213.1 kB / 20.11 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.566/1.566, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1058/0.1058, allocations: 24.03 MB / 333.6 MB, free: 1.578 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 65.5 kB / 466.3 MB, free: 32.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1035, allocations: 59.55 MB / 0.5135 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002901/0.1064, allocations: 1.501 MB / 0.515 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008699/0.1073, allocations: 459.1 kB / 0.5154 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.455e-05/0.1074, allocations: 4 kB / 0.5154 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.898e-05/0.1074, allocations: 7.875 kB / 0.5154 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1076, allocations: 19.83 kB / 0.5154 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.416e-05/0.1076, allocations: 11.98 kB / 0.5154 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.1078, allocations: 71.66 kB / 0.5155 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.196e-05/0.1078, allocations: 7.922 kB / 0.5155 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.108, allocations: 39.91 kB / 0.5156 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.736e-05/0.1081, allocations: 39.78 kB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1081, allocations: 4 kB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.382e-05/0.1081, allocations: 4 kB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.1082, allocations: 11.92 kB / 0.5156 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.74e-05/0.1082, allocations: 39.78 kB / 0.5157 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.891e-05/0.1083, allocations: 35.77 kB / 0.5157 GB, free: 12.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1083, allocations: 0 / 0.5157 GB, free: 12.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1083, allocations: 0 / 0.5157 GB, free: 12.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1083, allocations: 0 / 0.5157 GB, free: 12.2 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005883/0.1089, allocations: 387.2 kB / 0.5161 GB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1089, allocations: 8.625 kB / 0.5161 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.883e-05/0.109, allocations: 42.69 kB / 0.5161 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.109, allocations: 8.891 kB / 0.5161 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.1092, allocations: 184.2 kB / 0.5163 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1092, allocations: 4.375 kB / 0.5163 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.1093, allocations: 12.08 kB / 0.5163 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.1094, allocations: 73.66 kB / 0.5164 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1094, allocations: 4 kB / 0.5164 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.1094, allocations: 0 / 0.5164 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.1094, allocations: 0 / 0.5164 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.944e-05/0.1095, allocations: 35.97 kB / 0.5164 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.1101, allocations: 316.6 kB / 0.5167 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.1103, allocations: 78.64 kB / 0.5168 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.368e-05/0.1104, allocations: 36.97 kB / 0.5168 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1104, allocations: 4 kB / 0.5168 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1104, allocations: 30.56 kB / 0.5169 GB, free: 10.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1104, allocations: 0 / 0.5169 GB, free: 10.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000766/0.1112, allocations: 383 kB / 0.5172 GB, free: 10.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.1112, allocations: 55.41 kB / 0.5173 GB, free: 10.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1114, allocations: 137 kB / 0.5174 GB, free: 10.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.1114, allocations: 25.7 kB / 0.5174 GB, free: 10.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.1114, allocations: 104.2 kB / 0.5175 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.1115, allocations: 43.67 kB / 0.5176 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/0.1115, allocations: 33.7 kB / 0.5176 GB, free: 9.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1117, allocations: 314.8 kB / 0.5179 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.976e-05/0.1117, allocations: 23.98 kB / 0.5179 GB, free: 9.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-05/0.1118, allocations: 48.39 kB / 0.518 GB, free: 9.574 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.1123, allocations: 226.5 kB / 0.5182 GB, free: 9.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1123, allocations: 0 / 0.5182 GB, free: 9.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002456/0.1125, allocations: 130.4 kB / 0.5183 GB, free: 9.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1125, allocations: 10.19 kB / 0.5183 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1125, allocations: 0.75 kB / 0.5183 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/0.1127, allocations: 36.89 kB / 0.5184 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.387e-05/0.1128, allocations: 23.92 kB / 0.5184 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.1143, allocations: 1.58 MB / 0.5199 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.414e-05/0.1144, allocations: 4 kB / 0.5199 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.1144, allocations: 4 kB / 0.5199 GB, free: 7.391 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: 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: Pm = 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 (12): * Single equations (assignments): 11 * 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.0001233/0.1145, allocations: 125.8 kB / 0.5201 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.1146, allocations: 11.94 kB / 0.5201 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.1146, allocations: 12.38 kB / 0.5201 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1146, allocations: 4 kB / 0.5201 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.1146, allocations: 0 / 0.5201 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1146, allocations: 0 / 0.5201 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005002/0.1151, allocations: 384 kB / 0.5204 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1151, allocations: 0 / 0.5204 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.89e-05/0.1152, allocations: 19.98 kB / 0.5205 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.1153, allocations: 32.83 kB / 0.5205 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1153, allocations: 7.938 kB / 0.5205 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.1167, allocations: 1.58 MB / 0.522 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1167, allocations: 3.984 kB / 0.5221 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.117, allocations: 249.1 kB / 0.5223 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.1171, allocations: 85.06 kB / 0.5224 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.1171, allocations: 8.031 kB / 0.5224 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1172, allocations: 8 kB / 0.5224 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.419e-05/0.1172, allocations: 8 kB / 0.5224 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.1172, allocations: 3.938 kB / 0.5224 GB, free: 4.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.039e-05/0.1173, allocations: 107.2 kB / 0.5225 GB, free: 4.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1173, allocations: 192 / 0.5225 GB, free: 4.504 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.1177, allocations: 27.94 kB / 0.5225 GB, free: 4.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,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 (7): * Single equations (assignments): 6 * 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.0006352/0.1183, allocations: 0.7797 MB / 0.5233 GB, free: 3.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.1186, allocations: 182.6 kB / 0.5235 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1186, allocations: 0 / 0.5235 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.1188, allocations: 146.6 kB / 0.5236 GB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.1191, allocations: 11.94 kB / 0.5236 GB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.1214, allocations: 1.784 MB / 0.5254 GB, free: 1.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.1218, allocations: 0.6963 MB / 0.526 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.69e-05/0.1218, allocations: 8.547 kB / 0.526 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.1219, allocations: 23.44 kB / 0.5261 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1219, allocations: 0 / 0.5261 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.1525, allocations: 2.599 MB / 0.5286 GB, free: 14.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12, allocations: 8.422 kB / 0.5286 GB, free: 14.23 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & python3 -m fmpy simulate --output-file AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_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_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.939767511794344] Failed to read output from testmodel.py, exit status != 0: 12.087328604189679 12.102408209 11.991200528 Calling exit ...