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.001968/0.001968, allocations: 83.62 kB / 19.96 MB, free: 1.754 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.00277/0.00277, allocations: 159.8 kB / 23.23 MB, free: 4.883 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.57/1.57, allocations: 177.1 MB / 203.5 MB, free: 9.168 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.104/0.104, allocations: 18.14 MB / 278.1 MB, free: 15.04 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.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 2.114e-06/2.114e-06, allocations: 0 / 415.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.265e-05/3.477e-05, allocations: 8.75 kB / 415.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004621/0.004656, allocations: 2.438 MB / 418 MB, free: 108 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.006668, allocations: 0.799 MB / 418.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003222/0.00699, allocations: 7.938 kB / 418.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005316/0.007522, allocations: 91.22 kB / 418.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005582/0.00808, allocations: 154.9 kB / 419.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008026/0.008882, allocations: 287.4 kB / 419.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007842/0.009667, allocations: 0.4912 MB / 419.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.009934, allocations: 89 kB / 419.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005236/0.01046, allocations: 211.4 kB / 420.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.01088, allocations: 203.3 kB / 420.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.01099, allocations: 36 kB / 420.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.655e-05/0.01107, allocations: 44 kB / 420.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.01124, allocations: 119.5 kB / 420.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.01143, allocations: 123.5 kB / 420.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005851/0.01201, allocations: 434.4 kB / 421.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.01202, allocations: 0 / 421.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01202, allocations: 0 / 421.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.549e-05/0.01203, allocations: 0 / 421.1 MB, free: 13.04 MB / 350.1 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.002385/0.01442, allocations: 0.7736 MB / 421.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.01447, allocations: 12.92 kB / 421.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.01469, allocations: 52.61 kB / 421.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.01616, allocations: 387.7 kB / 422.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/0.0162, allocations: 25.03 kB / 422.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.403e-05/0.01627, allocations: 36.33 kB / 422.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006033/0.01688, allocations: 314.2 kB / 422.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.01689, allocations: 0 / 422.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.01693, allocations: 16 kB / 422.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.01694, allocations: 11.98 kB / 422.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005015/0.01744, allocations: 230.4 kB / 422.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.01925, allocations: 0.9071 MB / 423.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009774/0.02022, allocations: 392.5 kB / 424.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.02051, allocations: 160.2 kB / 424.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.02055, allocations: 4.328 kB / 424.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.02058, allocations: 30.89 kB / 424.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.02058, allocations: 0 / 424.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003568/0.02415, allocations: 1.115 MB / 425.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.02421, allocations: 63.34 kB / 425.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009275/0.02514, allocations: 437.5 kB / 426 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.02519, allocations: 29.7 kB / 426 MB, free: 7.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.02538, allocations: 208.7 kB / 426.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.02555, allocations: 162.6 kB / 426.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.02568, allocations: 74.19 kB / 426.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.02587, allocations: 354.8 kB / 426.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.02612, allocations: 116.9 kB / 426.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002944/0.02642, allocations: 169.7 kB / 427.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004937/0.03135, allocations: 0.9223 MB / 428 MB, free: 5.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.03136, allocations: 3.938 kB / 428 MB, free: 5.852 MB / 350.1 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.002592/0.03395, allocations: 0.6533 MB / 428.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.03397, allocations: 10.34 kB / 428.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.03398, allocations: 0 / 428.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001908/0.03589, allocations: 254.4 kB / 428.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.03628, allocations: 83.89 kB / 429 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.04677, allocations: 8.211 MB / 437.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.04733, allocations: 39.95 kB / 437.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-05/0.0474, allocations: 12 kB / 437.3 MB, free: 12.14 MB / 366.1 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.0003402/0.04774, allocations: 167.4 kB / 437.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.04786, allocations: 39.7 kB / 437.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.04966, allocations: 0.5413 MB / 438 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.04967, allocations: 8 kB / 438 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.04967, allocations: 4.062 kB / 438 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.04968, allocations: 3.984 kB / 438 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.05206, allocations: 0.9016 MB / 438.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.05206, allocations: 4 kB / 438.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003437/0.05241, allocations: 59.91 kB / 439 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.05356, allocations: 192.6 kB / 439.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.0536, allocations: 8 kB / 439.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005227/0.05883, allocations: 2.25 MB / 441.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.05883, allocations: 0 / 441.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.06096, allocations: 0.7765 MB / 442.2 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.06112, allocations: 43.75 kB / 442.2 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.0612, allocations: 8 kB / 442.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004631/0.06166, allocations: 36.06 kB / 442.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.06177, allocations: 35.88 kB / 442.3 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.06179, allocations: 8 kB / 442.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008589/0.06265, allocations: 335 kB / 442.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06265, allocations: 0 / 442.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000712/0.06337, allocations: 92 kB / 442.7 MB, free: 6.457 MB / 366.1 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.000186/0.06355, allocations: 111.4 kB / 442.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.06491, allocations: 0.6549 MB / 443.5 MB, free: 5.645 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.06491, allocations: 3.938 kB / 443.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.06548, allocations: 302.6 kB / 443.8 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.06599, allocations: 65.34 kB / 443.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.06799, allocations: 0.9321 MB / 444.8 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.0683, allocations: 228.2 kB / 445 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.06848, allocations: 51.25 kB / 445.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.06861, allocations: 32.5 kB / 445.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.06861, allocations: 0 / 445.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of Templates: time 0.2025/0.2711, allocations: 4.972 MB / 450.1 MB, free: 46.62 MB / 366.1 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: 5.0312983095645905] Failed to read output from testmodel.py, exit status != 0: 0.2807728946208954 0.30314915000000003 0.28700100100000003 Calling exit ...