Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.001498/0.001498, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.00138/0.00138, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.458/1.458, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.1045/0.1045, allocations: 24.03 MB / 333.6 MB, free: 1.645 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.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",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.002048/0.002048, allocations: 64.86 kB / 468.4 MB, free: 31.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09583, allocations: 59.55 MB / 0.5156 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003043/0.09888, allocations: 1.874 MB / 0.5174 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009741/0.09985, allocations: 0.5612 MB / 0.5179 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.148e-05/0.09992, allocations: 0 / 0.5179 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.1002, allocations: 31.8 kB / 0.518 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.1003, allocations: 51.67 kB / 0.518 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.1005, allocations: 59.91 kB / 0.5181 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.1007, allocations: 207.4 kB / 0.5183 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1008, allocations: 41.47 kB / 0.5183 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.1011, allocations: 87.69 kB / 0.5184 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.1012, allocations: 95.64 kB / 0.5185 GB, free: 9.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.1013, allocations: 12 kB / 0.5185 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.555e-05/0.1013, allocations: 12 kB / 0.5185 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.17e-05/0.1013, allocations: 39.78 kB / 0.5186 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.94e-05/0.1014, allocations: 71.64 kB / 0.5186 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.1016, allocations: 147.4 kB / 0.5188 GB, free: 8.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.1016, allocations: 0 / 0.5188 GB, free: 8.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1016, allocations: 4 kB / 0.5188 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.1016, allocations: 0 / 0.5188 GB, free: 8.91 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000974/0.1026, allocations: 0.4908 MB / 0.5192 GB, free: 8.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1026, allocations: 16.61 kB / 0.5193 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.907e-05/0.1027, allocations: 46.69 kB / 0.5193 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.03e-05/0.1027, allocations: 16.84 kB / 0.5193 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.1031, allocations: 256 kB / 0.5196 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.1031, allocations: 12.31 kB / 0.5196 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.1032, allocations: 20.06 kB / 0.5196 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.1034, allocations: 113.6 kB / 0.5197 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1034, allocations: 0 / 0.5197 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.1034, allocations: 8 kB / 0.5197 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1034, allocations: 4 kB / 0.5197 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.1037, allocations: 83.94 kB / 0.5198 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007754/0.1044, allocations: 464.4 kB / 0.5202 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.1048, allocations: 154.7 kB / 0.5204 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1049, allocations: 64.83 kB / 0.5204 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.1049, allocations: 0 / 0.5204 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.1049, allocations: 30.56 kB / 0.5205 GB, free: 6.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 9.72e-07/0.1049, allocations: 0 / 0.5205 GB, free: 6.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001029/0.106, allocations: 0.5413 MB / 0.521 GB, free: 6.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.106, allocations: 51.41 kB / 0.5211 GB, free: 6.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.1063, allocations: 198.2 kB / 0.5212 GB, free: 6.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.1063, allocations: 33.7 kB / 0.5213 GB, free: 6.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.873e-05/0.1064, allocations: 116.3 kB / 0.5214 GB, free: 5.965 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.1065, allocations: 59.48 kB / 0.5214 GB, free: 5.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.1065, allocations: 37.7 kB / 0.5215 GB, free: 5.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1067, allocations: 330.8 kB / 0.5218 GB, free: 5.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.1068, allocations: 43.97 kB / 0.5218 GB, free: 5.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.1069, allocations: 73.64 kB / 0.5219 GB, free: 5.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008008/0.1077, allocations: 259.7 kB / 0.5222 GB, free: 5.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1077, allocations: 0 / 0.5222 GB, free: 5.148 MB / 382.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005902/0.1083, allocations: 391.5 kB / 0.5225 GB, free: 4.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1083, allocations: 6.344 kB / 0.5225 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1083, allocations: 3.938 kB / 0.5225 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000171/0.1085, allocations: 53.72 kB / 0.5226 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.1087, allocations: 39.92 kB / 0.5226 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003122/0.1118, allocations: 4.64 MB / 0.5272 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.112, allocations: 16.02 kB / 0.5272 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.112, allocations: 7.938 kB / 0.5272 GB, free: 15.61 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.1121, allocations: 137.6 kB / 0.5273 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.1122, allocations: 15.91 kB / 0.5273 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.1122, allocations: 21.23 kB / 0.5273 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1122, allocations: 7.922 kB / 0.5274 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.1122, allocations: 0 / 0.5274 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1122, allocations: 7.984 kB / 0.5274 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007099/0.113, allocations: 0.4969 MB / 0.5278 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.113, allocations: 0 / 0.5278 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.1131, allocations: 31.92 kB / 0.5279 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.1132, allocations: 32.83 kB / 0.5279 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.1133, allocations: 4 kB / 0.5279 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.1146, allocations: 1.619 MB / 0.5295 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1146, allocations: 8.078 kB / 0.5295 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.1151, allocations: 340 kB / 0.5298 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.1151, allocations: 89.09 kB / 0.5299 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.1152, allocations: 4 kB / 0.5299 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1154, allocations: 11.98 kB / 0.5299 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.1154, allocations: 23.92 kB / 0.53 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.1154, allocations: 0 / 0.53 GB, free: 12.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002659/0.1157, allocations: 159.1 kB / 0.5301 GB, free: 12.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1157, allocations: 0 / 0.5301 GB, free: 12.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.1161, allocations: 32 kB / 0.5301 GB, free: 12.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (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 Backend phase and start with SimCode phase: time 0.0007889/0.1169, allocations: 0.8711 MB / 0.531 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.1174, allocations: 358.1 kB / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1174, allocations: 0 / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.1177, allocations: 182.7 kB / 0.5315 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.118, allocations: 22.23 kB / 0.5315 GB, free: 10.86 MB / 398.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.1215, allocations: 2.625 MB / 0.5341 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.1218, allocations: 0.7319 MB / 0.5348 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.675e-05/0.1219, allocations: 21.42 kB / 0.5348 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.224e-05/0.122, allocations: 47.42 kB / 0.5349 GB, free: 7.223 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.122, allocations: 0 / 0.5349 GB, free: 7.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03354/0.1555, allocations: 3.847 MB / 0.5386 GB, free: 3.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.02, allocations: 15.3 kB / 0.5386 GB, free: 3.445 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_case_studies.foo_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.958716419991106] Failed to read output from testmodel.py, exit status != 0: 12.124525148887187 12.150938735 12.044468278 Calling exit ...