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.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.001529/0.001529, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001903/0.001903, allocations: 163.6 kB / 23.01 MB, free: 4.594 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.492/1.492, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.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.1042/0.1042, allocations: 17.8 MB / 277.6 MB, free: 15.36 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: 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: 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.003374/0.003374, allocations: 63.91 kB / 414.6 MB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1549, allocations: 59.55 MB / 474.2 MB, free: 8.855 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002587/0.1575, allocations: 0.9835 MB / 475.2 MB, free: 7.871 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.1594, allocations: 1.237 MB / 476.4 MB, free: 6.617 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.1595, allocations: 0 / 476.4 MB, free: 6.617 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003816/0.1599, allocations: 47.7 kB / 476.5 MB, free: 6.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1601, allocations: 43.7 kB / 476.5 MB, free: 6.527 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.1604, allocations: 99.78 kB / 476.6 MB, free: 6.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/0.1608, allocations: 251.5 kB / 476.9 MB, free: 6.184 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.161, allocations: 25.67 kB / 476.9 MB, free: 6.152 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.1611, allocations: 91.67 kB / 477 MB, free: 6.062 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.1613, allocations: 95.62 kB / 477.1 MB, free: 5.969 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.1614, allocations: 12 kB / 477.1 MB, free: 5.957 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.562e-05/0.1614, allocations: 8 kB / 477.1 MB, free: 5.949 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.445e-05/0.1615, allocations: 43.83 kB / 477.1 MB, free: 5.906 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.955e-05/0.1616, allocations: 47.67 kB / 477.2 MB, free: 5.859 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.1618, allocations: 135.4 kB / 477.3 MB, free: 5.727 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1618, allocations: 0 / 477.3 MB, free: 5.727 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1618, allocations: 0 / 477.3 MB, free: 5.727 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1618, allocations: 4 kB / 477.3 MB, free: 5.723 MB / 446.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.001269/0.1631, allocations: 445.5 kB / 477.7 MB, free: 5.254 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.1632, allocations: 16.86 kB / 477.8 MB, free: 5.238 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.1632, allocations: 16.84 kB / 477.8 MB, free: 5.223 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006259/0.1638, allocations: 227 kB / 478 MB, free: 4.973 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.1639, allocations: 4.375 kB / 478 MB, free: 4.969 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.1639, allocations: 8.375 kB / 478 MB, free: 4.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.1642, allocations: 136.5 kB / 478.1 MB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1642, allocations: 0 / 478.1 MB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.1642, allocations: 0 / 478.1 MB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1642, allocations: 0 / 478.1 MB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.1644, allocations: 87.94 kB / 478.2 MB, free: 4.727 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008134/0.1652, allocations: 0.5005 MB / 478.7 MB, free: 4.188 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.1657, allocations: 146.4 kB / 478.9 MB, free: 4.035 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.1658, allocations: 44.83 kB / 478.9 MB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.1658, allocations: 7.984 kB / 478.9 MB, free: 3.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1658, allocations: 30.56 kB / 478.9 MB, free: 3.941 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.1658, allocations: 0 / 478.9 MB, free: 3.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004028/0.1662, allocations: 169.7 kB / 479.1 MB, free: 3.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.1663, allocations: 51.41 kB / 479.2 MB, free: 3.707 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004872/0.1667, allocations: 254.6 kB / 479.4 MB, free: 3.449 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.1668, allocations: 29.7 kB / 479.4 MB, free: 3.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.508e-05/0.1669, allocations: 120.1 kB / 479.6 MB, free: 3.293 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.22e-05/0.1669, allocations: 43.64 kB / 479.6 MB, free: 3.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.816e-05/0.167, allocations: 33.7 kB / 479.6 MB, free: 3.211 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1671, allocations: 326.8 kB / 480 MB, free: 2.883 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.831e-05/0.1672, allocations: 39.97 kB / 480 MB, free: 2.844 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.1673, allocations: 73.72 kB / 480.1 MB, free: 2.766 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008013/0.1681, allocations: 246.3 kB / 480.3 MB, free: 2.516 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1681, allocations: 0 / 480.3 MB, free: 2.516 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002901/0.1684, allocations: 169.4 kB / 480.5 MB, free: 2.344 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.1684, allocations: 6.969 kB / 480.5 MB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1684, allocations: 0 / 480.5 MB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1684, allocations: 4 kB / 480.5 MB, free: 2.336 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.1686, allocations: 19.98 kB / 480.5 MB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.1686, allocations: 4 kB / 480.5 MB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.1688, allocations: 35.8 kB / 480.5 MB, free: 2.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1688, allocations: 4 kB / 480.5 MB, free: 2.273 MB / 446.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.0001933/0.169, allocations: 145.7 kB / 480.7 MB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.169, allocations: 15.91 kB / 480.7 MB, free: 2.105 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.1691, allocations: 25.45 kB / 480.7 MB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1691, allocations: 0 / 480.7 MB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.1691, allocations: 0 / 480.7 MB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1691, allocations: 4.312 kB / 480.7 MB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.1693, allocations: 161.3 kB / 480.9 MB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.1694, allocations: 3.984 kB / 480.9 MB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.1695, allocations: 20 kB / 480.9 MB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1695, allocations: 3.938 kB / 480.9 MB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1695, allocations: 0 / 480.9 MB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1695, allocations: 4 kB / 480.9 MB, free: 1.859 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1695, allocations: 0 / 480.9 MB, free: 1.859 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004255/0.1699, allocations: 283.2 kB / 481.2 MB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/0.17, allocations: 23.84 kB / 481.2 MB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.17, allocations: 0 / 481.2 MB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.1702, allocations: 24 kB / 481.2 MB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.1703, allocations: 15.98 kB / 481.3 MB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.1703, allocations: 4 kB / 481.3 MB, free: 1.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003997/0.1707, allocations: 192.3 kB / 481.5 MB, free: 1.312 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1707, allocations: 3.938 kB / 481.5 MB, free: 1.309 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.1709, allocations: 27.89 kB / 481.5 MB, free: 1.281 MB / 446.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.0001153/0.171, allocations: 103.2 kB / 481.6 MB, free: 1.172 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.1713, allocations: 107.5 kB / 481.7 MB, free: 1.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1713, allocations: 0 / 481.7 MB, free: 1.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.964e-05/0.1714, allocations: 51.84 kB / 481.7 MB, free: 1.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.1718, allocations: 29.19 kB / 481.8 MB, free: 0.9922 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006309/0.1724, allocations: 327.9 kB / 482.1 MB, free: 0.6445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.1725, allocations: 115.8 kB / 482.2 MB, free: 0.5156 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.372e-05/0.1726, allocations: 25.12 kB / 482.2 MB, free: 0.4922 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.022e-05/0.1726, allocations: 16.5 kB / 482.2 MB, free: 488 kB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1726, allocations: 3.938 kB / 482.2 MB, free: 484 kB / 446.1 MB Notification: Performance of Templates: time 0.2393/0.412, allocations: 1.348 MB / 483.6 MB, free: 52.77 MB / 446.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 -s ida -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: 4.977990732062608] Failed to read output from testmodel.py, exit status != 0: 0.42385791800916195 0.42942012599999996 0.265048489 Calling exit ...