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.0008172/0.0008172, allocations: 84.44 kB / 20.71 MB, free: 3.855 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.0008246/0.0008246, allocations: 169.2 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.8481/0.8481, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.05909/0.05909, allocations: 18.12 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_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.733e-06/1.733e-06, allocations: 0 / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.189e-05, allocations: 6.219 kB / 416.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002039/0.002061, allocations: 2.374 MB / 418.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.002927, allocations: 0.7824 MB / 419.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.003042, allocations: 4.469 kB / 419.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.003351, allocations: 102 kB / 419.6 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.003559, allocations: 132.7 kB / 419.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.003934, allocations: 279.5 kB / 420 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000324/0.004258, allocations: 478.5 kB / 420.4 MB, free: 9.891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.004404, allocations: 84.3 kB / 420.5 MB, free: 9.848 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.004642, allocations: 204.8 kB / 420.7 MB, free: 9.762 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.004843, allocations: 193.1 kB / 420.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.004887, allocations: 34.03 kB / 421 MB, free: 9.699 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.429e-05/0.004921, allocations: 34.5 kB / 421 MB, free: 9.699 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.087e-05/0.005002, allocations: 113.3 kB / 421.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.351e-05/0.005085, allocations: 121.8 kB / 421.2 MB, free: 9.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.005399, allocations: 397.1 kB / 421.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.005401, allocations: 0.8438 kB / 421.6 MB, free: 9.414 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005402, allocations: 3.938 kB / 421.6 MB, free: 9.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.005408, allocations: 1.188 kB / 421.6 MB, free: 9.41 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.0009882/0.006396, allocations: 0.7635 MB / 422.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.006425, allocations: 10.77 kB / 422.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.006479, allocations: 50.58 kB / 422.4 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.006926, allocations: 365.1 kB / 422.8 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.006944, allocations: 21.53 kB / 422.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.006981, allocations: 37.11 kB / 422.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.00728, allocations: 301.2 kB / 423.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.00729, allocations: 1.156 kB / 423.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.007306, allocations: 18.03 kB / 423.2 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.007313, allocations: 7.625 kB / 423.2 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.00758, allocations: 215.5 kB / 423.4 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008636/0.008443, allocations: 0.8867 MB / 424.3 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.008936, allocations: 366.7 kB / 424.6 MB, free: 7.691 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.009082, allocations: 136.1 kB / 424.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.0091, allocations: 4.344 kB / 424.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.236e-05/0.009113, allocations: 37.39 kB / 424.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 1.563e-06/0.009114, allocations: 0 / 424.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001219/0.01033, allocations: 0.9662 MB / 425.8 MB, free: 7.078 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.01036, allocations: 55.75 kB / 425.8 MB, free: 7.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00046/0.01082, allocations: 436.4 kB / 426.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.01083, allocations: 32.06 kB / 426.3 MB, free: 6.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.007e-05/0.01092, allocations: 206.7 kB / 426.5 MB, free: 6.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.253e-05/0.01098, allocations: 150.1 kB / 426.6 MB, free: 6.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/0.01105, allocations: 76.17 kB / 426.7 MB, free: 6.453 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.0111, allocations: 350.1 kB / 427 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.01122, allocations: 109.6 kB / 427.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.01137, allocations: 171.2 kB / 427.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009096/0.01228, allocations: 0.6092 MB / 427.9 MB, free: 5.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01228, allocations: 1.5 kB / 427.9 MB, free: 5.746 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.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.0005857/0.01287, allocations: 0.5033 MB / 428.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.01288, allocations: 7.312 kB / 428.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.01289, allocations: 1.344 kB / 428.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.01306, allocations: 98.67 kB / 428.5 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.01326, allocations: 83.42 kB / 428.6 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.01525, allocations: 7.539 MB / 436.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.01545, allocations: 40.67 kB / 436.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.01547, allocations: 14.28 kB / 436.2 MB, free: 13.93 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.000137/0.0156, allocations: 178.6 kB / 436.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.3e-05/0.01565, allocations: 37.2 kB / 436.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.863e-05/0.0157, allocations: 54.06 kB / 436.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.0157, allocations: 3.844 kB / 436.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.0157, allocations: 1.797 kB / 436.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.01571, allocations: 5.859 kB / 436.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008121/0.01652, allocations: 0.7442 MB / 437.2 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01652, allocations: 5.375 kB / 437.2 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.01669, allocations: 58.69 kB / 437.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001497/0.01684, allocations: 73.09 kB / 437.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.01686, allocations: 20.42 kB / 437.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.01793, allocations: 1.736 MB / 439.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01793, allocations: 192 / 439.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006571/0.01858, allocations: 0.619 MB / 439.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.01863, allocations: 53.22 kB / 439.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.01866, allocations: 11.12 kB / 439.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.01884, allocations: 39.27 kB / 439.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.0189, allocations: 29.86 kB / 439.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.01891, allocations: 7.969 kB / 439.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003531/0.01926, allocations: 326.5 kB / 440.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01926, allocations: 0 / 440.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003474/0.01961, allocations: 81.38 kB / 440.3 MB, free: 11.14 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 (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 9.166e-05/0.0197, allocations: 113.4 kB / 440.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.02028, allocations: 0.6316 MB / 441 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.02028, allocations: 0 / 441 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.02054, allocations: 284.3 kB / 441.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.02088, allocations: 52.44 kB / 441.3 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.02192, allocations: 0.9189 MB / 442.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.0221, allocations: 225.2 kB / 442.5 MB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.149e-05/0.02218, allocations: 34.36 kB / 442.5 MB, free: 9.703 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02218, allocations: 4 kB / 442.5 MB, free: 9.699 MB / 346.7 MB Notification: Performance of Templates: time 0.006484/0.02866, allocations: 7.501 MB / 450 MB, free: 5.59 MB / 346.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=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.963609516620636] Failed to read output from testmodel.py, exit status != 0: 0.03381284140050411 0.041938263 0.034926751 Calling exit ...