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.001196/0.001196, allocations: 103.6 kB / 16.36 MB, free: 5.875 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.001232/0.001232, allocations: 199.2 kB / 17.3 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09233/0.09233, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001447, allocations: 61.81 kB / 382.2 MB, free: 41.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.09481, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003422/0.09826, allocations: 1.843 MB / 439 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008673/0.09915, allocations: 0.5262 MB / 439.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.19e-05/0.09925, allocations: 0 / 439.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.09955, allocations: 27.8 kB / 439.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.0997, allocations: 43.69 kB / 439.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.09989, allocations: 59.86 kB / 439.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.1001, allocations: 211.4 kB / 439.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.1003, allocations: 33.55 kB / 439.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1004, allocations: 91.67 kB / 440 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.1006, allocations: 95.64 kB / 440.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.1006, allocations: 12 kB / 440.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.452e-05/0.1007, allocations: 15.94 kB / 440.1 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.613e-05/0.1007, allocations: 35.91 kB / 440.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.6e-05/0.1008, allocations: 71.53 kB / 440.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.101, allocations: 151.4 kB / 440.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.101, allocations: 0 / 440.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.101, allocations: 0 / 440.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.101, allocations: 0 / 440.4 MB, free: 9.059 MB / 318.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.0009144/0.102, allocations: 0.4948 MB / 440.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.102, allocations: 8.031 kB / 440.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.1021, allocations: 16.75 kB / 440.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.1025, allocations: 252 kB / 441.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1025, allocations: 8.375 kB / 441.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.1025, allocations: 16.28 kB / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.1028, allocations: 117.5 kB / 441.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1028, allocations: 0 / 441.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1028, allocations: 4 kB / 441.3 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1028, allocations: 4 kB / 441.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.103, allocations: 87.89 kB / 441.4 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008344/0.1039, allocations: 472.3 kB / 441.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.1043, allocations: 154.7 kB / 442 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.1044, allocations: 72.83 kB / 442.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.1045, allocations: 0 / 442.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.1045, allocations: 34.56 kB / 442.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.1045, allocations: 0 / 442.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.00105/0.1056, allocations: 0.5464 MB / 442.7 MB, free: 6.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.1056, allocations: 51.41 kB / 442.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.1059, allocations: 194.9 kB / 442.9 MB, free: 6.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.106, allocations: 33.7 kB / 442.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.106, allocations: 112.3 kB / 443 MB, free: 6.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.1061, allocations: 63.09 kB / 443.1 MB, free: 6.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/0.1062, allocations: 33.7 kB / 443.1 MB, free: 6.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1063, allocations: 330.8 kB / 443.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.1064, allocations: 51.91 kB / 443.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.1066, allocations: 67.75 kB / 443.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007559/0.1073, allocations: 265.8 kB / 443.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1073, allocations: 4 kB / 443.8 MB, free: 5.344 MB / 318.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.0006118/0.1079, allocations: 382.1 kB / 444.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.108, allocations: 7.938 kB / 444.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.108, allocations: 4 kB / 444.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/0.1082, allocations: 49.72 kB / 444.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1084, allocations: 39.86 kB / 444.3 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/0.1115, allocations: 4.637 MB / 448.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.1117, allocations: 19.97 kB / 449 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.1117, allocations: 8 kB / 449 MB, free: 15.81 MB / 334.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.0001411/0.1119, allocations: 130.6 kB / 449.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.1119, allocations: 11.97 kB / 449.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.414e-05/0.112, allocations: 25.17 kB / 449.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.112, allocations: 4 kB / 449.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.112, allocations: 3.938 kB / 449.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.112, allocations: 0 / 449.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.1127, allocations: 0.5029 MB / 449.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1127, allocations: 0 / 449.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.1129, allocations: 27.92 kB / 449.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.113, allocations: 44.75 kB / 449.7 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.113, allocations: 8 kB / 449.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.1143, allocations: 1.607 MB / 451.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1143, allocations: 4.031 kB / 451.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.1147, allocations: 336 kB / 451.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.1148, allocations: 97.23 kB / 451.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1148, allocations: 0 / 451.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.115, allocations: 15.98 kB / 451.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.1151, allocations: 15.91 kB / 451.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1151, allocations: 7.984 kB / 451.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002385/0.1153, allocations: 167.4 kB / 452 MB, free: 12.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1153, allocations: 0 / 452 MB, free: 12.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003762/0.1157, allocations: 32 kB / 452 MB, free: 12.54 MB / 334.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.0001116/0.1158, allocations: 99.19 kB / 452.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005169/0.1164, allocations: 360.9 kB / 452.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1164, allocations: 0 / 452.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.1166, allocations: 192 kB / 452.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.1169, allocations: 13.88 kB / 452.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008571/0.1178, allocations: 0.5114 MB / 453.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.1181, allocations: 0.7358 MB / 453.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.116e-05/0.1182, allocations: 21.41 kB / 453.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/0.1182, allocations: 11.44 kB / 453.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1182, allocations: 4 kB / 453.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Templates: time 0.004479/0.1227, allocations: 1.936 MB / 455.9 MB, free: 8.578 MB / 334.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 cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)