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.001139/0.001139, allocations: 106.6 kB / 16.41 MB, free: 6.469 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.001154/0.001154, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.339/1.339, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09674/0.09674, allocations: 22.34 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1077, allocations: 54.95 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002924/0.1107, allocations: 1.861 MB / 494.5 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009142/0.1116, allocations: 0.5185 MB / 495 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.1117, allocations: 0 / 495 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.112, allocations: 35.72 kB / 495.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1122, allocations: 43.7 kB / 495.1 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.1124, allocations: 51.91 kB / 495.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.1127, allocations: 211.4 kB / 495.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1128, allocations: 33.55 kB / 495.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.113, allocations: 91.69 kB / 495.5 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1131, allocations: 95.58 kB / 495.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1132, allocations: 16 kB / 495.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.16e-05/0.1132, allocations: 12 kB / 495.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.1133, allocations: 35.91 kB / 495.7 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.85e-05/0.1134, allocations: 67.59 kB / 495.7 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.1136, allocations: 159.2 kB / 495.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1136, allocations: 0 / 495.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1136, allocations: 0 / 495.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1136, allocations: 0 / 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.0009207/0.1145, allocations: 0.4948 MB / 496.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1146, allocations: 8.031 kB / 496.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.1147, allocations: 16.84 kB / 496.4 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.1151, allocations: 252 kB / 496.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1151, allocations: 8.375 kB / 496.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.1151, allocations: 12.38 kB / 496.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.1153, allocations: 117.6 kB / 496.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1154, allocations: 0 / 496.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1154, allocations: 4 kB / 496.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1154, allocations: 4 kB / 496.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.1156, allocations: 83.88 kB / 496.9 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007531/0.1164, allocations: 476.4 kB / 497.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.1167, allocations: 162.7 kB / 497.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1168, allocations: 60.78 kB / 497.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.1169, allocations: 8 kB / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.1169, allocations: 38.55 kB / 497.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.1169, allocations: 0 / 497.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001003/0.1179, allocations: 0.5395 MB / 498.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.1179, allocations: 55.41 kB / 498.2 MB, free: 15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.1182, allocations: 198.1 kB / 498.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1183, allocations: 25.7 kB / 498.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/0.1183, allocations: 120.3 kB / 498.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/0.1184, allocations: 67.45 kB / 498.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/0.1185, allocations: 37.7 kB / 498.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1186, allocations: 322.8 kB / 498.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-05/0.1187, allocations: 47.98 kB / 499 MB, free: 14.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.1188, allocations: 72.62 kB / 499.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007361/0.1195, allocations: 267.7 kB / 499.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1196, allocations: 0 / 499.3 MB, free: 13.82 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.0005263/0.1201, allocations: 390.2 kB / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1201, allocations: 7.938 kB / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.1201, allocations: 0 / 499.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.1203, allocations: 53.67 kB / 499.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1205, allocations: 39.95 kB / 499.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/0.1229, allocations: 4.641 MB / 0.4926 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.1231, allocations: 16.02 kB / 0.4926 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.1231, 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.0001209/0.1232, allocations: 134.6 kB / 0.4928 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.1233, allocations: 15.88 kB / 0.4928 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.033e-05/0.1233, allocations: 25.25 kB / 0.4928 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1233, allocations: 0 / 0.4928 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1233, allocations: 0 / 0.4928 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.1234, allocations: 96.94 kB / 0.4929 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.1234, allocations: 8 kB / 0.4929 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.1236, allocations: 11.98 kB / 0.4929 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.1237, allocations: 19.91 kB / 0.4929 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006015/0.1243, allocations: 288.1 kB / 0.4932 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004075/0.1247, allocations: 402.4 kB / 0.4936 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001059/0.1248, allocations: 63.11 kB / 0.4937 GB, free: 7.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.125, allocations: 159.2 kB / 0.4938 GB, free: 7.031 MB / 382.1 MB Notification: Performance of Backend: time 4.1e-07/0.1251, allocations: 0 / 0.4938 GB, free: 7.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006262/0.1257, allocations: 385 kB / 0.4942 GB, free: 6.625 MB / 382.1 MB Notification: Performance of SimCode: time 0.0008138/0.1265, allocations: 0.9485 MB / 0.4951 GB, free: 5.629 MB / 382.1 MB Notification: Performance of Templates: time 0.004547/0.1311, allocations: 1.986 MB / 0.497 GB, free: 3.641 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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)