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.001148/0.001148, allocations: 114.7 kB / 16.37 MB, free: 5.984 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.001151/0.001151, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1343/0.1343, allocations: 22.33 MB / 313.5 MB, free: 8.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 61.12 kB / 382.2 MB, free: 41.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09811, allocations: 54.96 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.00295/0.1011, allocations: 1.847 MB / 439.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008263/0.1019, allocations: 0.5145 MB / 439.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.316e-05/0.102, allocations: 0 / 439.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.1023, allocations: 39.77 kB / 439.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.1025, allocations: 47.64 kB / 439.7 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.1027, allocations: 55.91 kB / 439.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.1029, allocations: 211.4 kB / 439.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1031, allocations: 41.55 kB / 440 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.1033, allocations: 87.67 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.1035, allocations: 87.61 kB / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.1035, allocations: 12 kB / 440.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.581e-05/0.1036, allocations: 16 kB / 440.2 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.409e-05/0.1037, allocations: 47.81 kB / 440.2 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.466e-05/0.1037, allocations: 63.67 kB / 440.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.104, allocations: 147.4 kB / 440.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.104, allocations: 0 / 440.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.318e-06/0.104, allocations: 0 / 440.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.104, allocations: 7.922 kB / 440.4 MB, free: 9.066 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.001029/0.105, allocations: 498.7 kB / 440.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1051, allocations: 8.031 kB / 440.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.1051, allocations: 16.75 kB / 440.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.1056, allocations: 255.9 kB / 441.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1056, allocations: 12.38 kB / 441.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.1057, allocations: 24.2 kB / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.1059, allocations: 113.6 kB / 441.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1059, allocations: 0 / 441.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1059, allocations: 4 kB / 441.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1059, allocations: 4 kB / 441.3 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1061, allocations: 91.88 kB / 441.4 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007663/0.1069, allocations: 468.3 kB / 441.9 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.1073, allocations: 158.7 kB / 442 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1074, allocations: 64.83 kB / 442.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.1074, allocations: 0 / 442.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.1075, allocations: 34.56 kB / 442.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.1075, allocations: 0 / 442.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001002/0.1085, allocations: 0.5365 MB / 442.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.1085, allocations: 51.41 kB / 442.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.1088, allocations: 198.9 kB / 442.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1088, allocations: 33.7 kB / 442.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/0.1089, allocations: 112.3 kB / 443 MB, free: 6.176 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.109, allocations: 59.11 kB / 443.1 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/0.109, allocations: 37.7 kB / 443.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1091, allocations: 326.8 kB / 443.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.1092, allocations: 47.92 kB / 443.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.1093, allocations: 79.67 kB / 443.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007025/0.1101, allocations: 261.9 kB / 443.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1101, allocations: 4 kB / 443.8 MB, free: 5.355 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.000539/0.1106, allocations: 378.2 kB / 444.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1106, allocations: 15.92 kB / 444.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1106, allocations: 0 / 444.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.1108, allocations: 45.69 kB / 444.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.111, allocations: 35.92 kB / 444.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/0.1136, allocations: 4.652 MB / 449 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.1138, allocations: 11.98 kB / 449 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.1138, allocations: 11.94 kB / 449 MB, free: 15.82 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.000123/0.1139, allocations: 130.6 kB / 449.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.114, allocations: 7.906 kB / 449.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.114, allocations: 21.19 kB / 449.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.114, allocations: 8.062 kB / 449.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.114, allocations: 3.938 kB / 449.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1141, allocations: 0 / 449.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005973/0.1147, allocations: 0.5014 MB / 449.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1147, allocations: 0 / 449.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.1148, allocations: 27.92 kB / 449.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.115, allocations: 40.83 kB / 449.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.115, allocations: 4 kB / 449.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.1161, allocations: 1.623 MB / 451.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1161, allocations: 4.031 kB / 451.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.1165, allocations: 340 kB / 451.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.1166, allocations: 89.02 kB / 451.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.1166, allocations: 8.031 kB / 451.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.1168, allocations: 11.98 kB / 451.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.1169, allocations: 15.92 kB / 451.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.1169, allocations: 4 kB / 451.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.1171, allocations: 159.4 kB / 452 MB, free: 12.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1171, allocations: 4 kB / 452 MB, free: 12.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003739/0.1175, allocations: 36 kB / 452 MB, free: 12.55 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.0001026/0.1176, allocations: 95.19 kB / 452.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.1181, allocations: 361.1 kB / 452.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1181, allocations: 0 / 452.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.1184, allocations: 191.8 kB / 452.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.1187, allocations: 15.98 kB / 452.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008319/0.1195, allocations: 0.5188 MB / 453.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.1198, allocations: 0.7241 MB / 453.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.661e-05/0.1199, allocations: 21.42 kB / 453.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.1199, allocations: 15.44 kB / 453.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1199, allocations: 0 / 453.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of Templates: time 0.004766/0.1247, allocations: 1.942 MB / 455.9 MB, free: 8.586 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 gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)