Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.001388/0.001388, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.001484/0.001484, allocations: 189 kB / 22.22 MB, free: 5.105 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.548/1.548, allocations: 225.6 MB / 251 MB, free: 13.03 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.1157/0.1157, allocations: 22.93 MB / 329.2 MB, free: 2.145 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_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator")
translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 63.89 kB / 463.4 MB, free: 14.31 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1428, allocations: 58.13 MB / 0.5093 GB, free: 4.074 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002857/0.1456, allocations: 1.032 MB / 0.5104 GB, free: 3.035 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002259/0.1479, allocations: 1.221 MB / 0.5116 GB, free: 1.797 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.1481, allocations: 7.938 kB / 0.5116 GB, free: 1.789 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.1485, allocations: 47.7 kB / 0.5116 GB, free: 1.742 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.1487, allocations: 51.75 kB / 0.5117 GB, free: 1.691 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1491, allocations: 87.86 kB / 0.5117 GB, free: 1.605 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005603/0.1497, allocations: 259.5 kB / 0.512 GB, free: 1.352 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.1498, allocations: 33.55 kB / 0.512 GB, free: 1.312 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.1501, allocations: 95.72 kB / 0.5121 GB, free: 1.219 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.1503, allocations: 99.62 kB / 0.5122 GB, free: 1.121 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.837e-05/0.1503, allocations: 12 kB / 0.5122 GB, free: 1.109 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.027e-05/0.1504, allocations: 8 kB / 0.5122 GB, free: 1.102 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.91e-05/0.1505, allocations: 43.84 kB / 0.5123 GB, free: 1.059 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 9.854e-05/0.1506, allocations: 59.59 kB / 0.5123 GB, free: 1 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.1508, allocations: 131.3 kB / 0.5124 GB, free: 0.8711 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1508, allocations: 0 / 0.5124 GB, free: 0.8711 MB / 382.1 MB
Notification: Performance of FrontEnd: time 2.334e-06/0.1508, allocations: 4 kB / 0.5124 GB, free: 0.8672 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.001e-05/0.1509, allocations: 0 / 0.5124 GB, free: 0.8672 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: 18
 * Number of variables: 18
