Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.001816/0.001816, allocations: 108.8 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.001448/0.001448, allocations: 192 kB / 22.23 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.522/1.522, allocations: 225.6 MB / 251 MB, free: 13.01 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.09977/0.09977, allocations: 22.7 MB / 329 MB, free: 2.449 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.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain")
translateModel(AES.Coursework.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 67.89 kB / 463.1 MB, free: 14.61 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1314, allocations: 58.05 MB / 0.5089 GB, free: 4.457 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001848/0.1333, allocations: 0.5883 MB / 0.5095 GB, free: 3.871 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0001792/0.1335, allocations: 27.89 kB / 0.5095 GB, free: 3.844 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.586e-05/0.1335, allocations: 0 / 0.5095 GB, free: 3.844 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 2.189e-05/0.1335, allocations: 3.938 kB / 0.5095 GB, free: 3.84 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.958e-05/0.1336, allocations: 11.92 kB / 0.5096 GB, free: 3.828 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001151/0.1337, allocations: 11.98 kB / 0.5096 GB, free: 3.816 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 8.652e-05/0.1338, allocations: 27.86 kB / 0.5096 GB, free: 3.789 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.807e-05/0.1339, allocations: 4 kB / 0.5096 GB, free: 3.785 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 3.22e-05/0.1339, allocations: 19.92 kB / 0.5096 GB, free: 3.766 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.95e-05/0.134, allocations: 15.86 kB / 0.5096 GB, free: 3.75 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.134, allocations: 4 kB / 0.5096 GB, free: 3.746 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.042e-05/0.134, allocations: 0 / 0.5096 GB, free: 3.746 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.134, allocations: 15.91 kB / 0.5096 GB, free: 3.73 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.049e-05/0.1341, allocations: 15.88 kB / 0.5097 GB, free: 3.715 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 8.071e-05/0.1342, allocations: 27.84 kB / 0.5097 GB, free: 3.688 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1342, allocations: 0 / 0.5097 GB, free: 3.688 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.543e-06/0.1342, allocations: 0 / 0.5097 GB, free: 3.688 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.008e-05/0.1342, allocations: 0 / 0.5097 GB, free: 3.688 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: 7
 * Number of variables: 7
Notification: Performance of Generate backend data structure: time 0.0005054/0.1347, allocations: 286.2 kB / 0.51 GB, free: 3.375 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1347, allocations: 12.03 kB / 0.51 GB, free: 3.363 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.1347, allocations: 0.9375 kB / 0.51 GB, free: 3.363 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.1349, allocations: 114.5 kB / 0.5101 GB, free: 3.227 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1349, allocations: 8.375 kB / 0.5101 GB, free: 3.219 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/0.1349, allocations: 4.359 kB / 0.5101 GB, free: 3.215 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.1351, allocations: 54.19 kB / 0.5101 GB, free: 3.156 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1351, allocations: 192 / 0.5101 GB, free: 3.156 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.1351, allocations: 7.938 kB / 0.5102 GB, free: 3.148 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1351, allocations: 0 / 0.5102 GB, free: 3.148 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.92e-05/0.1351, allocations: 19.98 kB / 0.5102 GB, free: 3.129 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.1356, allocations: 247.8 kB / 0.5104 GB, free: 2.844 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.1358, allocations: 50.56 kB / 0.5105 GB, free: 2.785 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.432e-05/0.1358, allocations: 16.8 kB / 0.5105 GB, free: 2.766 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.1358, allocations: 3.938 kB / 0.5105 GB, free: 2.762 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.1358, allocations: 38.5 kB / 0.5105 GB, free: 2.715 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1358, allocations: 0 / 0.5105 GB, free: 2.715 MB / 382.1 MB
Notification: Performance of matching and sorting (n=4): time 0.0002041/0.136, allocations: 65.72 kB / 0.5106 GB, free: 2.645 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1361, allocations: 55.41 kB / 0.5106 GB, free: 2.578 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1362, allocations: 121.8 kB / 0.5107 GB, free: 2.449 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.1362, allocations: 29.7 kB / 0.5108 GB, free: 2.414 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.643e-05/0.1363, allocations: 92.08 kB / 0.5109 GB, free: 2.32 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.1363, allocations: 15.91 kB / 0.5109 GB, free: 2.305 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.1363, allocations: 17.72 kB / 0.5109 GB, free: 2.281 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001452/0.1365, allocations: 314.8 kB / 0.5112 GB, free: 1.965 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 2.968e-05/0.1365, allocations: 12 kB / 0.5112 GB, free: 1.953 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.043e-05/0.1366, allocations: 33.64 kB / 0.5112 GB, free: 1.914 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.1369, allocations: 77.62 kB / 0.5113 GB, free: 1.832 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1369, allocations: 0 / 0.5113 GB, free: 1.832 MB / 382.1 MB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001244/0.137, allocations: 77.58 kB / 0.5114 GB, free: 1.75 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.137, allocations: 8 kB / 0.5114 GB, free: 1.742 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.137, allocations: 4.031 kB / 0.5114 GB, free: 1.738 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.137, allocations: 0 / 0.5114 GB, free: 1.738 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1371, allocations: 19.98 kB / 0.5114 GB, free: 1.719 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1371, allocations: 0 / 0.5114 GB, free: 1.719 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.077e-05/0.1372, allocations: 4 kB / 0.5114 GB, free: 1.715 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.1372, allocations: 0 / 0.5114 GB, free: 1.715 MB / 382.1 MB
Warning: Assuming fixed start value for the following 2 variables:
         Ta:VARIABLE(start = 10.0 fixed = true )  type: Real
         Tw:VARIABLE(start = 10.0 fixed = true )  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 (8):
 * Single equations (assignments): 8
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.1374, allocations: 132.2 kB / 0.5115 GB, free: 1.578 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1374, allocations: 8 kB / 0.5116 GB, free: 1.57 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.1375, allocations: 11.98 kB / 0.5116 GB, free: 1.555 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1375, allocations: 0 / 0.5116 GB, free: 1.555 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1375, allocations: 4 kB / 0.5116 GB, free: 1.551 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1375, allocations: 0 / 0.5116 GB, free: 1.551 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.1378, allocations: 136.7 kB / 0.5117 GB, free: 1.375 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1378, allocations: 3.984 kB / 0.5117 GB, free: 1.371 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.965e-05/0.1379, allocations: 15.94 kB / 0.5117 GB, free: 1.355 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.1379, allocations: 4.188 kB / 0.5117 GB, free: 1.352 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1379, allocations: 4.062 kB / 0.5117 GB, free: 1.348 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1379, allocations: 0 / 0.5117 GB, free: 1.348 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1379, allocations: 4 kB / 0.5117 GB, free: 1.344 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.1381, allocations: 175.3 kB / 0.5119 GB, free: 1.156 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.1381, allocations: 7.984 kB / 0.5119 GB, free: 1.148 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.1381, allocations: 4 kB / 0.5119 GB, free: 1.145 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.298e-05/0.1382, allocations: 0 / 0.5119 GB, free: 1.145 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.57e-05/0.1382, allocations: 7.984 kB / 0.5119 GB, free: 1.137 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.1382, allocations: 0 / 0.5119 GB, free: 1.137 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 6.465e-05/0.1383, allocations: 95.33 kB / 0.512 GB, free: 1.043 MB / 382.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.1383, allocations: 7.938 kB / 0.512 GB, free: 1.035 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0002103/0.1385, allocations: 4 kB / 0.512 GB, free: 1.031 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (Ta,Tw)
 * 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 (4):
 * Single equations (assignments): 4
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001163/0.1386, allocations: 99.25 kB / 0.5121 GB, free: 0.9258 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001232/0.1387, allocations: 27.92 kB / 0.5121 GB, free: 0.8984 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1387, allocations: 0 / 0.5121 GB, free: 0.8984 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 2.11e-05/0.1387, allocations: 12 kB / 0.5122 GB, free: 0.8867 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.1389, allocations: 7.938 kB / 0.5122 GB, free: 0.8789 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003706/0.1393, allocations: 162.1 kB / 0.5123 GB, free: 0.6953 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2269/0.3662, allocations: 0.6885 MB / 0.513 GB, free: 14.31 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 5.96e-05/0.3663, allocations: 0 / 0.513 GB, free: 14.31 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.3663, allocations: 9.125 kB / 0.513 GB, free: 14.3 MB / 382.1 MB
Notification: Performance of SimCode: time 1.473e-06/0.3663, allocations: 0 / 0.513 GB, free: 14.3 MB / 382.1 MB
Notification: Performance of Templates: time 0.00327/0.3696, allocations: 438.6 kB / 0.5134 GB, free: 14.3 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.makefile [Timeout 660]
(rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & ./AES_AES.Coursework.Modelling_principles.M2_PhasorDomain  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.213805626146495]
Failed to read output from testmodel.py, exit status != 0:
0.379304233007133 0.391894416 0.255160908
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f6b500117b0>