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.09556/0.09556, allocations: 21.61 MB / 37.41 MB, free: 0.7578 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.0011/0.0011, allocations: 184.5 kB / 43.63 MB, free: 3.566 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.3/1.3, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.0009403/0.0009402, allocations: 108.5 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 50.69 kB / 372.3 MB, free: 59.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07848/0.0795, allocations: 51.97 MB / 424.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002947/0.08249, allocations: 2.643 MB / 426.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.0837, allocations: 0.8312 MB / 427.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.08395, allocations: 7.938 kB / 427.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.08431, allocations: 67.59 kB / 427.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.08465, allocations: 127.3 kB / 428 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.08502, allocations: 187.8 kB / 428.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.08552, allocations: 0.5187 MB / 428.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.08576, allocations: 128.4 kB / 428.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.08602, allocations: 211.1 kB / 429 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.08627, allocations: 246.8 kB / 429.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.08633, allocations: 20 kB / 429.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.123e-05/0.08639, allocations: 24 kB / 429.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.634e-05/0.08649, allocations: 103.6 kB / 429.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.08662, allocations: 182.8 kB / 429.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.08686, allocations: 394.5 kB / 430 MB, free: 8.785 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.08687, allocations: 8 kB / 430 MB, free: 8.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08688, allocations: 0 / 430 MB, free: 8.777 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.08689, allocations: 0 / 430 MB, free: 8.777 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.00164/0.08854, allocations: 0.8454 MB / 430.8 MB, free: 7.879 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.08858, allocations: 8.031 kB / 430.8 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.678e-05/0.08866, allocations: 56.27 kB / 430.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006809/0.08935, allocations: 438 kB / 431.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.08937, allocations: 21.03 kB / 431.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.08943, allocations: 35.94 kB / 431.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.08983, allocations: 321.9 kB / 431.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.08985, allocations: 0 / 431.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.08988, allocations: 12 kB / 431.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.08989, allocations: 4 kB / 431.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.09024, allocations: 238.4 kB / 431.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.09154, allocations: 1.074 MB / 433 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.09218, allocations: 408 kB / 433.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.09238, allocations: 161.4 kB / 433.5 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.09243, allocations: 12.31 kB / 433.6 MB, free: 5.004 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.239e-05/0.09244, allocations: 42.83 kB / 433.6 MB, free: 4.953 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.353e-06/0.09245, allocations: 0 / 433.6 MB, free: 4.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.002546/0.095, allocations: 1.193 MB / 434.8 MB, free: 3.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.994e-05/0.09503, allocations: 55.41 kB / 434.8 MB, free: 3.641 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006039/0.09564, allocations: 437.6 kB / 435.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.09567, allocations: 29.7 kB / 435.3 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.09576, allocations: 204.5 kB / 435.5 MB, free: 2.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.09583, allocations: 154.4 kB / 435.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.09592, allocations: 74.14 kB / 435.7 MB, free: 2.738 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.09597, allocations: 358.7 kB / 436.1 MB, free: 2.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.09615, allocations: 120.8 kB / 436.2 MB, free: 2.262 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.09634, allocations: 173 kB / 436.4 MB, free: 2.074 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/0.1002, allocations: 0.912 MB / 437.3 MB, free: 1.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1002, allocations: 3.938 kB / 437.3 MB, free: 1.145 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.00192/0.1021, allocations: 0.9553 MB / 438.2 MB, free: 96 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1021, allocations: 4 kB / 438.2 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1021, allocations: 3.938 kB / 438.2 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/0.1037, allocations: 258.4 kB / 438.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.1041, allocations: 87.83 kB / 438.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/0.112, allocations: 7.952 MB / 446.5 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.1124, allocations: 39.95 kB / 446.6 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.1124, allocations: 15.94 kB / 446.6 MB, free: 7.203 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.0002166/0.1127, allocations: 170 kB / 446.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.759e-05/0.1128, allocations: 39.53 kB / 446.8 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.1143, allocations: 0.5413 MB / 447.3 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1143, allocations: 8.062 kB / 447.3 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1143, allocations: 4 kB / 447.3 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1143, allocations: 0 / 447.3 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.1163, allocations: 1.038 MB / 448.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1163, allocations: 0 / 448.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.1166, allocations: 59.91 kB / 448.4 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.1178, allocations: 220.5 kB / 448.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.1178, allocations: 8 kB / 448.7 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003988/0.1218, allocations: 2.186 MB / 450.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1218, allocations: 0 / 450.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/0.1379, allocations: 6.788 MB / 457.6 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.138, allocations: 116.6 kB / 457.8 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.1381, allocations: 15.94 kB / 457.8 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003808/0.1385, allocations: 36.02 kB / 457.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/0.1386, allocations: 35.89 kB / 457.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.1386, allocations: 8.109 kB / 457.8 MB, free: 11.4 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006292/0.1392, allocations: 339 kB / 458.2 MB, free: 11.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1392, allocations: 0 / 458.2 MB, free: 11.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007126/0.14, allocations: 136 kB / 458.3 MB, free: 10.94 MB / 330.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.0001277/0.1401, allocations: 115.2 kB / 458.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009158/0.141, allocations: 0.6701 MB / 459.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.141, allocations: 0 / 459.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004181/0.1415, allocations: 310.5 kB / 459.4 MB, free: 9.789 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.1419, allocations: 65.61 kB / 459.5 MB, free: 9.723 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.144, allocations: 1.632 MB / 461.1 MB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.1444, allocations: 0.8431 MB / 461.9 MB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.1446, allocations: 55.25 kB / 462 MB, free: 7.109 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.1447, allocations: 31.44 kB / 462 MB, free: 7.078 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1447, allocations: 0 / 462 MB, free: 7.078 MB / 330.7 MB Notification: Performance of Templates: time 0.01072/0.1554, allocations: 6.568 MB / 468.6 MB, free: 0.5039 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)