Notification: Performance of Generate backend data structure: time 0.001525/0.1524, allocations: 449.5 kB / 0.5129 GB, free: 408 kB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.1524, allocations: 11.98 kB / 0.5129 GB, free: 396 kB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.736e-05/0.1525, allocations: 16.84 kB / 0.5129 GB, free: 380 kB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008077/0.1533, allocations: 234.9 kB / 0.5131 GB, free: 116 kB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.1534, allocations: 8.375 kB / 0.5131 GB, free: 108 kB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.1534, allocations: 8.328 kB / 0.5131 GB, free: 100 kB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.3085/0.4619, allocations: 127.5 kB / 0.5133 GB, free: 15.01 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.4619, allocations: 3.219 kB / 0.5133 GB, free: 15.01 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.462, allocations: 4.812 kB / 0.5133 GB, free: 15.01 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.462, allocations: 2 kB / 0.5133 GB, free: 15.01 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003343/0.4623, allocations: 88.02 kB / 0.5134 GB, free: 15.01 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008859/0.4632, allocations: 0.5464 MB / 0.5139 GB, free: 14.61 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.4636, allocations: 135.7 kB / 0.514 GB, free: 14.59 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4637, allocations: 46.75 kB / 0.5141 GB, free: 14.58 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.4637, allocations: 1.875 kB / 0.5141 GB, free: 14.58 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.4638, allocations: 36.39 kB / 0.5141 GB, free: 14.54 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=10): time 2.504e-06/0.4638, allocations: 0 / 0.5141 GB, free: 14.54 MB / 382.1 MB
Notification: Performance of matching and sorting (n=10): time 0.0004925/0.4642, allocations: 170.7 kB / 0.5143 GB, free: 14.51 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.4643, allocations: 54.38 kB / 0.5143 GB, free: 14.45 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000486/0.4648, allocations: 251 kB / 0.5146 GB, free: 14.34 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.4648, allocations: 28.86 kB / 0.5146 GB, free: 14.31 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.4648, allocations: 118.9 kB / 0.5147 GB, free: 14.22 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.4649, allocations: 39.56 kB / 0.5147 GB, free: 14.2 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.4649, allocations: 25.62 kB / 0.5148 GB, free: 14.19 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 5.63e-05/0.465, allocations: 334 kB / 0.5151 GB, free: 13.88 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.4651, allocations: 36 kB / 0.5151 GB, free: 13.88 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.465e-05/0.4652, allocations: 65.09 kB / 0.5152 GB, free: 13.85 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007734/0.4659, allocations: 246.7 kB / 0.5154 GB, free: 13.83 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4659, allocations: 0.6875 kB / 0.5154 GB, free: 13.83 MB / 382.1 MB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002689/0.4662, allocations: 175.2 kB / 0.5156 GB, free: 13.79 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4662, allocations: 5.438 kB / 0.5156 GB, free: 13.79 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.4662, allocations: 1.141 kB / 0.5156 GB, free: 13.79 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.4662, allocations: 5.25 kB / 0.5156 GB, free: 13.78 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.4664, allocations: 25.73 kB / 0.5156 GB, free: 13.78 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4664, allocations: 3.438 kB / 0.5156 GB, free: 13.78 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.4665, allocations: 32.3 kB / 0.5156 GB, free: 13.78 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.4666, allocations: 2.875 kB / 0.5157 GB, free: 13.78 MB / 382.1 MB
Warning: Assuming fixed start value for the following 2 variables:
         g.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
         Cps.x_scaled[1]:VARIABLE(fixed = true protected = true )  \"Scaled vector x\" type: Real [1]
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 1 (N.local_reset)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (15):
 * 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: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.4667, allocations: 138.8 kB / 0.5158 GB, free: 13.67 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.4667, allocations: 17.97 kB / 0.5158 GB, free: 13.66 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.296e-05/0.4668, allocations: 25.53 kB / 0.5158 GB, free: 13.65 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4668, allocations: 5.344 kB / 0.5158 GB, free: 13.65 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4668, allocations: 0 / 0.5158 GB, free: 13.65 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4668, allocations: 0 / 0.5158 GB, free: 13.65 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/0.467, allocations: 209.3 kB / 0.516 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.467, allocations: 0 / 0.516 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.4672, allocations: 17.83 kB / 0.516 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4672, allocations: 2.656 kB / 0.516 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.4672, allocations: 9.375 kB / 0.5161 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4672, allocations: 0.6562 kB / 0.5161 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4672, allocations: 0 / 0.5161 GB, free: 13.49 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.4675, allocations: 279.3 kB / 0.5163 GB, free: 13.35 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.4676, allocations: 25.34 kB / 0.5164 GB, free: 13.34 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.4676, allocations: 5.75 kB / 0.5164 GB, free: 13.34 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.4678, allocations: 29.2 kB / 0.5164 GB, free: 13.34 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.4679, allocations: 5.609 kB / 0.5164 GB, free: 13.34 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.4679, allocations: 2.125 kB / 0.5164 GB, free: 13.34 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0003698/0.4682, allocations: 203.6 kB / 0.5166 GB, free: 13.26 MB / 382.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4682, allocations: 7.094 kB / 0.5166 GB, free: 13.26 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0002824/0.4685, allocations: 23.03 kB / 0.5166 GB, free: 13.26 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 3 (N.y,Cps.x_scaled[1],g.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 (10):
 * Single equations (assignments): 10
 * 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 8.031e-05/0.4686, allocations: 96.56 kB / 0.5167 GB, free: 13.18 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002562/0.4689, allocations: 105.2 kB / 0.5168 GB, free: 13.17 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4689, allocations: 0 / 0.5168 GB, free: 13.17 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.514e-05/0.469, allocations: 46.97 kB / 0.5169 GB, free: 13.17 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.4693, allocations: 29.89 kB / 0.5169 GB, free: 13.17 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005949/0.4699, allocations: 331.3 kB / 0.5172 GB, free: 12.99 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001544/0.47, allocations: 0.7295 MB / 0.5179 GB, free: 12.3 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 8.511e-05/0.4701, allocations: 30.89 kB / 0.5179 GB, free: 12.29 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.4702, allocations: 14.28 kB / 0.518 GB, free: 12.28 MB / 382.1 MB
Notification: Performance of SimCode: time 2.7e-07/0.4702, allocations: 0 / 0.518 GB, free: 12.28 MB / 382.1 MB
Notification: Performance of Templates: time 0.004648/0.4748, allocations: 1.421 MB / 0.5193 GB, free: 12.19 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile [Timeout 660]
(rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.236767962574959]
Failed to read output from testmodel.py, exit status != 0:
0.4835340129211545 0.49482386400000006 0.341139368
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fc3055b17b0>