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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 107.5 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08714/0.08714, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 54.96 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004104/0.1177, allocations: 2.593 MB / 495.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1194, allocations: 0.799 MB / 496.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/0.1198, allocations: 7.938 kB / 496.1 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004802/0.1203, allocations: 87.28 kB / 496.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005552/0.1209, allocations: 147.1 kB / 496.3 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005491/0.1215, allocations: 203.6 kB / 496.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008161/0.1223, allocations: 0.5499 MB / 497 MB, free: 380 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.1226, allocations: 128.5 kB / 497.2 MB, free: 248 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004339/0.1231, allocations: 231.1 kB / 497.4 MB, free: 16 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005157/0.1236, allocations: 250.9 kB / 497.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.1237, allocations: 36 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.212e-05/0.1238, allocations: 36 kB / 497.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.124, allocations: 119.5 kB / 497.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.1242, allocations: 202.7 kB / 498 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.1247, allocations: 430.3 kB / 498.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1247, allocations: 0 / 498.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1248, allocations: 4 kB / 498.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.1248, allocations: 4 kB / 498.5 MB, free: 14.95 MB / 382.1 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.002114/0.1269, allocations: 0.8337 MB / 499.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.127, allocations: 8.031 kB / 499.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.1271, allocations: 52.28 kB / 499.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/0.128, allocations: 442 kB / 499.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.1281, allocations: 25.03 kB / 499.8 MB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.1281, allocations: 35.94 kB / 499.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005282/0.1287, allocations: 321.8 kB / 0.4884 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.1287, allocations: 0 / 0.4884 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.1287, allocations: 12 kB / 0.4884 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1288, allocations: 8 kB / 0.4885 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.1292, allocations: 234.4 kB / 0.4887 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.1309, allocations: 1.058 MB / 0.4897 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008182/0.1317, allocations: 419.9 kB / 0.4901 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.132, allocations: 165.4 kB / 0.4903 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.132, allocations: 8.328 kB / 0.4903 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1321, allocations: 42.83 kB / 0.4903 GB, free: 11.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.753e-06/0.1321, allocations: 0 / 0.4903 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003142/0.1352, allocations: 1.182 MB / 0.4915 GB, free: 9.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.1353, allocations: 59.39 kB / 0.4915 GB, free: 9.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007826/0.1361, allocations: 445.5 kB / 0.492 GB, free: 9.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.1361, allocations: 30.36 kB / 0.492 GB, free: 9.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1362, allocations: 204.5 kB / 0.4922 GB, free: 9.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1364, allocations: 149.8 kB / 0.4923 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1365, allocations: 86.12 kB / 0.4924 GB, free: 8.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1366, allocations: 350.7 kB / 0.4927 GB, free: 8.551 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.1368, allocations: 124.8 kB / 0.4929 GB, free: 8.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1371, allocations: 169 kB / 0.493 GB, free: 8.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004345/0.1414, allocations: 0.9204 MB / 0.4939 GB, free: 7.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1414, allocations: 3.938 kB / 0.4939 GB, free: 7.305 MB / 382.1 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.002293/0.1437, allocations: 0.9476 MB / 0.4948 GB, free: 6.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1438, allocations: 11.94 kB / 0.4949 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1438, allocations: 3.938 kB / 0.4949 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/0.1455, allocations: 262.4 kB / 0.4951 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003491/0.1459, allocations: 79.89 kB / 0.4952 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2506/0.3965, allocations: 8.597 MB / 0.5036 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.397, allocations: 40.25 kB / 0.5036 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.3971, allocations: 13.41 kB / 0.5036 GB, free: 19.63 MB / 382.1 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.0002112/0.3973, allocations: 170.8 kB / 0.5038 GB, free: 19.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.3973, allocations: 38.84 kB / 0.5038 GB, free: 19.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.3988, allocations: 0.5454 MB / 0.5044 GB, free: 19.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.3988, allocations: 7.922 kB / 0.5044 GB, free: 19.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.3988, allocations: 0 / 0.5044 GB, free: 19.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3989, allocations: 5.188 kB / 0.5044 GB, free: 19.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.4008, allocations: 1.031 MB / 0.5054 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4008, allocations: 0 / 0.5054 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.4011, allocations: 64.27 kB / 0.5054 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009975/0.4021, allocations: 186.7 kB / 0.5056 GB, free: 19.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.4022, allocations: 14.95 kB / 0.5056 GB, free: 19.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003916/0.4061, allocations: 2.416 MB / 0.508 GB, free: 17.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4061, allocations: 3.656 kB / 0.508 GB, free: 17.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.4077, allocations: 0.7682 MB / 0.5087 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.4078, allocations: 120.8 kB / 0.5089 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.4079, allocations: 8.156 kB / 0.5089 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.4083, allocations: 41.78 kB / 0.5089 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.745e-05/0.4084, allocations: 29.25 kB / 0.5089 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4084, allocations: 8.188 kB / 0.5089 GB, free: 17.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006513/0.409, allocations: 328.6 kB / 0.5093 GB, free: 17.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4091, allocations: 0 / 0.5093 GB, free: 17.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005785/0.4096, allocations: 96.58 kB / 0.5094 GB, free: 17.3 MB / 382.1 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.0001172/0.4098, allocations: 116 kB / 0.5095 GB, free: 17.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008762/0.4106, allocations: 0.6724 MB / 0.5101 GB, free: 16.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4107, allocations: 1.031 kB / 0.5101 GB, free: 16.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004024/0.4111, allocations: 314.6 kB / 0.5104 GB, free: 16.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.4115, allocations: 62.36 kB / 0.5105 GB, free: 16.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.4131, allocations: 1.082 MB / 0.5115 GB, free: 16.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.4135, allocations: 0.8357 MB / 0.5124 GB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.4136, allocations: 33.05 kB / 0.5124 GB, free: 15.48 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4136, allocations: 0 / 0.5124 GB, free: 15.48 MB / 382.1 MB Notification: Performance of Templates: time 0.01257/0.4262, allocations: 7.708 MB / 0.5199 GB, free: 13.8 MB / 382.1 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)