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.0006766/0.0006766, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008841/0.001561, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007103/0.0007103, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008917/0.001602, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9728/0.9728, allocations: 177.1 MB / 189.6 MB, free: 5.336 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08614/1.059, allocations: 53.67 MB / 243.2 MB, free: 15.6 MB / 250.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.06275/0.06275, allocations: 18.12 MB / 262.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01192/0.07467, allocations: 6.781 MB / 268.9 MB, free: 6.371 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 2.275e-06/2.275e-06, allocations: 3.938 kB / 270.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.545e-05, allocations: 2.312 kB / 270.3 MB, free: 4.922 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004308/0.004334, allocations: 2.511 MB / 272.8 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.00611, allocations: 0.8219 MB / 273.6 MB, free: 1.562 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.006342, allocations: 7.938 kB / 273.6 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003907/0.006733, allocations: 91.22 kB / 273.7 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.007088, allocations: 147 kB / 273.9 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006253/0.007713, allocations: 263.5 kB / 274.1 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005681/0.008281, allocations: 471.1 kB / 274.6 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.008636, allocations: 97.77 kB / 274.7 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006114/0.009247, allocations: 342.4 kB / 275 MB, free: 164 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1265/0.1358, allocations: 192.7 kB / 275.2 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1359, allocations: 32.75 kB / 275.2 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.733e-05/0.136, allocations: 35.47 kB / 275.3 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1361, allocations: 79.78 kB / 275.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1362, allocations: 90.03 kB / 275.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.1366, allocations: 254.7 kB / 275.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.712e-05/0.1366, allocations: 1.219 kB / 275.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1366, allocations: 1.125 kB / 275.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.1366, allocations: 0 / 275.7 MB, free: 2.328 MB / 266.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.001015/0.1376, allocations: 0.7369 MB / 276.4 MB, free: 1.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1377, allocations: 10.61 kB / 276.4 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.437e-05/0.1378, allocations: 52.83 kB / 276.5 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1381, allocations: 283.8 kB / 276.8 MB, free: 1.762 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.1381, allocations: 25.72 kB / 276.8 MB, free: 1.758 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.1382, allocations: 37.81 kB / 276.8 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.1384, allocations: 228.3 kB / 277.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1385, allocations: 1.438 kB / 277.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.1385, allocations: 15.28 kB / 277.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1385, allocations: 7.516 kB / 277.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.1386, allocations: 93.03 kB / 277.2 MB, free: 1.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000777/0.1394, allocations: 0.6851 MB / 277.9 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.1398, allocations: 279.2 kB / 278.1 MB, free: 1.227 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.597e-05/0.1398, allocations: 67.91 kB / 278.2 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.1399, allocations: 11.12 kB / 278.2 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.1399, allocations: 38.33 kB / 278.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.1399, allocations: 0 / 278.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.0009526/0.1408, allocations: 0.6155 MB / 278.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.1408, allocations: 56.38 kB / 278.9 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.1411, allocations: 304.1 kB / 279.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1411, allocations: 36.17 kB / 279.2 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.146e-05/0.1411, allocations: 169.8 kB / 279.4 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.13e-05/0.1412, allocations: 148.7 kB / 279.6 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.764e-05/0.1413, allocations: 76.86 kB / 279.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.1413, allocations: 359.5 kB / 280 MB, free: 224 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.975e-05/0.1414, allocations: 39.52 kB / 280 MB, free: 220 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-05/0.1414, allocations: 100.5 kB / 280.1 MB, free: 168 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.1417, allocations: 240.1 kB / 280.4 MB, free: 104 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1417, allocations: 1.875 kB / 280.4 MB, free: 104 kB / 266.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.0004769/0.1422, allocations: 312.6 kB / 280.7 MB, free: 16 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1422, allocations: 8.719 kB / 280.7 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1422, allocations: 1.75 kB / 280.7 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003225/0.1425, allocations: 110.7 kB / 280.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1428, allocations: 141.2 kB / 280.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.1454, allocations: 7.186 MB / 288.1 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.1456, allocations: 18.17 kB / 288.1 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1456, allocations: 11.97 kB / 288.1 MB, free: 9.008 MB / 282.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.0001164/0.1457, allocations: 137.7 kB / 288.3 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/0.1458, allocations: 41.84 kB / 288.3 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.559e-05/0.1458, allocations: 46.97 kB / 288.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1458, allocations: 4.594 kB / 288.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1458, allocations: 4 kB / 288.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1458, allocations: 1.828 kB / 288.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.1464, allocations: 0.5304 MB / 288.9 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1464, allocations: 0.5156 kB / 288.9 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1466, allocations: 78.83 kB / 289 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.201e-05/0.1467, allocations: 38.58 kB / 289 MB, free: 8.609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002575/0.1469, allocations: 82 kB / 289.1 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.1469, allocations: 11.67 kB / 289.1 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008366/0.1478, allocations: 1.513 MB / 290.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1478, allocations: 1.062 kB / 290.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.1482, allocations: 447.8 kB / 291.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.1482, allocations: 10.73 kB / 291.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.1483, allocations: 17.05 kB / 291.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.1484, allocations: 26.81 kB / 291.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.1484, allocations: 6.328 kB / 291.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001265/0.1485, allocations: 128.2 kB / 291.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.1485, allocations: 0 / 291.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003307/0.1488, allocations: 82.94 kB / 291.3 MB, free: 7.102 MB / 282.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.0001007/0.1489, allocations: 89.38 kB / 291.4 MB, free: 7.035 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.1494, allocations: 0.5196 MB / 291.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/0.1494, allocations: 9.688 kB / 291.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.1496, allocations: 235.5 kB / 292.2 MB, free: 6.559 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.1499, allocations: 97.86 kB / 292.3 MB, free: 6.539 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.1521, allocations: 0.7346 MB / 293 MB, free: 6.156 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.337e-05/0.1522, allocations: 128 kB / 293.1 MB, free: 6.082 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1523, allocations: 39.64 kB / 293.2 MB, free: 6.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1524, allocations: 105.5 kB / 293.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1524, allocations: 0 / 293.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of Templates: time 0.007583/0.16, allocations: 4.955 MB / 298.2 MB, free: 4.695 MB / 282.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: 2.7259652726352215]