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.0016/0.0016, allocations: 105.7 kB / 16.41 MB, free: 6.512 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.001753/0.001753, allocations: 187 kB / 17.34 MB, free: 5.742 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.804/1.804, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09477/0.09477, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 60.12 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1241, allocations: 54.95 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003515/0.1277, allocations: 1.86 MB / 494.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.1287, allocations: 0.5145 MB / 495 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.199e-05/0.1289, allocations: 4 kB / 495 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.1292, allocations: 27.78 kB / 495.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1294, allocations: 51.67 kB / 495.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.1296, allocations: 59.92 kB / 495.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.1299, allocations: 203.4 kB / 495.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.13, allocations: 49.47 kB / 495.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.1302, allocations: 87.67 kB / 495.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.1304, allocations: 83.66 kB / 495.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.1304, allocations: 12 kB / 495.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.1304, allocations: 16 kB / 495.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.1305, allocations: 39.84 kB / 495.6 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.423e-05/0.1306, allocations: 75.58 kB / 495.7 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1308, allocations: 147.4 kB / 495.9 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1308, allocations: 0 / 495.9 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1308, allocations: 0 / 495.9 MB, free: 1.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.1308, allocations: 8 kB / 495.9 MB, free: 1.535 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.000938/0.1318, allocations: 486.7 kB / 496.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1318, allocations: 8.031 kB / 496.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.1319, allocations: 24.73 kB / 496.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.1323, allocations: 248 kB / 496.6 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.1323, allocations: 8.375 kB / 496.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.1324, allocations: 12.38 kB / 496.6 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.1326, allocations: 117.6 kB / 496.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1327, allocations: 7.938 kB / 496.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.1327, allocations: 4 kB / 496.8 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.1327, allocations: 4 kB / 496.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.1329, allocations: 91.83 kB / 496.9 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000774/0.1337, allocations: 464.3 kB / 497.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003648/0.134, allocations: 162.7 kB / 497.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1342, allocations: 64.83 kB / 497.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1342, allocations: 0 / 497.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1342, allocations: 34.84 kB / 497.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 8.52e-07/0.1342, allocations: 0 / 497.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001055/0.1353, allocations: 0.5443 MB / 498.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.1354, allocations: 55.41 kB / 498.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.1357, allocations: 198.1 kB / 498.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1357, allocations: 33.64 kB / 498.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/0.1358, allocations: 112.3 kB / 498.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.1358, allocations: 59.11 kB / 498.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.1359, allocations: 37.7 kB / 498.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.136, allocations: 326.8 kB / 498.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.1361, allocations: 55.91 kB / 499 MB, free: 14.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.1363, allocations: 61.69 kB / 499 MB, free: 14.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007628/0.137, allocations: 259.8 kB / 499.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.137, allocations: 3.938 kB / 499.3 MB, free: 13.84 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.0006062/0.1377, allocations: 391.8 kB / 499.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1377, allocations: 7.938 kB / 499.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1377, allocations: 0 / 499.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001904/0.1379, allocations: 53.72 kB / 499.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.1381, allocations: 31.98 kB / 499.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.1414, allocations: 4.633 MB / 0.4926 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1416, allocations: 12.02 kB / 0.4926 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.1416, allocations: 11.94 kB / 0.4926 GB, free: 8.312 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.000153/0.1418, allocations: 137.6 kB / 0.4927 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.1418, allocations: 15.81 kB / 0.4927 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.1419, allocations: 21.19 kB / 0.4928 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1419, allocations: 3.984 kB / 0.4928 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1419, allocations: 7.938 kB / 0.4928 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1419, allocations: 0 / 0.4928 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006982/0.1426, allocations: 0.4991 MB / 0.4933 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1426, allocations: 4 kB / 0.4933 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.1428, allocations: 27.98 kB / 0.4933 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001285/0.1429, allocations: 52.64 kB / 0.4933 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.143, allocations: 0 / 0.4933 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.1442, allocations: 1.615 MB / 0.4949 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1442, allocations: 0 / 0.4949 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.1447, allocations: 338.8 kB / 0.4952 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.495e-05/0.1448, allocations: 92.95 kB / 0.4953 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.1448, allocations: 8 kB / 0.4953 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.145, allocations: 7.984 kB / 0.4953 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.1451, allocations: 19.92 kB / 0.4954 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.1451, allocations: 11.98 kB / 0.4954 GB, free: 5.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000267/0.1454, allocations: 147.2 kB / 0.4955 GB, free: 5.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1454, allocations: 0 / 0.4955 GB, free: 5.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000405/0.1458, allocations: 36 kB / 0.4956 GB, free: 5.043 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.0001517/0.146, allocations: 103.2 kB / 0.4957 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006013/0.1466, allocations: 357.3 kB / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1466, allocations: 0 / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.1469, allocations: 202.4 kB / 0.4962 GB, free: 4.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.1472, allocations: 19.94 kB / 0.4962 GB, free: 4.328 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.1482, allocations: 0.5336 MB / 0.4967 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.1487, allocations: 0.7319 MB / 0.4974 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.889e-05/0.1487, allocations: 23.36 kB / 0.4975 GB, free: 2.98 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1487, allocations: 0 / 0.4975 GB, free: 2.98 MB / 382.1 MB Notification: Performance of Templates: time 0.004694/0.1534, allocations: 2.792 MB / 0.5002 GB, free: 188 kB / 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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)