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.001466/0.001466, allocations: 110.4 kB / 18.94 MB, free: 2.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.001843/0.001843, allocations: 216.8 kB / 22.25 MB, free: 5.121 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.961 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.1513/0.1513, allocations: 24.13 MB / 336.6 MB, free: 11.49 MB / 270.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.002165/0.002165, allocations: 80.11 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3482, allocations: 59.6 MB / 0.5204 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002846/0.351, allocations: 1.884 MB / 0.5222 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00093/0.352, allocations: 0.5608 MB / 0.5228 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.233e-05/0.3521, allocations: 2.406 kB / 0.5228 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.3524, allocations: 28.36 kB / 0.5228 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.3526, allocations: 51.31 kB / 0.5229 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3528, allocations: 63.31 kB / 0.5229 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000297/0.3531, allocations: 230.3 kB / 0.5232 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.3532, allocations: 32.5 kB / 0.5232 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.3534, allocations: 104.7 kB / 0.5233 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.3536, allocations: 93.61 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.3536, allocations: 12.06 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.918e-05/0.3537, allocations: 13 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.413e-05/0.3537, allocations: 42.28 kB / 0.5234 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.587e-05/0.3538, allocations: 71.11 kB / 0.5235 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.354, allocations: 145.8 kB / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.354, allocations: 0 / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.354, allocations: 1.438 kB / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.354, allocations: 0 / 0.5236 GB, free: 8.039 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.0009232/0.355, allocations: 430.7 kB / 0.5241 GB, free: 7.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.355, allocations: 9.891 kB / 0.5241 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.355, allocations: 44.98 kB / 0.5241 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.3551, allocations: 17.72 kB / 0.5241 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.3554, allocations: 193.9 kB / 0.5243 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.3554, allocations: 16.56 kB / 0.5243 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.3555, allocations: 16.78 kB / 0.5243 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.3557, allocations: 118.8 kB / 0.5245 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3557, allocations: 3.938 kB / 0.5245 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.3557, allocations: 5.156 kB / 0.5245 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3557, allocations: 2.812 kB / 0.5245 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.3559, allocations: 83.73 kB / 0.5245 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006818/0.3566, allocations: 439.7 kB / 0.525 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.3569, allocations: 156.9 kB / 0.5251 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.357, allocations: 63.09 kB / 0.5252 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.357, allocations: 2.344 kB / 0.5252 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.224e-05/0.357, allocations: 31.69 kB / 0.5252 GB, free: 6.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.357, allocations: 0 / 0.5252 GB, free: 6.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009197/0.358, allocations: 473 kB / 0.5257 GB, free: 6.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.358, allocations: 52.88 kB / 0.5257 GB, free: 6.559 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.3583, allocations: 198.6 kB / 0.5259 GB, free: 6.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.3583, allocations: 31.42 kB / 0.5259 GB, free: 6.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.3583, allocations: 123 kB / 0.526 GB, free: 6.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.3584, allocations: 59.2 kB / 0.5261 GB, free: 6.234 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-05/0.3584, allocations: 33.5 kB / 0.5261 GB, free: 6.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.266e-05/0.3585, allocations: 334.3 kB / 0.5265 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3586, allocations: 48.09 kB / 0.5265 GB, free: 5.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.3587, allocations: 67.97 kB / 0.5266 GB, free: 5.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007371/0.3594, allocations: 261.7 kB / 0.5268 GB, free: 5.738 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3594, allocations: 1.094 kB / 0.5268 GB, free: 5.738 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.0004864/0.3599, allocations: 246.8 kB / 0.5271 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3599, allocations: 8.312 kB / 0.5271 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3599, allocations: 0.6562 kB / 0.5271 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.3601, allocations: 52.14 kB / 0.5271 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.3603, allocations: 32.64 kB / 0.5271 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.3619, allocations: 4.451 MB / 0.5315 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.3621, allocations: 15.77 kB / 0.5315 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.3621, allocations: 8.094 kB / 0.5315 GB, free: 1.066 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.0001115/0.3622, allocations: 132.9 kB / 0.5316 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.3623, allocations: 14.66 kB / 0.5317 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.3623, allocations: 22.08 kB / 0.5317 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3623, allocations: 5.969 kB / 0.5317 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3623, allocations: 1.094 kB / 0.5317 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3623, allocations: 0.7031 kB / 0.5317 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005938/0.3629, allocations: 477.8 kB / 0.5321 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3629, allocations: 1.125 kB / 0.5321 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.363, allocations: 27.84 kB / 0.5322 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.3632, allocations: 39.81 kB / 0.5322 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3632, allocations: 7.016 kB / 0.5322 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.3643, allocations: 1.514 MB / 0.5337 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3643, allocations: 0 / 0.5337 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004928/0.3648, allocations: 342.5 kB / 0.534 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.3649, allocations: 18.03 kB / 0.534 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.3649, allocations: 7.016 kB / 0.534 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.3651, allocations: 18.95 kB / 0.5341 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.3651, allocations: 12.36 kB / 0.5341 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.3651, allocations: 7.969 kB / 0.5341 GB, free: 14.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.3654, allocations: 156.2 kB / 0.5342 GB, free: 14.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3654, allocations: 0 / 0.5342 GB, free: 14.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000412/0.3658, allocations: 34.38 kB / 0.5343 GB, free: 14.71 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.0008498/0.3667, allocations: 0.8733 MB / 0.5351 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.3672, allocations: 346.9 kB / 0.5354 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3672, allocations: 1.5 kB / 0.5354 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002936/0.3675, allocations: 187.5 kB / 0.5356 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3678, allocations: 20.89 kB / 0.5356 GB, free: 13.54 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.003546/0.3714, allocations: 2.303 MB / 0.5379 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.3718, allocations: 0.7318 MB / 0.5386 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.287e-05/0.3718, allocations: 19.89 kB / 0.5386 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/0.3719, allocations: 47.98 kB / 0.5387 GB, free: 11.1 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3719, allocations: 4 kB / 0.5387 GB, free: 11.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.4067, allocations: 4.028 MB / 0.5426 GB, free: 10.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.51, allocations: 5.266 kB / 0.5426 GB, free: 10.54 MB / 398.1 MB " [Timeout remaining time 646] (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: 16.386382345110178] Failed to read output from testmodel.py, exit status != 0: 13.628534949151799 13.65271067 13.294271175 Calling exit ...