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.00174/0.00174, allocations: 110 kB / 18.93 MB, free: 2.945 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.002216/0.002216, allocations: 186.8 kB / 22.22 MB, free: 5.16 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.5/1.5, allocations: 225.6 MB / 251 MB, free: 13 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.119/0.119, allocations: 22.71 MB / 329 MB, free: 2.352 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: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo")
translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 67.89 kB / 463.1 MB, free: 14.62 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1563, allocations: 58.06 MB / 0.5089 GB, free: 4.461 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.005/0.1613, allocations: 1.891 MB / 0.5108 GB, free: 2.547 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001541/0.1628, allocations: 0.5262 MB / 0.5113 GB, free: 2.02 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1629, allocations: 4 kB / 0.5113 GB, free: 2.016 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004222/0.1634, allocations: 27.78 kB / 0.5113 GB, free: 1.988 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1636, allocations: 47.7 kB / 0.5114 GB, free: 1.941 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.1639, allocations: 67.88 kB / 0.5114 GB, free: 1.875 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004788/0.1644, allocations: 227.4 kB / 0.5116 GB, free: 1.652 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.1646, allocations: 33.66 kB / 0.5117 GB, free: 1.617 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.1649, allocations: 99.67 kB / 0.5118 GB, free: 1.52 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.1651, allocations: 87.66 kB / 0.5119 GB, free: 1.434 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.702e-05/0.1652, allocations: 12 kB / 0.5119 GB, free: 1.422 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.818e-05/0.1652, allocations: 16 kB / 0.5119 GB, free: 1.406 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1653, allocations: 43.77 kB / 0.5119 GB, free: 1.363 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.1655, allocations: 71.59 kB / 0.512 GB, free: 1.293 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.1658, allocations: 143.4 kB / 0.5121 GB, free: 1.152 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1658, allocations: 3.938 kB / 0.5121 GB, free: 1.148 MB / 382.1 MB
Notification: Performance of FrontEnd: time 2.314e-06/0.1658, allocations: 0 / 0.5121 GB, free: 1.148 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 8.466e-06/0.1658, allocations: 4 kB / 0.5121 GB, free: 1.145 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.001616/0.1674, allocations: 421.5 kB / 0.5125 GB, free: 0.7031 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.785e-05/0.1675, allocations: 12.03 kB / 0.5125 GB, free: 0.6914 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.1676, allocations: 20.78 kB / 0.5126 GB, free: 0.6719 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.1682, allocations: 202.1 kB / 0.5128 GB, free: 460 kB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.1683, allocations: 8.375 kB / 0.5128 GB, free: 452 kB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.1683, allocations: 12.38 kB / 0.5128 GB, free: 440 kB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.1687, allocations: 113.5 kB / 0.5129 GB, free: 320 kB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1687, allocations: 7.984 kB / 0.5129 GB, free: 312 kB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.1688, allocations: 4 kB / 0.5129 GB, free: 308 kB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1688, allocations: 4 kB / 0.5129 GB, free: 304 kB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003528/0.1691, allocations: 83.89 kB / 0.513 GB, free: 220 kB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.376/0.5451, allocations: 437.8 kB / 0.5134 GB, free: 15.66 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.5455, allocations: 153.2 kB / 0.5135 GB, free: 15.63 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.5456, allocations: 61.52 kB / 0.5136 GB, free: 15.62 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.5456, allocations: 1.594 kB / 0.5136 GB, free: 15.62 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.5456, allocations: 33.3 kB / 0.5136 GB, free: 15.59 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.5456, allocations: 1.125 kB / 0.5136 GB, free: 15.59 MB / 382.1 MB
Notification: Performance of matching and sorting (n=16): time 0.00105/0.5467, allocations: 472 kB / 0.5141 GB, free: 15.43 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/0.5467, allocations: 56.78 kB / 0.5141 GB, free: 15.36 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.547, allocations: 200.6 kB / 0.5143 GB, free: 15.26 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.547, allocations: 29.48 kB / 0.5144 GB, free: 15.23 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.5471, allocations: 116.2 kB / 0.5145 GB, free: 15.14 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.5471, allocations: 60.64 kB / 0.5145 GB, free: 15.1 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.568e-05/0.5472, allocations: 39.45 kB / 0.5146 GB, free: 15.09 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 5.885e-05/0.5472, allocations: 327 kB / 0.5149 GB, free: 14.77 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.5473, allocations: 48.81 kB / 0.5149 GB, free: 14.77 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.5475, allocations: 70.88 kB / 0.515 GB, free: 14.75 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007548/0.5482, allocations: 263.4 kB / 0.5152 GB, free: 14.73 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.5482, allocations: 0.625 kB / 0.5152 GB, free: 14.73 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.0004789/0.5487, allocations: 239.1 kB / 0.5155 GB, free: 14.66 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.5487, allocations: 5.375 kB / 0.5155 GB, free: 14.66 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.5487, allocations: 0 / 0.5155 GB, free: 14.66 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.5489, allocations: 50.84 kB / 0.5155 GB, free: 14.65 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.5491, allocations: 38.23 kB / 0.5156 GB, free: 14.65 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.5508, allocations: 4.433 MB / 0.5199 GB, free: 10.34 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.5509, allocations: 13.23 kB / 0.5199 GB, free: 10.34 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.5509, allocations: 4.219 kB / 0.5199 GB, free: 10.34 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.0001082/0.551, allocations: 141.8 kB / 0.52 GB, free: 10.23 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.5511, allocations: 14.09 kB / 0.5201 GB, free: 10.22 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.964e-05/0.5511, allocations: 20.91 kB / 0.5201 GB, free: 10.21 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.5511, allocations: 5.844 kB / 0.5201 GB, free: 10.21 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5511, allocations: 5.594 kB / 0.5201 GB, free: 10.21 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.5511, allocations: 1.734 kB / 0.5201 GB, free: 10.21 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000583/0.5517, allocations: 477.4 kB / 0.5205 GB, free: 9.938 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5517, allocations: 2.438 kB / 0.5206 GB, free: 9.938 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.5519, allocations: 30.27 kB / 0.5206 GB, free: 9.938 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001294/0.552, allocations: 36.25 kB / 0.5206 GB, free: 9.93 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.5521, allocations: 9.516 kB / 0.5206 GB, free: 9.93 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007915/0.5529, allocations: 1.517 MB / 0.5221 GB, free: 8.551 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5529, allocations: 0 / 0.5221 GB, free: 8.551 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.5533, allocations: 339.1 kB / 0.5224 GB, free: 8.336 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/0.5533, allocations: 14.81 kB / 0.5224 GB, free: 8.328 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.5533, allocations: 10.14 kB / 0.5225 GB, free: 8.324 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.5535, allocations: 13.56 kB / 0.5225 GB, free: 8.324 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.5535, allocations: 19.83 kB / 0.5225 GB, free: 8.316 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.5536, allocations: 3.781 kB / 0.5225 GB, free: 8.316 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0002171/0.5538, allocations: 153.5 kB / 0.5226 GB, free: 8.227 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.5538, allocations: 4 kB / 0.5226 GB, free: 8.223 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0003857/0.5542, allocations: 37.41 kB / 0.5227 GB, free: 8.215 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 8.985e-05/0.5542, allocations: 95.53 kB / 0.5228 GB, free: 8.129 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004922/0.5547, allocations: 347.6 kB / 0.5231 GB, free: 7.871 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5547, allocations: 0 / 0.5231 GB, free: 7.871 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.555, allocations: 189.1 kB / 0.5233 GB, free: 7.734 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.5553, allocations: 19.09 kB / 0.5233 GB, free: 7.727 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008567/0.5561, allocations: 0.5124 MB / 0.5238 GB, free: 7.387 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001725/0.5563, allocations: 0.7255 MB / 0.5245 GB, free: 6.691 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 7.39e-05/0.5564, allocations: 20.88 kB / 0.5245 GB, free: 6.684 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.5564, allocations: 20.83 kB / 0.5245 GB, free: 6.672 MB / 382.1 MB
Notification: Performance of SimCode: time 2.71e-07/0.5564, allocations: 0 / 0.5245 GB, free: 6.672 MB / 382.1 MB
Notification: Performance of Templates: time 0.006042/0.5625, allocations: 2.109 MB / 0.5266 GB, free: 6.543 MB / 382.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile [Timeout 660]
(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 & ./AES_AES.Coursework.ElecSys_case_studies.foo  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.406092439778149]
Failed to read output from testmodel.py, exit status != 0:
0.5716749839484692 0.583429881 0.41431780500000004
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7faaaee457b0>