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.001421/0.001421, allocations: 104.6 kB / 16.45 MB, free: 6.512 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.001857/0.001857, allocations: 198.8 kB / 19.41 MB, free: 3.668 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.49/1.49, allocations: 225.6 MB / 247.8 MB, free: 13.92 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.1001/0.1001, allocations: 22.7 MB / 325.4 MB, free: 3.531 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.002703/0.002703, allocations: 71.89 kB / 457.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1571, allocations: 58.01 MB / 0.5036 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002549/0.1597, allocations: 1.026 MB / 0.5046 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.1615, allocations: 1.217 MB / 0.5058 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.367e-05/0.1616, allocations: 0 / 0.5058 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.1619, allocations: 47.7 kB / 0.5058 GB, free: 4.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.1621, allocations: 47.77 kB / 0.5059 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.1623, allocations: 83.81 kB / 0.5059 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.1626, allocations: 211.6 kB / 0.5061 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.1627, allocations: 37.34 kB / 0.5062 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.1629, allocations: 87.72 kB / 0.5063 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.1631, allocations: 99.58 kB / 0.5064 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.1631, allocations: 16 kB / 0.5064 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.1631, allocations: 8 kB / 0.5064 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.963e-05/0.1632, allocations: 43.83 kB / 0.5064 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.1633, allocations: 59.59 kB / 0.5065 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.1635, allocations: 123.4 kB / 0.5066 GB, free: 4.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1635, allocations: 4 kB / 0.5066 GB, free: 4.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1635, allocations: 0 / 0.5066 GB, free: 4.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1635, allocations: 0 / 0.5066 GB, free: 4.027 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.001284/0.1648, allocations: 0.522 MB / 0.5071 GB, free: 3.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1648, allocations: 8.031 kB / 0.5071 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.1648, allocations: 16.84 kB / 0.5071 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.1655, allocations: 300.7 kB / 0.5074 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1655, allocations: 8.312 kB / 0.5074 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.1655, allocations: 8.375 kB / 0.5074 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.1658, allocations: 124.5 kB / 0.5076 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.1658, allocations: 0 / 0.5076 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.1659, allocations: 0 / 0.5076 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1659, allocations: 4 kB / 0.5076 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.1661, allocations: 87.88 kB / 0.5076 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008515/0.1669, allocations: 0.5829 MB / 0.5082 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.1673, allocations: 138.5 kB / 0.5083 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.1674, allocations: 48.83 kB / 0.5084 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.1675, allocations: 0 / 0.5084 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.1675, allocations: 38.56 kB / 0.5084 GB, free: 1.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.1675, allocations: 0 / 0.5084 GB, free: 1.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004171/0.1679, allocations: 165.7 kB / 0.5086 GB, free: 1.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.168, allocations: 55.34 kB / 0.5086 GB, free: 1.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005222/0.1685, allocations: 254.6 kB / 0.5089 GB, free: 1.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1685, allocations: 37.7 kB / 0.5089 GB, free: 1.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.402e-05/0.1686, allocations: 116.1 kB / 0.509 GB, free: 1.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.322e-05/0.1686, allocations: 43.69 kB / 0.5091 GB, free: 1.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.1687, allocations: 21.72 kB / 0.5091 GB, free: 1.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1689, allocations: 330.8 kB / 0.5094 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.734e-05/0.169, allocations: 35.98 kB / 0.5094 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.1691, allocations: 60.38 kB / 0.5095 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/0.17, allocations: 258.2 kB / 0.5097 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.17, allocations: 0 / 0.5097 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003267/0.1703, allocations: 169.4 kB / 0.5099 GB, free: 396 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.1703, allocations: 8 kB / 0.5099 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1703, allocations: 384 / 0.5099 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1704, allocations: 0 / 0.5099 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.1705, allocations: 20 kB / 0.5099 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1705, allocations: 3.938 kB / 0.5099 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.1707, allocations: 47.84 kB / 0.51 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1707, allocations: 7.938 kB / 0.51 GB, free: 308 kB / 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.0001609/0.1709, allocations: 133.8 kB / 0.5101 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.124e-05/0.1709, allocations: 11.91 kB / 0.5101 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.171, allocations: 21.41 kB / 0.5101 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.171, allocations: 4 kB / 0.5102 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.171, allocations: 7.938 kB / 0.5102 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.171, allocations: 3.984 kB / 0.5102 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2536/0.4246, allocations: 226.8 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4246, allocations: 0 / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001872/0.4248, allocations: 16.44 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.4248, allocations: 1.016 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.4248, allocations: 4.922 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4248, allocations: 4.312 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4248, allocations: 3.75 kB / 0.5104 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004751/0.4253, allocations: 279.7 kB / 0.5107 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.607e-05/0.4253, allocations: 94.91 kB / 0.5108 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.368e-05/0.4254, allocations: 4.078 kB / 0.5108 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.4256, allocations: 27.28 kB / 0.5108 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.4257, allocations: 9.375 kB / 0.5108 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.4257, allocations: 2.391 kB / 0.5108 GB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004079/0.4261, allocations: 196 kB / 0.511 GB, free: 15.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4261, allocations: 1.375 kB / 0.511 GB, free: 15.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.4264, allocations: 24.7 kB / 0.511 GB, free: 15.65 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 0.0001148/0.4265, allocations: 107.4 kB / 0.5111 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.4268, allocations: 97.69 kB / 0.5112 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4268, allocations: 0 / 0.5112 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.956e-05/0.4269, allocations: 50.84 kB / 0.5113 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.4272, allocations: 31.89 kB / 0.5113 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007307/0.428, allocations: 326.7 kB / 0.5116 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.4282, allocations: 0.7279 MB / 0.5123 GB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.28e-05/0.4283, allocations: 34.25 kB / 0.5123 GB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.4283, allocations: 15.25 kB / 0.5124 GB, free: 14.68 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4283, allocations: 0 / 0.5124 GB, free: 14.68 MB / 382.1 MB Notification: Performance of Templates: time 0.004557/0.4329, allocations: 1.358 MB / 0.5137 GB, free: 14.65 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.0999770406633615] Failed to read output from testmodel.py, exit status != 0: 0.4422899028286338 0.45223955699999996 0.28630728399999994 Calling exit ...