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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.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.09513/0.09513, allocations: 22.68 MB / 325.4 MB, free: 7.934 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.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.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: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.86 kB / 457.1 MB, free: 41.34 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.1003, allocations: 58.03 MB / 0.5031 GB, free: 8.281 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002505/0.1028, allocations: 1.876 MB / 0.5049 GB, free: 6.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007272/0.1035, allocations: 0.5223 MB / 0.5054 GB, free: 5.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.1036, allocations: 4 kB / 0.5054 GB, free: 5.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.1038, allocations: 27.8 kB / 0.5055 GB, free: 5.836 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.104, allocations: 51.67 kB / 0.5055 GB, free: 5.785 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000131/0.1041, allocations: 51.92 kB / 0.5056 GB, free: 5.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.1043, allocations: 211.4 kB / 0.5058 GB, free: 5.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1044, allocations: 29.48 kB / 0.5058 GB, free: 5.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.1045, allocations: 91.69 kB / 0.5059 GB, free: 5.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1047, allocations: 91.64 kB / 0.506 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.1047, allocations: 20 kB / 0.506 GB, free: 5.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.011e-05/0.1047, allocations: 12 kB / 0.506 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.1048, allocations: 35.89 kB / 0.506 GB, free: 5.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.872e-05/0.1048, allocations: 75.53 kB / 0.5061 GB, free: 5.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.105, allocations: 147.3 kB / 0.5062 GB, free: 5.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.105, allocations: 4 kB / 0.5062 GB, free: 5.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.105, allocations: 0 / 0.5062 GB, free: 5.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.105, allocations: 0 / 0.5062 GB, free: 5.027 MB / 366.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.0008522/0.1058, allocations: 498.7 kB / 0.5067 GB, free: 4.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1059, allocations: 12.03 kB / 0.5067 GB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.536e-05/0.1059, allocations: 46.73 kB / 0.5068 GB, free: 4.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.106, allocations: 16.84 kB / 0.5068 GB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.1063, allocations: 252 kB / 0.507 GB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.1063, allocations: 12.38 kB / 0.507 GB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.1064, allocations: 16.12 kB / 0.5071 GB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.1065, allocations: 118.7 kB / 0.5072 GB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1066, allocations: 0 / 0.5072 GB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1066, allocations: 7.938 kB / 0.5072 GB, free: 3.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1066, allocations: 4 kB / 0.5072 GB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.1067, allocations: 84.75 kB / 0.5073 GB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006652/0.1074, allocations: 468.4 kB / 0.5077 GB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.1077, allocations: 159.1 kB / 0.5079 GB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.477e-05/0.1078, allocations: 60.84 kB / 0.5079 GB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.1078, allocations: 7.984 kB / 0.5079 GB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.1078, allocations: 30.56 kB / 0.508 GB, free: 3.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.1078, allocations: 0 / 0.508 GB, free: 3.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008587/0.1087, allocations: 0.5365 MB / 0.5085 GB, free: 2.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.1087, allocations: 55.41 kB / 0.5085 GB, free: 2.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.1089, allocations: 202.1 kB / 0.5087 GB, free: 2.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.109, allocations: 29.7 kB / 0.5088 GB, free: 2.207 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/0.109, allocations: 124.3 kB / 0.5089 GB, free: 2.078 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.109, allocations: 59.48 kB / 0.5089 GB, free: 2.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.1091, allocations: 37.7 kB / 0.509 GB, free: 1.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.1091, allocations: 334.8 kB / 0.5093 GB, free: 1.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.1092, allocations: 39.98 kB / 0.5093 GB, free: 1.602 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.619e-05/0.1093, allocations: 72.3 kB / 0.5094 GB, free: 1.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.1099, allocations: 261.3 kB / 0.5096 GB, free: 1.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1099, allocations: 4 kB / 0.5096 GB, free: 1.266 MB / 366.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.0004387/0.1104, allocations: 395 kB / 0.51 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.1104, allocations: 4 kB / 0.51 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1104, allocations: 3.984 kB / 0.51 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001589/0.1106, allocations: 57.7 kB / 0.5101 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.1107, allocations: 31.98 kB / 0.5101 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00312/0.1138, allocations: 4.625 MB / 0.5146 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.114, allocations: 19.95 kB / 0.5147 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.114, allocations: 4 kB / 0.5147 GB, free: 11.74 MB / 382.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.0001512/0.1142, allocations: 138.6 kB / 0.5148 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.1142, allocations: 20 kB / 0.5148 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.246e-05/0.1143, allocations: 21.19 kB / 0.5148 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1143, allocations: 3.938 kB / 0.5148 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.1143, allocations: 3.938 kB / 0.5148 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1143, allocations: 0 / 0.5148 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.115, allocations: 0.503 MB / 0.5153 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-06/0.115, allocations: 4 kB / 0.5153 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.1152, allocations: 27.92 kB / 0.5154 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.1153, allocations: 40.83 kB / 0.5154 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.1153, allocations: 4 kB / 0.5154 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.1167, allocations: 1.619 MB / 0.517 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1167, allocations: 0 / 0.517 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.1172, allocations: 347.2 kB / 0.5173 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.988e-05/0.1172, allocations: 92.95 kB / 0.5174 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.1172, allocations: 4 kB / 0.5174 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.1174, allocations: 16.02 kB / 0.5174 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.1175, allocations: 15.92 kB / 0.5174 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.1175, allocations: 4.188 kB / 0.5174 GB, free: 8.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002515/0.1178, allocations: 159.2 kB / 0.5176 GB, free: 8.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1178, allocations: 0 / 0.5176 GB, free: 8.492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.1181, allocations: 32 kB / 0.5176 GB, free: 8.461 MB / 382.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.0008466/0.119, allocations: 0.8702 MB / 0.5185 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.1195, allocations: 345.3 kB / 0.5188 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1195, allocations: 0 / 0.5188 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.1198, allocations: 190.5 kB / 0.519 GB, free: 7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.1201, allocations: 18.41 kB / 0.519 GB, free: 6.984 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.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.003525/0.1236, allocations: 2.614 MB / 0.5215 GB, free: 4.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.124, allocations: 0.728 MB / 0.5223 GB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.63e-05/0.1241, allocations: 21.41 kB / 0.5223 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.252e-05/0.1241, allocations: 43.42 kB / 0.5223 GB, free: 3.363 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1241, allocations: 0 / 0.5223 GB, free: 3.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.1575, allocations: 3.877 MB / 0.5261 GB, free: 15.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.47, allocations: 15.08 kB / 0.5261 GB, free: 15.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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.199807665776461] Failed to read output from testmodel.py, exit status != 0: 11.562544187996536 11.576677801 11.468906687 Calling exit ...