Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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.0006261/0.0006261, allocations: 75.7 kB / 20.8 MB, free: 3.711 MB / 18.57 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.0008662/0.0008662, allocations: 166 kB / 24.09 MB, free: 424 kB / 18.57 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 0.8674/0.8674, allocations: 177.1 MB / 204.4 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.05831/0.05831, allocations: 18.13 MB / 279 MB, free: 11.5 MB / 266.7 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_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 416.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.401e-05, allocations: 2.281 kB / 416.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001711/0.001735, allocations: 1.291 MB / 417.8 MB, free: 11.51 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.002969, allocations: 1.391 MB / 419.2 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.91e-05/0.003069, allocations: 12 kB / 419.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.003366, allocations: 82.09 kB / 419.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.003537, allocations: 99.83 kB / 419.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.003917, allocations: 259.6 kB / 419.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.00418, allocations: 301.3 kB / 420 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.004299, allocations: 62.75 kB / 420 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.004409, allocations: 118.7 kB / 420.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.004567, allocations: 132.4 kB / 420.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.0046, allocations: 19.19 kB / 420.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.509e-05/0.004626, allocations: 20.44 kB / 420.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.313e-05/0.004699, allocations: 78.19 kB / 420.4 MB, free: 10 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.655e-05/0.004755, allocations: 70.3 kB / 420.5 MB, free: 9.961 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.004988, allocations: 256.6 kB / 420.7 MB, free: 9.852 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.00499, allocations: 1.469 kB / 420.7 MB, free: 9.852 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.004991, allocations: 0 / 420.7 MB, free: 9.852 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.004996, allocations: 0.75 kB / 420.7 MB, free: 9.852 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008249/0.00582, allocations: 0.622 MB / 421.3 MB, free: 9.426 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.00585, allocations: 10.02 kB / 421.3 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.005895, allocations: 45.89 kB / 421.4 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.006313, allocations: 325.5 kB / 421.7 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.006329, allocations: 15.31 kB / 421.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.006358, allocations: 20.08 kB / 421.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.006578, allocations: 213.7 kB / 422 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.006587, allocations: 192 / 422 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.006599, allocations: 6.562 kB / 422 MB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.006604, allocations: 12.56 kB / 422 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001865/0.006791, allocations: 147.7 kB / 422.1 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006189/0.00741, allocations: 0.8358 MB / 423 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.007773, allocations: 229 kB / 423.2 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.546e-05/0.007858, allocations: 73.16 kB / 423.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.007873, allocations: 2.688 kB / 423.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.145e-05/0.007884, allocations: 37.98 kB / 423.3 MB, free: 8.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.007885, allocations: 0 / 423.3 MB, free: 8.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003442/0.00823, allocations: 263.7 kB / 423.5 MB, free: 8.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.008255, allocations: 54.31 kB / 423.6 MB, free: 8.008 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.008682, allocations: 373.3 kB / 424 MB, free: 7.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.008692, allocations: 29.7 kB / 424 MB, free: 7.805 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.008768, allocations: 175.3 kB / 424.2 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.008803, allocations: 77.31 kB / 424.2 MB, free: 7.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.008847, allocations: 49.19 kB / 424.3 MB, free: 7.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.737e-05/0.008894, allocations: 340.8 kB / 424.6 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.159e-05/0.008976, allocations: 65.84 kB / 424.7 MB, free: 7.207 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.00908, allocations: 104.1 kB / 424.8 MB, free: 7.145 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006132/0.009693, allocations: 376.8 kB / 425.2 MB, free: 7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.009695, allocations: 0 / 425.2 MB, free: 7 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002589/0.009954, allocations: 257.7 kB / 425.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.009964, allocations: 5.688 kB / 425.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.009968, allocations: 1.156 kB / 425.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.009979, allocations: 2.797 kB / 425.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.01008, allocations: 42.41 kB / 425.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.01009, allocations: 5.562 kB / 425.5 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.01023, allocations: 48.56 kB / 425.5 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.01024, allocations: 10.81 kB / 425.5 MB, free: 6.855 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 9.503e-05/0.01033, allocations: 151.8 kB / 425.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.01036, allocations: 33.03 kB / 425.7 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.0104, allocations: 34.12 kB / 425.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.0104, allocations: 2.891 kB / 425.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.0104, allocations: 4 kB / 425.7 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.01041, allocations: 2.641 kB / 425.7 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.01059, allocations: 233.6 kB / 426 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01059, allocations: 2.219 kB / 426 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.0107, allocations: 32.62 kB / 426 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.0107, allocations: 1.469 kB / 426 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.01071, allocations: 6.141 kB / 426 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.01072, allocations: 2.047 kB / 426 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.01072, allocations: 0 / 426 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.01106, allocations: 397.6 kB / 426.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.01109, allocations: 37.28 kB / 426.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.01111, allocations: 1.875 kB / 426.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.01125, allocations: 38.16 kB / 426.5 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.01129, allocations: 10.83 kB / 426.5 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.01129, allocations: 8.438 kB / 426.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003037/0.0116, allocations: 288.3 kB / 426.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0116, allocations: 0 / 426.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000204/0.0118, allocations: 42.12 kB / 426.8 MB, free: 6.074 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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 5.705e-05/0.01186, allocations: 104.7 kB / 426.9 MB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002085/0.01207, allocations: 171.2 kB / 427.1 MB, free: 5.926 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-06/0.01207, allocations: 4.062 kB / 427.1 MB, free: 5.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.176e-05/0.01215, allocations: 81.69 kB / 427.2 MB, free: 5.898 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.01238, allocations: 56.86 kB / 427.2 MB, free: 5.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004962/0.01288, allocations: 0.4945 MB / 427.7 MB, free: 5.574 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.013, allocations: 173.3 kB / 427.9 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.42e-05/0.01308, allocations: 40.52 kB / 427.9 MB, free: 5.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/0.01313, allocations: 26.31 kB / 428 MB, free: 5.469 MB / 330.7 MB Notification: Performance of SimCode: time 3.2e-07/0.01313, allocations: 0 / 428 MB, free: 5.469 MB / 330.7 MB Notification: Performance of Templates: time 0.003701/0.01683, allocations: 2.158 MB / 430.1 MB, free: 5.207 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.685163530521095] Failed to read output from testmodel.py, exit status != 0: 0.021456229500472546 0.028328797000000003 0.021868031000000003 Calling exit ...