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.0008012/0.0008012, 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.0008892/0.0008892, 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.8746/0.8746, allocations: 177.1 MB / 204.4 MB, free: 5.695 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.05889/0.05889, allocations: 18.13 MB / 279 MB, free: 11.46 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.553e-06/1.553e-06, allocations: 0 / 416.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.937e-05/3.092e-05, allocations: 2.984 kB / 416.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002585/0.002616, allocations: 2.446 MB / 419 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.003766, allocations: 0.7934 MB / 419.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.003922, allocations: 8.562 kB / 419.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003613/0.004284, allocations: 90.89 kB / 419.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.00452, allocations: 154.9 kB / 420 MB, free: 9.996 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.00498, allocations: 283.2 kB / 420.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.005381, allocations: 0.4919 MB / 420.8 MB, free: 9.648 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.005545, allocations: 89.61 kB / 420.9 MB, free: 9.602 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/0.00584, allocations: 208.8 kB / 421.1 MB, free: 9.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002744/0.006115, allocations: 208.8 kB / 421.3 MB, free: 9.449 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.006166, allocations: 35.62 kB / 421.3 MB, free: 9.449 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.43e-05/0.006211, allocations: 37.78 kB / 421.4 MB, free: 9.449 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.006309, allocations: 118.3 kB / 421.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.006411, allocations: 126.8 kB / 421.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003926/0.006803, allocations: 433.5 kB / 422 MB, free: 9.141 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.006807, allocations: 1.125 kB / 422 MB, free: 9.141 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.006808, allocations: 0 / 422 MB, free: 9.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.006816, allocations: 0 / 422 MB, free: 9.141 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.001135/0.007951, allocations: 0.7836 MB / 422.8 MB, free: 8.633 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.007988, allocations: 10.17 kB / 422.8 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.247e-05/0.00806, allocations: 52.08 kB / 422.9 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.008574, allocations: 388.5 kB / 423.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.008595, allocations: 21.78 kB / 423.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.008638, allocations: 38.66 kB / 423.3 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.008992, allocations: 320 kB / 423.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.009003, allocations: 0 / 423.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.009021, allocations: 10.53 kB / 423.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.00903, allocations: 8.062 kB / 423.7 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.009317, allocations: 236.4 kB / 423.9 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009626/0.01028, allocations: 0.9088 MB / 424.8 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005508/0.01083, allocations: 389.8 kB / 425.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.011, allocations: 150.7 kB / 425.3 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.01104, allocations: 10.06 kB / 425.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.01105, allocations: 38.16 kB / 425.4 MB, free: 7.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.512e-06/0.01105, allocations: 0 / 425.4 MB, free: 7.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.001814/0.01287, allocations: 1.12 MB / 426.5 MB, free: 6.715 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.01289, allocations: 56.08 kB / 426.5 MB, free: 6.652 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/0.01336, allocations: 441.2 kB / 427 MB, free: 6.461 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.01338, allocations: 32.02 kB / 427 MB, free: 6.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.01346, allocations: 206.2 kB / 427.2 MB, free: 6.254 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.555e-05/0.01352, allocations: 161.4 kB / 427.4 MB, free: 6.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.0136, allocations: 73.06 kB / 427.4 MB, free: 6.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.679e-05/0.01364, allocations: 349.7 kB / 427.8 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.01378, allocations: 126.5 kB / 427.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.01395, allocations: 175.2 kB / 428.1 MB, free: 5.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/0.01642, allocations: 0.9112 MB / 429 MB, free: 5.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.01642, allocations: 1.344 kB / 429 MB, free: 5.352 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.001355/0.01778, allocations: 0.6563 MB / 429.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.0178, allocations: 6.312 kB / 429.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.0178, allocations: 4 kB / 429.6 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008028/0.01861, allocations: 260.3 kB / 429.9 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.01881, allocations: 82.92 kB / 430 MB, free: 5.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004422/0.02323, allocations: 8.209 MB / 438.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.0235, allocations: 40.12 kB / 438.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.02352, allocations: 19.31 kB / 438.3 MB, free: 13.33 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.0002116/0.02373, allocations: 168.1 kB / 438.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.02379, allocations: 41.92 kB / 438.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008796/0.02467, allocations: 0.5378 MB / 439 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.02467, allocations: 4.5 kB / 439 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.02467, allocations: 4 kB / 439 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.02468, allocations: 3.781 kB / 439 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.02591, allocations: 0.9009 MB / 439.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.02591, allocations: 0 / 439.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.02609, allocations: 65.77 kB / 440 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004888/0.02658, allocations: 191.4 kB / 440.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.02661, allocations: 8.25 kB / 440.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00245/0.02906, allocations: 2.259 MB / 442.4 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.02906, allocations: 4.062 kB / 442.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009957/0.03005, allocations: 0.7696 MB / 443.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.0301, allocations: 37.83 kB / 443.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.03013, allocations: 14.67 kB / 443.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.03032, allocations: 35.58 kB / 443.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.45e-05/0.03038, allocations: 34.03 kB / 443.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.0304, allocations: 11.66 kB / 443.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003964/0.03079, allocations: 322.7 kB / 443.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03079, allocations: 7.938 kB / 443.7 MB, free: 10 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004398/0.03123, allocations: 92.19 kB / 443.7 MB, free: 9.992 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.0001221/0.03136, allocations: 113 kB / 443.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000717/0.03207, allocations: 0.6566 MB / 444.5 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.03208, allocations: 4 kB / 444.5 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.03236, allocations: 301.2 kB / 444.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.03268, allocations: 70.47 kB / 444.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.03388, allocations: 0.9266 MB / 445.8 MB, free: 8.492 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.03405, allocations: 234.2 kB / 446 MB, free: 8.348 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.03417, allocations: 53.7 kB / 446.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.225e-05/0.03425, allocations: 27.69 kB / 446.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.03425, allocations: 0 / 446.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of Templates: time 0.006696/0.04094, allocations: 4.994 MB / 451.1 MB, free: 4.551 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -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: 2.8804402370005846] Failed to read output from testmodel.py, exit status != 0: 0.04695344064384699 0.054228388 0.045641134 Calling exit ...