Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.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.0007294/0.0007294, allocations: 80.45 kB / 20.71 MB, free: 3.859 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.0007375/0.0007375, allocations: 169.6 kB / 23.98 MB, free: 0.582 MB / 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.8642/0.8642, allocations: 177.1 MB / 204.3 MB, free: 5.75 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.06067/0.06067, allocations: 18.13 MB / 278.8 MB, free: 11.54 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.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 416.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.59e-05, allocations: 6.281 kB / 416.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002529/0.002555, allocations: 2.433 MB / 418.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.00384, allocations: 0.7979 MB / 419.5 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.004034, allocations: 8.219 kB / 419.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.004408, allocations: 102.8 kB / 419.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.00469, allocations: 147 kB / 419.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005272/0.005218, allocations: 287 kB / 420.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005078/0.005725, allocations: 0.4923 MB / 420.6 MB, free: 9.828 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.00591, allocations: 93.39 kB / 420.7 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003701/0.00628, allocations: 213 kB / 420.9 MB, free: 9.691 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.006591, allocations: 204.8 kB / 421.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.495e-05/0.006656, allocations: 35.44 kB / 421.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5e-05/0.006706, allocations: 37 kB / 421.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.873e-05/0.006805, allocations: 111.9 kB / 421.3 MB, free: 9.562 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.006913, allocations: 134.3 kB / 421.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004338/0.007347, allocations: 434.6 kB / 421.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.00735, allocations: 0 / 421.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.007351, allocations: 0 / 421.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.007364, allocations: 0 / 421.8 MB, free: 9.316 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001338/0.008702, allocations: 0.7717 MB / 422.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.008736, allocations: 10.45 kB / 422.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.677e-05/0.008823, allocations: 52.12 kB / 422.6 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.009365, allocations: 380.9 kB / 423 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.00939, allocations: 30.12 kB / 423 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.009438, allocations: 39.08 kB / 423.1 MB, free: 8.523 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.009807, allocations: 318.4 kB / 423.4 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.009819, allocations: 1.094 kB / 423.4 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.009839, allocations: 10.95 kB / 423.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.009848, allocations: 7.719 kB / 423.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.01017, allocations: 231.7 kB / 423.6 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.01123, allocations: 0.9099 MB / 424.5 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005723/0.0118, allocations: 387.8 kB / 424.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.01197, allocations: 161.4 kB / 425.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.012, allocations: 5.531 kB / 425.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.01202, allocations: 40.92 kB / 425.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.01202, allocations: 0 / 425.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.001857/0.01388, allocations: 1.119 MB / 426.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/0.0139, allocations: 56.38 kB / 426.3 MB, free: 6.824 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.0144, allocations: 436 kB / 426.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.01442, allocations: 36.31 kB / 426.8 MB, free: 6.598 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.616e-05/0.01451, allocations: 206.6 kB / 427 MB, free: 6.426 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.01458, allocations: 159.8 kB / 427.1 MB, free: 6.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.557e-05/0.01465, allocations: 74.05 kB / 427.2 MB, free: 6.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.469e-05/0.01471, allocations: 354.5 kB / 427.5 MB, free: 5.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.01486, allocations: 114.9 kB / 427.7 MB, free: 5.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.01502, allocations: 178.9 kB / 427.8 MB, free: 5.789 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.01716, allocations: 0.9155 MB / 428.7 MB, free: 5.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01716, allocations: 4 kB / 428.7 MB, free: 5.52 MB / 330.7 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge2.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.001208/0.01837, allocations: 0.6502 MB / 429.4 MB, free: 5.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.01839, allocations: 6.031 kB / 429.4 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.0184, allocations: 1.406 kB / 429.4 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007637/0.01916, allocations: 268.1 kB / 429.7 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.01936, allocations: 83.88 kB / 429.7 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/0.02354, allocations: 8.202 MB / 438 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.02379, allocations: 43.62 kB / 438 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.02381, allocations: 14.25 kB / 438 MB, free: 13.51 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001874/0.024, allocations: 165.6 kB / 438.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.415e-05/0.02406, allocations: 46.11 kB / 438.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008902/0.02495, allocations: 0.5345 MB / 438.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.02495, allocations: 9.344 kB / 438.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.02495, allocations: 0 / 438.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.02496, allocations: 2.312 kB / 438.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.02617, allocations: 0.9055 MB / 439.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.02617, allocations: 0 / 439.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.02634, allocations: 65.58 kB / 439.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004743/0.02682, allocations: 181 kB / 439.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.02684, allocations: 14.31 kB / 439.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.02912, allocations: 2.269 MB / 442.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.02912, allocations: 0 / 442.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/0.03009, allocations: 0.7729 MB / 443 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.03014, allocations: 45.12 kB / 443 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.03017, allocations: 16.11 kB / 443 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.03036, allocations: 34.45 kB / 443.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.929e-05/0.03042, allocations: 30.94 kB / 443.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.03043, allocations: 15.81 kB / 443.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000374/0.03081, allocations: 326 kB / 443.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03081, allocations: 0 / 443.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004064/0.03121, allocations: 96.03 kB / 443.5 MB, free: 10.15 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.wg) * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001105/0.03132, allocations: 110.4 kB / 443.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006488/0.03197, allocations: 0.6585 MB / 444.3 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.03198, allocations: 1 kB / 444.3 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.03224, allocations: 300.3 kB / 444.6 MB, free: 9.344 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.03253, allocations: 63.78 kB / 444.6 MB, free: 9.305 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.03367, allocations: 0.96 MB / 445.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.03381, allocations: 238.8 kB / 445.8 MB, free: 8.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.03389, allocations: 30.41 kB / 445.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0339, allocations: 0 / 445.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of Templates: time 0.007391/0.04129, allocations: 7.853 MB / 453.7 MB, free: 1.887 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.979621483944356] Failed to read output from testmodel.py, exit status != 0: 0.04716349858790636 0.054658666 0.045682542 Calling exit ...