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.006483/0.006483, allocations: 104.6 kB / 15.73 MB, free: 5.578 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.001288/0.001288, allocations: 189.7 kB / 16.67 MB, free: 5.516 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09339/0.09339, allocations: 22.33 MB / 312.8 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.91 kB / 437 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1259, allocations: 54.95 MB / 492 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.004425/0.1304, allocations: 2.607 MB / 494.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1324, allocations: 0.7873 MB / 495.4 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004338/0.1328, allocations: 8 kB / 495.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000545/0.1334, allocations: 95.2 kB / 495.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005742/0.134, allocations: 139.1 kB / 495.6 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.1346, allocations: 211.6 kB / 495.8 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007831/0.1354, allocations: 0.5461 MB / 496.4 MB, free: 376 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.1357, allocations: 128.5 kB / 496.5 MB, free: 244 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.1361, allocations: 239 kB / 496.7 MB, free: 4 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004309/0.1365, allocations: 250.9 kB / 497 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1367, allocations: 36 kB / 497 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.634e-05/0.1368, allocations: 40 kB / 497 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.1369, allocations: 111.6 kB / 497.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.1372, allocations: 194.8 kB / 497.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005672/0.1378, allocations: 434.3 kB / 497.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1378, allocations: 0 / 497.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1378, allocations: 4 kB / 497.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.1378, allocations: 0 / 497.8 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.002183/0.14, allocations: 0.8415 MB / 498.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1401, allocations: 8.031 kB / 498.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.1402, allocations: 52.28 kB / 498.7 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009579/0.1412, allocations: 450 kB / 499.1 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.1412, allocations: 21.03 kB / 499.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.1413, allocations: 39.94 kB / 499.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.1418, allocations: 317.9 kB / 499.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1419, allocations: 3.938 kB / 499.5 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.1419, allocations: 12 kB / 499.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1419, allocations: 4 kB / 499.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.1424, allocations: 230.5 kB / 499.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.1442, allocations: 1.066 MB / 0.4891 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008491/0.1451, allocations: 411.9 kB / 0.4895 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.1454, allocations: 161.4 kB / 0.4896 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.1454, allocations: 12.31 kB / 0.4896 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.1455, allocations: 42.83 kB / 0.4897 GB, free: 11.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.913e-06/0.1455, allocations: 0 / 0.4897 GB, free: 11.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003535/0.149, allocations: 1.189 MB / 0.4908 GB, free: 9.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.1491, allocations: 55.41 kB / 0.4909 GB, free: 9.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009643/0.1501, allocations: 433.5 kB / 0.4913 GB, free: 9.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.472e-05/0.1501, allocations: 37.69 kB / 0.4913 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1503, allocations: 201.2 kB / 0.4915 GB, free: 9.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1505, allocations: 157.7 kB / 0.4917 GB, free: 8.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.1507, allocations: 78.08 kB / 0.4917 GB, free: 8.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.1509, allocations: 358.7 kB / 0.4921 GB, free: 8.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.1512, allocations: 116.8 kB / 0.4922 GB, free: 8.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.1515, allocations: 173 kB / 0.4924 GB, free: 8.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004353/0.1559, allocations: 0.9203 MB / 0.4933 GB, free: 7.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1559, allocations: 0 / 0.4933 GB, free: 7.301 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.00249/0.1584, allocations: 0.9568 MB / 0.4942 GB, free: 6.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.1584, allocations: 4 kB / 0.4942 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1584, allocations: 7.938 kB / 0.4942 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.1602, allocations: 250.4 kB / 0.4944 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.1607, allocations: 87.89 kB / 0.4945 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2493/0.41, allocations: 8.601 MB / 0.5029 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005154/0.4106, allocations: 42.7 kB / 0.503 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.4106, allocations: 16.88 kB / 0.503 GB, free: 19.66 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.0002157/0.4109, allocations: 161.2 kB / 0.5031 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.061e-05/0.4109, allocations: 35.75 kB / 0.5032 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.4125, allocations: 0.5535 MB / 0.5037 GB, free: 19.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.4125, allocations: 3.094 kB / 0.5037 GB, free: 19.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.4125, allocations: 3.781 kB / 0.5037 GB, free: 19.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4125, allocations: 3.234 kB / 0.5037 GB, free: 19.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.4145, allocations: 1.034 MB / 0.5047 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4145, allocations: 0.7031 kB / 0.5047 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.4149, allocations: 62.84 kB / 0.5048 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.4159, allocations: 186.8 kB / 0.505 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.4159, allocations: 11.39 kB / 0.505 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004285/0.4202, allocations: 2.414 MB / 0.5073 GB, free: 17.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4202, allocations: 3.078 kB / 0.5073 GB, free: 17.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.422, allocations: 0.768 MB / 0.5081 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.409e-05/0.422, allocations: 120.4 kB / 0.5082 GB, free: 17.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.4221, allocations: 12.48 kB / 0.5082 GB, free: 17.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.4225, allocations: 39.09 kB / 0.5083 GB, free: 17.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.4226, allocations: 32.09 kB / 0.5083 GB, free: 17.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.4226, allocations: 11.3 kB / 0.5083 GB, free: 17.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007212/0.4234, allocations: 330.3 kB / 0.5086 GB, free: 17.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4234, allocations: 0 / 0.5086 GB, free: 17.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006119/0.424, allocations: 91.91 kB / 0.5087 GB, free: 17.33 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.000155/0.4242, allocations: 115.9 kB / 0.5088 GB, free: 17.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009849/0.4251, allocations: 0.6743 MB / 0.5095 GB, free: 16.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4252, allocations: 0 / 0.5095 GB, free: 16.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.4256, allocations: 318.6 kB / 0.5098 GB, free: 16.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.4261, allocations: 61.45 kB / 0.5098 GB, free: 16.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.4278, allocations: 1.041 MB / 0.5108 GB, free: 16.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.4282, allocations: 0.8379 MB / 0.5117 GB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.4284, allocations: 52.47 kB / 0.5117 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.4285, allocations: 27.61 kB / 0.5117 GB, free: 15.54 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.4285, allocations: 5.094 kB / 0.5117 GB, free: 15.53 MB / 382.1 MB Notification: Performance of Templates: time 0.01264/0.4411, allocations: 5.178 MB / 0.5168 GB, free: 15.24 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)