Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006151/0.006151, allocations: 102 kB / 15.73 MB, free: 6.051 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.001237/0.001238, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09622/0.09622, allocations: 22.32 MB / 312.8 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.89 kB / 437 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1203, allocations: 54.96 MB / 492 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004105/0.1245, allocations: 2.525 MB / 494.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.1263, allocations: 0.7679 MB / 495.3 MB, free: 1.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003144/0.1266, allocations: 7.938 kB / 495.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005328/0.1272, allocations: 91.28 kB / 495.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004825/0.1277, allocations: 139.1 kB / 495.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004842/0.1282, allocations: 195.7 kB / 495.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006971/0.1289, allocations: 0.5226 MB / 496.2 MB, free: 472 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.1291, allocations: 120.7 kB / 496.3 MB, free: 348 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003619/0.1295, allocations: 219.2 kB / 496.6 MB, free: 128 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003116/0.1298, allocations: 243 kB / 496.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.1299, allocations: 36 kB / 496.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.289e-05/0.13, allocations: 36 kB / 496.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.1301, allocations: 107.6 kB / 497 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1303, allocations: 190.8 kB / 497.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.1307, allocations: 398.3 kB / 497.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1307, allocations: 0 / 497.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1307, allocations: 0 / 497.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1307, allocations: 0 / 497.5 MB, free: 15.13 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001845/0.1326, allocations: 0.8298 MB / 498.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1326, allocations: 8.031 kB / 498.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.432e-05/0.1327, allocations: 52.31 kB / 498.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008426/0.1336, allocations: 431.6 kB / 498.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.1336, allocations: 24.78 kB / 498.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.1337, allocations: 35.98 kB / 498.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.1342, allocations: 297.7 kB / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1342, allocations: 4 kB / 499.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.1342, allocations: 12 kB / 499.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.1342, allocations: 8 kB / 499.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003979/0.1346, allocations: 226 kB / 499.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.1362, allocations: 1.026 MB / 0.4887 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007854/0.137, allocations: 390.2 kB / 0.4891 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.1372, allocations: 149.4 kB / 0.4893 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.1372, allocations: 7.938 kB / 0.4893 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.1373, allocations: 42.5 kB / 0.4893 GB, free: 11.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.553e-06/0.1373, allocations: 4 kB / 0.4893 GB, free: 11.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001947/0.1392, allocations: 1.103 MB / 0.4904 GB, free: 10.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1393, allocations: 55.41 kB / 0.4904 GB, free: 10.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000768/0.14, allocations: 429.6 kB / 0.4909 GB, free: 9.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.1401, allocations: 33.7 kB / 0.4909 GB, free: 9.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.1402, allocations: 204.3 kB / 0.4911 GB, free: 9.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1403, allocations: 142 kB / 0.4912 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1404, allocations: 70.14 kB / 0.4913 GB, free: 9.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1406, allocations: 346.8 kB / 0.4916 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.1408, allocations: 112.8 kB / 0.4917 GB, free: 8.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.141, allocations: 181.7 kB / 0.4919 GB, free: 8.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.1426, allocations: 0.6141 MB / 0.4925 GB, free: 8.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1426, allocations: 0 / 0.4925 GB, free: 8.008 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.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=52) (initialization): time 0.001074/0.1437, allocations: 0.8006 MB / 0.4933 GB, free: 7.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1437, allocations: 4 kB / 0.4933 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1437, allocations: 4 kB / 0.4933 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.144, allocations: 102.7 kB / 0.4934 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.1444, allocations: 75.91 kB / 0.4935 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3112/0.4556, allocations: 7.932 MB / 0.5012 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005118/0.4561, allocations: 48.38 kB / 0.5012 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.4562, allocations: 11.78 kB / 0.5013 GB, free: 21.02 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: 6 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002145/0.4564, allocations: 172.8 kB / 0.5014 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.767e-05/0.4565, allocations: 38 kB / 0.5015 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.533e-05/0.4566, allocations: 53.08 kB / 0.5015 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.4566, allocations: 8.562 kB / 0.5015 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4566, allocations: 0 / 0.5015 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4566, allocations: 0 / 0.5015 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.4577, allocations: 0.8798 MB / 0.5024 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.4577, allocations: 0 / 0.5024 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.458, allocations: 61.22 kB / 0.5024 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002516/0.4582, allocations: 77.23 kB / 0.5025 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.4583, allocations: 7.109 kB / 0.5025 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.4596, allocations: 1.891 MB / 0.5044 GB, free: 19.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4596, allocations: 0 / 0.5044 GB, free: 19.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008261/0.4604, allocations: 0.6152 MB / 0.505 GB, free: 18.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.972e-05/0.4605, allocations: 122.6 kB / 0.5051 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.4606, allocations: 11.47 kB / 0.5051 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/0.461, allocations: 35.77 kB / 0.5051 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.4611, allocations: 25.36 kB / 0.5052 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.4611, allocations: 8.219 kB / 0.5052 GB, free: 18.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006331/0.4617, allocations: 327.5 kB / 0.5055 GB, free: 18.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.4617, allocations: 0 / 0.5055 GB, free: 18.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005371/0.4623, allocations: 86.91 kB / 0.5056 GB, free: 18.77 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 (31): * Single equations (assignments): 30 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001284/0.4624, allocations: 110.5 kB / 0.5057 GB, free: 18.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008691/0.4633, allocations: 0.6452 MB / 0.5063 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4633, allocations: 0 / 0.5063 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.4637, allocations: 285.1 kB / 0.5066 GB, free: 18.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.4641, allocations: 64.34 kB / 0.5066 GB, free: 18.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.4662, allocations: 1.023 MB / 0.5076 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.4667, allocations: 0.8242 MB / 0.5084 GB, free: 17.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.4669, allocations: 51 kB / 0.5085 GB, free: 17.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.467, allocations: 31.47 kB / 0.5085 GB, free: 17.02 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.467, allocations: 0 / 0.5085 GB, free: 17.02 MB / 382.1 MB Notification: Performance of Templates: time 0.01106/0.478, allocations: 4.368 MB / 0.5128 GB, free: 16.77 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)