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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,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=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1432/0.1432, allocations: 21.44 MB / 36.39 MB, free: 1.227 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001425/0.001424, allocations: 186.7 kB / 42.63 MB, free: 3.965 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.4 MB / 254.1 MB, free: 15.47 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009011/0.0009008, allocations: 89.11 kB / 307.8 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003498, allocations: 7.594 kB / 373.2 MB, free: 59.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1178, allocations: 52.95 MB / 426.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002356/0.1202, allocations: 2.118 MB / 428.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.1216, allocations: 0.816 MB / 429.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1217, allocations: 7.938 kB / 429.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004511/0.1222, allocations: 71.53 kB / 429.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.1225, allocations: 131.5 kB / 429.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.1228, allocations: 159.8 kB / 429.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.1232, allocations: 336 kB / 429.8 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.1234, allocations: 106.8 kB / 429.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.1237, allocations: 211.2 kB / 430.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1239, allocations: 211 kB / 430.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.013e-05/0.124, allocations: 16 kB / 430.3 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.124, allocations: 16 kB / 430.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.451e-05/0.1241, allocations: 83.7 kB / 430.4 MB, free: 9.055 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.49e-05/0.1242, allocations: 89.45 kB / 430.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.1244, allocations: 299.2 kB / 430.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1245, allocations: 0 / 430.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.739e-06/0.1245, allocations: 0 / 430.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1245, allocations: 0 / 430.8 MB, free: 8.668 MB / 298.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.001943/0.1264, allocations: 0.7869 MB / 431.6 MB, free: 7.828 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.1265, allocations: 16.02 kB / 431.6 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.1266, allocations: 43.44 kB / 431.7 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007401/0.1274, allocations: 425 kB / 432.1 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.1274, allocations: 28.66 kB / 432.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.1275, allocations: 32 kB / 432.1 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.1279, allocations: 309.8 kB / 432.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1279, allocations: 0 / 432.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.128, allocations: 16 kB / 432.4 MB, free: 6.922 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.128, allocations: 12 kB / 432.5 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003742/0.1284, allocations: 230.4 kB / 432.7 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.1298, allocations: 1.089 MB / 433.8 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007202/0.1305, allocations: 404 kB / 434.2 MB, free: 5.129 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.1306, allocations: 4.328 kB / 434.2 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.1306, allocations: 46.83 kB / 434.2 MB, free: 5.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.473e-06/0.1306, allocations: 0 / 434.2 MB, free: 5.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.002748/0.1334, allocations: 1.206 MB / 435.4 MB, free: 3.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.1334, allocations: 55.41 kB / 435.5 MB, free: 3.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007043/0.1342, allocations: 437.6 kB / 435.9 MB, free: 3.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.1342, allocations: 29.7 kB / 435.9 MB, free: 3.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.587e-05/0.1343, allocations: 204.5 kB / 436.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.1344, allocations: 153.8 kB / 436.3 MB, free: 2.922 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.1344, allocations: 11.94 kB / 436.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.177e-05/0.1345, allocations: 358.8 kB / 436.6 MB, free: 2.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.1347, allocations: 112.8 kB / 436.8 MB, free: 2.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.1349, allocations: 173 kB / 436.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.1351, allocations: 137.2 kB / 437.1 MB, free: 2.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1351, allocations: 0 / 437.1 MB, free: 2.125 MB / 298.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=54) (initialization): time 0.002053/0.1372, allocations: 0.9685 MB / 438 MB, free: 1.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1372, allocations: 8.125 kB / 438 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1372, allocations: 0 / 438 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.1388, allocations: 278.9 kB / 438.3 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.1392, allocations: 79.91 kB / 438.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00936/0.1486, allocations: 8.061 MB / 446.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.1491, allocations: 39.95 kB / 446.5 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.1491, allocations: 16 kB / 446.5 MB, free: 8.043 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.1494, allocations: 169.7 kB / 446.7 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.1495, allocations: 43.47 kB / 446.7 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/0.1511, allocations: 0.5495 MB / 447.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.964e-06/0.1511, allocations: 4.109 kB / 447.3 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.1511, allocations: 3.938 kB / 447.3 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1512, allocations: 0 / 447.3 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.1534, allocations: 1.05 MB / 448.3 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1534, allocations: 0 / 448.3 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.1537, allocations: 59.91 kB / 448.4 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.1549, allocations: 224.6 kB / 448.6 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.155, allocations: 12 kB / 448.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00445/0.1594, allocations: 2.283 MB / 450.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.1595, allocations: 0 / 450.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.1613, allocations: 0.7752 MB / 451.7 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.1614, allocations: 116.6 kB / 451.8 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.1615, allocations: 19.94 kB / 451.8 MB, free: 2.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004025/0.1619, allocations: 35.95 kB / 451.8 MB, free: 2.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/0.162, allocations: 27.97 kB / 451.9 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.1621, allocations: 23.98 kB / 451.9 MB, free: 2.406 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000696/0.1628, allocations: 327 kB / 452.2 MB, free: 2.086 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1628, allocations: 4 kB / 452.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005986/0.1634, allocations: 92 kB / 452.3 MB, free: 1.992 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001513/0.1635, allocations: 115.1 kB / 452.4 MB, free: 1.867 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009803/0.1645, allocations: 0.6669 MB / 453.1 MB, free: 1.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1645, allocations: 7.938 kB / 453.1 MB, free: 1.156 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.165, allocations: 314.4 kB / 453.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.1653, allocations: 45.36 kB / 453.4 MB, free: 0.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.1674, allocations: 1.248 MB / 454.7 MB, free: 15.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.1679, allocations: 0.847 MB / 455.5 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.1681, allocations: 47.25 kB / 455.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.1682, allocations: 31.44 kB / 455.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1682, allocations: 0 / 455.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of Templates: time 0.009432/0.1777, allocations: 4.561 MB / 460.2 MB, free: 9.996 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)