Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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.001151/0.001151, allocations: 91.56 kB / 20.45 MB, free: 4.117 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.003588/0.003588, allocations: 169 kB / 23.82 MB, free: 0.7539 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.9924/0.9924, allocations: 177.2 MB / 204.2 MB, free: 5.637 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.06696/0.06696, allocations: 18.14 MB / 278.9 MB, free: 11.32 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_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 357.3 MB, free: 8.863 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.279e-05/3.467e-05, allocations: 2.312 kB / 357.3 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003093/0.003127, allocations: 2.484 MB / 359.8 MB, free: 6.355 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.004521, allocations: 0.7872 MB / 360.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.004724, allocations: 7.938 kB / 360.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003901/0.005114, allocations: 91.22 kB / 360.7 MB, free: 5.469 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.005426, allocations: 143 kB / 360.8 MB, free: 5.328 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.005904, allocations: 291.3 kB / 361.1 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.006367, allocations: 475.1 kB / 361.6 MB, free: 4.578 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.006542, allocations: 89.19 kB / 361.7 MB, free: 4.488 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.006889, allocations: 199.4 kB / 361.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.007153, allocations: 183.4 kB / 362 MB, free: 4.113 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.439e-05/0.007207, allocations: 36 kB / 362.1 MB, free: 4.078 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.986e-05/0.007247, allocations: 35.94 kB / 362.1 MB, free: 4.043 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.106e-05/0.007338, allocations: 115.6 kB / 362.2 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.354e-05/0.007432, allocations: 123.6 kB / 362.3 MB, free: 3.809 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.007716, allocations: 278.7 kB / 362.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.00772, allocations: 0 / 362.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.007722, allocations: 4 kB / 362.6 MB, free: 3.531 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.007729, allocations: 0 / 362.6 MB, free: 3.531 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009543/0.008684, allocations: 0.8034 MB / 363.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.008723, allocations: 8.922 kB / 363.4 MB, free: 2.684 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.851e-05/0.008822, allocations: 80.59 kB / 363.5 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004299/0.009252, allocations: 337 kB / 363.8 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.009281, allocations: 28.97 kB / 363.9 MB, free: 2.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.123e-05/0.009333, allocations: 36.33 kB / 363.9 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.00963, allocations: 246.5 kB / 364.1 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.009639, allocations: 0 / 364.1 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.009659, allocations: 12 kB / 364.1 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.009671, allocations: 12 kB / 364.2 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.00987, allocations: 123.8 kB / 364.3 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.01093, allocations: 0.9817 MB / 365.3 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.01139, allocations: 272 kB / 365.5 MB, free: 476 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.01151, allocations: 91.64 kB / 365.6 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.01153, allocations: 4 kB / 365.6 MB, free: 376 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.01155, allocations: 41.39 kB / 365.7 MB, free: 324 kB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 1.443e-06/0.01156, allocations: 0 / 365.7 MB, free: 324 kB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.00136/0.01292, allocations: 0.7812 MB / 366.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.01296, allocations: 55.41 kB / 366.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.01332, allocations: 386.7 kB / 366.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.01335, allocations: 33.7 kB / 366.9 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.01351, allocations: 251.4 kB / 367.1 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.162e-05/0.0136, allocations: 150.7 kB / 367.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.394e-05/0.01369, allocations: 75.86 kB / 367.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.01387, allocations: 0.5274 MB / 367.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.01397, allocations: 56.97 kB / 368 MB, free: 13.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.0141, allocations: 131.4 kB / 368.1 MB, free: 13.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.01446, allocations: 297.4 kB / 368.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01446, allocations: 0 / 368.4 MB, free: 13.45 MB / 346.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.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd 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.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006194/0.01508, allocations: 423.4 kB / 368.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.0151, allocations: 8 kB / 368.8 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01511, allocations: 0 / 368.8 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.01547, allocations: 119.1 kB / 368.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.01568, allocations: 79.91 kB / 369 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004529/0.02021, allocations: 10.75 MB / 379.7 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.02042, allocations: 23.92 kB / 379.8 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.02044, allocations: 16 kB / 379.8 MB, free: 1.52 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: 6 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.02061, allocations: 184.5 kB / 380 MB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-05/0.02069, allocations: 47.77 kB / 380 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.751e-05/0.02074, allocations: 52.06 kB / 380.1 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.02075, allocations: 7.938 kB / 380.1 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.02075, allocations: 0 / 380.1 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.02076, allocations: 3.938 kB / 380.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009372/0.02169, allocations: 0.6967 MB / 380.8 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.0217, allocations: 0 / 380.8 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.02192, allocations: 63.91 kB / 380.8 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003298/0.02225, allocations: 91.58 kB / 380.9 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.02228, allocations: 11.94 kB / 380.9 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.02362, allocations: 2.224 MB / 383.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.02362, allocations: 0 / 383.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.02424, allocations: 0.5218 MB / 383.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.584e-05/0.0243, allocations: 39.72 kB / 383.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.02433, allocations: 15.97 kB / 383.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.02451, allocations: 27.91 kB / 383.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.02457, allocations: 19.95 kB / 383.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.02459, allocations: 12 kB / 383.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002296/0.02482, allocations: 271.1 kB / 384 MB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02482, allocations: 0 / 384 MB, free: 13.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005239/0.02534, allocations: 84 kB / 384.1 MB, free: 12.96 MB / 362.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 (31): * Single equations (assignments): 30 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001442/0.02549, allocations: 103.2 kB / 384.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007656/0.02625, allocations: 0.7157 MB / 384.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.02625, allocations: 0 / 384.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.02654, allocations: 317.8 kB / 385.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.02693, allocations: 62.64 kB / 385.3 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.02841, allocations: 0.8613 MB / 386.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.674e-05/0.0285, allocations: 121.1 kB / 386.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.02862, allocations: 39.27 kB / 386.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.66e-05/0.02871, allocations: 28.5 kB / 386.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02871, allocations: 0 / 386.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of Templates: time 0.008079/0.03679, allocations: 4.319 MB / 390.7 MB, free: 6.305 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.185043921228498]