Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 107.8 kB / 16.41 MB, free: 6.508 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.001317/0.001317, allocations: 184 kB / 17.34 MB, free: 5.738 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.448/1.448, allocations: 222.9 MB / 241 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.1039/0.1039, allocations: 22.32 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 71.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.115, allocations: 54.95 MB / 492.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003218/0.1182, allocations: 1.857 MB / 494.5 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1193, allocations: 0.5223 MB / 495 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.846e-05/0.1194, allocations: 0 / 495 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000333/0.1198, allocations: 27.8 kB / 495.1 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.12, allocations: 47.69 kB / 495.1 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001696/0.1201, allocations: 55.91 kB / 495.2 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002744/0.1204, allocations: 215.4 kB / 495.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.1205, allocations: 21.55 kB / 495.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.1207, allocations: 91.69 kB / 495.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1209, allocations: 91.64 kB / 495.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.1209, allocations: 12 kB / 495.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.68e-05/0.1209, allocations: 12 kB / 495.6 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.384e-05/0.121, allocations: 47.84 kB / 495.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.447e-05/0.1211, allocations: 67.59 kB / 495.7 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.1213, allocations: 151.3 kB / 495.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1213, allocations: 0 / 495.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1213, allocations: 0 / 495.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1213, allocations: 0 / 495.9 MB, free: 1.523 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.001066/0.1224, allocations: 0.4948 MB / 496.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1224, allocations: 8.031 kB / 496.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.504e-05/0.1225, allocations: 16.84 kB / 496.4 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.1229, allocations: 248 kB / 496.6 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.123, allocations: 8.375 kB / 496.6 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.123, allocations: 20.31 kB / 496.7 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.1232, allocations: 113.6 kB / 496.8 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1233, allocations: 0 / 496.8 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.1233, allocations: 8 kB / 496.8 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1233, allocations: 0 / 496.8 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.1235, allocations: 95.81 kB / 496.9 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.1243, allocations: 468.4 kB / 497.3 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.1247, allocations: 146.8 kB / 497.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1248, allocations: 60.77 kB / 497.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.1248, allocations: 4 kB / 497.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1249, allocations: 38.56 kB / 497.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.1249, allocations: 3.938 kB / 497.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001122/0.126, allocations: 0.5393 MB / 498.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.126, allocations: 55.41 kB / 498.2 MB, free: 15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.1264, allocations: 202.1 kB / 498.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.1264, allocations: 25.7 kB / 498.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.885e-05/0.1265, allocations: 120.3 kB / 498.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.714e-05/0.1265, allocations: 63.45 kB / 498.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-05/0.1266, allocations: 33.72 kB / 498.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1268, allocations: 326.8 kB / 498.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1269, allocations: 51.86 kB / 499 MB, free: 14.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.127, allocations: 76.88 kB / 499 MB, free: 14.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007636/0.1277, allocations: 263.9 kB / 499.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1277, allocations: 0 / 499.3 MB, free: 13.81 MB / 382.1 MB 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=21) (initialization): time 0.0006389/0.1284, allocations: 382.2 kB / 499.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.1284, allocations: 11.94 kB / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1284, allocations: 0 / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002457/0.1287, allocations: 45.69 kB / 499.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.1288, allocations: 39.97 kB / 499.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.1322, allocations: 4.641 MB / 0.4926 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.1324, allocations: 24.06 kB / 0.4926 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1324, allocations: 4 kB / 0.4926 GB, free: 8.281 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.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: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.1325, allocations: 134.5 kB / 0.4927 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.1326, allocations: 19.98 kB / 0.4928 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.1326, allocations: 21.16 kB / 0.4928 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1326, allocations: 4 kB / 0.4928 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1326, allocations: 7.938 kB / 0.4928 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1327, allocations: 0 / 0.4928 GB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007584/0.1334, allocations: 0.5056 MB / 0.4933 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1334, allocations: 0 / 0.4933 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.1336, allocations: 23.98 kB / 0.4933 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001718/0.1337, allocations: 40.81 kB / 0.4934 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.1338, allocations: 11.94 kB / 0.4934 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/0.1353, allocations: 1.615 MB / 0.4949 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1353, allocations: 0 / 0.4949 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005117/0.1359, allocations: 336.1 kB / 0.4953 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.641e-05/0.1359, allocations: 93.11 kB / 0.4953 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.136, allocations: 8 kB / 0.4954 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.1362, allocations: 20.02 kB / 0.4954 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.1362, allocations: 11.92 kB / 0.4954 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1362, allocations: 4 kB / 0.4954 GB, free: 5.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.1365, allocations: 155.2 kB / 0.4955 GB, free: 5.043 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1365, allocations: 0 / 0.4955 GB, free: 5.043 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004277/0.1369, allocations: 40 kB / 0.4956 GB, free: 5.004 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001226/0.137, allocations: 95.25 kB / 0.4957 GB, free: 4.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005825/0.1376, allocations: 350.5 kB / 0.496 GB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1376, allocations: 0 / 0.496 GB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.1379, allocations: 190.6 kB / 0.4962 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1382, allocations: 15.98 kB / 0.4962 GB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.1392, allocations: 0.5257 MB / 0.4967 GB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.1396, allocations: 0.728 MB / 0.4974 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.985e-05/0.1397, allocations: 21.42 kB / 0.4974 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.052e-05/0.1397, allocations: 15.44 kB / 0.4975 GB, free: 2.984 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1397, allocations: 0 / 0.4975 GB, free: 2.984 MB / 382.1 MB Notification: Performance of Templates: time 0.005842/0.1456, allocations: 1.985 MB / 0.4994 GB, free: 1 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)