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.1476/0.1476, allocations: 21.42 MB / 36.67 MB, free: 1.102 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.001335/0.001335, allocations: 172.5 kB / 42.83 MB, free: 3.879 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.675/1.675, allocations: 205 MB / 253.9 MB, free: 15.04 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.0007546/0.000755, allocations: 78.39 kB / 307.2 MB, free: 11.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003722, allocations: 8.875 kB / 372.5 MB, free: 59.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09558, allocations: 52.51 MB / 425 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.00354/0.09919, allocations: 2.639 MB / 427.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1007, allocations: 0.8273 MB / 428.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.1011, allocations: 4 kB / 428.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.1015, allocations: 75.52 kB / 428.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.1019, allocations: 127.3 kB / 428.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.1022, allocations: 179.8 kB / 428.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000452/0.1027, allocations: 0.5187 MB / 429.3 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.1029, allocations: 128.4 kB / 429.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.1031, allocations: 211.1 kB / 429.7 MB, free: 9.598 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.1034, allocations: 246.8 kB / 429.9 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.857e-05/0.1035, allocations: 20 kB / 429.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/0.1036, allocations: 24 kB / 430 MB, free: 9.312 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.1037, allocations: 99.58 kB / 430.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1039, allocations: 190.7 kB / 430.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.1042, allocations: 386.4 kB / 430.6 MB, free: 8.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1042, allocations: 4 kB / 430.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1042, allocations: 0 / 430.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1042, allocations: 0 / 430.6 MB, free: 8.645 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.001607/0.1058, allocations: 0.8376 MB / 431.5 MB, free: 7.754 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.1058, allocations: 12.03 kB / 431.5 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.745e-05/0.1059, allocations: 52.28 kB / 431.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006881/0.1066, allocations: 434 kB / 431.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.1066, allocations: 29.02 kB / 432 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.1067, allocations: 35.94 kB / 432 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.1071, allocations: 321.8 kB / 432.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1071, allocations: 0 / 432.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.1071, allocations: 12 kB / 432.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.1072, allocations: 8 kB / 432.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.1075, allocations: 234.4 kB / 432.6 MB, free: 6.586 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.1089, allocations: 1.07 MB / 433.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006895/0.1096, allocations: 416 kB / 434 MB, free: 5.043 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.1098, allocations: 157.5 kB / 434.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1098, allocations: 16.2 kB / 434.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.1099, allocations: 42.83 kB / 434.3 MB, free: 4.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.484e-06/0.1099, allocations: 0 / 434.3 MB, free: 4.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.002753/0.1126, allocations: 1.193 MB / 435.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.1127, allocations: 55.41 kB / 435.5 MB, free: 3.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006511/0.1133, allocations: 433.6 kB / 435.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.1134, allocations: 37.7 kB / 436 MB, free: 3.035 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.94e-05/0.1135, allocations: 208.4 kB / 436.2 MB, free: 2.828 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.028e-05/0.1136, allocations: 150.4 kB / 436.3 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.852e-05/0.1137, allocations: 78.12 kB / 436.4 MB, free: 2.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.77e-05/0.1138, allocations: 350.7 kB / 436.7 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.114, allocations: 124.8 kB / 436.9 MB, free: 2.125 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1142, allocations: 169 kB / 437 MB, free: 1.941 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/0.1181, allocations: 0.912 MB / 437.9 MB, free: 1.016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1181, allocations: 7.938 kB / 437.9 MB, free: 1.008 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.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.002071/0.1202, allocations: 0.947 MB / 438.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.1202, allocations: 11.98 kB / 438.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1202, allocations: 3.938 kB / 438.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.1218, allocations: 262.3 kB / 439.2 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.1222, allocations: 83.91 kB / 439.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00841/0.1306, allocations: 7.948 MB / 447.2 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.1311, allocations: 39.95 kB / 447.2 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.1312, allocations: 16 kB / 447.2 MB, free: 7.07 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 (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.0002361/0.1314, allocations: 165.8 kB / 447.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.1315, allocations: 39.59 kB / 447.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.133, allocations: 0.5413 MB / 448 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.133, allocations: 8 kB / 448 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1331, allocations: 11.92 kB / 448 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1331, allocations: 3.984 kB / 448 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.1351, allocations: 1.034 MB / 449 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1351, allocations: 0 / 449 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.1354, allocations: 63.97 kB / 449.1 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.1365, allocations: 212.5 kB / 449.3 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.1366, allocations: 15.98 kB / 449.3 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/0.1405, allocations: 2.178 MB / 451.5 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1405, allocations: 0 / 451.5 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.1422, allocations: 0.7708 MB / 452.3 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.1423, allocations: 116.6 kB / 452.4 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.1423, allocations: 12 kB / 452.4 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003679/0.1427, allocations: 35.95 kB / 452.4 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/0.1428, allocations: 27.95 kB / 452.5 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1428, allocations: 12 kB / 452.5 MB, free: 1.582 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006108/0.1434, allocations: 327.1 kB / 452.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1434, allocations: 0 / 452.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005371/0.144, allocations: 96 kB / 452.9 MB, free: 1.168 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 (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.0001208/0.1441, allocations: 111.2 kB / 453 MB, free: 1.047 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008791/0.145, allocations: 0.6786 MB / 453.7 MB, free: 336 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.145, allocations: 0 / 453.7 MB, free: 336 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004057/0.1454, allocations: 310.4 kB / 454 MB, free: 12 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.1459, allocations: 61.3 kB / 454 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.1475, allocations: 1.2 MB / 455.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.1479, allocations: 0.8392 MB / 456.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001672/0.1481, allocations: 47.25 kB / 456.1 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.736e-05/0.1482, allocations: 27.44 kB / 456.2 MB, free: 13.79 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1482, allocations: 3.938 kB / 456.2 MB, free: 13.78 MB / 330.7 MB Notification: Performance of Templates: time 0.008197/0.1564, allocations: 4.693 MB / 460.8 MB, free: 9.086 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)