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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 106.2 kB / 16.4 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 192.6 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.548/1.548, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1086/0.1086, allocations: 22.33 MB / 319.6 MB, free: 6.758 MB / 254.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 68.11 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1335, allocations: 54.95 MB / 0.4885 GB, free: 1.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003262/0.1368, allocations: 1.854 MB / 0.4903 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.1378, allocations: 0.5184 MB / 0.4908 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.531e-05/0.1379, allocations: 0 / 0.4908 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.1382, allocations: 31.78 kB / 0.4908 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.1384, allocations: 55.61 kB / 0.4909 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.1386, allocations: 47.92 kB / 0.4909 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.1389, allocations: 203.5 kB / 0.4911 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.139, allocations: 41.47 kB / 0.4912 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1392, allocations: 95.67 kB / 0.4912 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.1394, allocations: 95.59 kB / 0.4913 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.1395, allocations: 12 kB / 0.4914 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.241e-05/0.1395, allocations: 12 kB / 0.4914 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-05/0.1396, allocations: 39.84 kB / 0.4914 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.011e-05/0.1397, allocations: 71.58 kB / 0.4915 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.1399, allocations: 143.4 kB / 0.4916 GB, free: 14.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1399, allocations: 0 / 0.4916 GB, free: 14.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1399, allocations: 0 / 0.4916 GB, free: 14.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.14, allocations: 0 / 0.4916 GB, free: 14.4 MB / 382.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.001123/0.1411, allocations: 0.4947 MB / 0.4921 GB, free: 13.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1411, allocations: 8.031 kB / 0.4921 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.292e-05/0.1412, allocations: 46.73 kB / 0.4921 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.365e-05/0.1412, allocations: 16.84 kB / 0.4922 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.1417, allocations: 260 kB / 0.4924 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.1418, allocations: 8.375 kB / 0.4924 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.1418, allocations: 20.11 kB / 0.4924 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.1421, allocations: 113.6 kB / 0.4925 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1421, allocations: 0 / 0.4925 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1421, allocations: 4 kB / 0.4925 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1421, allocations: 4 kB / 0.4925 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.1423, allocations: 87.88 kB / 0.4926 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008448/0.1432, allocations: 464.4 kB / 0.4931 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.1436, allocations: 170.7 kB / 0.4932 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.1437, allocations: 68.83 kB / 0.4933 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.1437, allocations: 4 kB / 0.4933 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.1438, allocations: 30.56 kB / 0.4933 GB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.1438, allocations: 0 / 0.4933 GB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001183/0.145, allocations: 0.5426 MB / 0.4939 GB, free: 11.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.145, allocations: 51.41 kB / 0.4939 GB, free: 11.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003456/0.1454, allocations: 194.2 kB / 0.4941 GB, free: 11.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.1454, allocations: 29.7 kB / 0.4941 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.1455, allocations: 120.3 kB / 0.4942 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.1456, allocations: 59.48 kB / 0.4943 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-05/0.1456, allocations: 37.7 kB / 0.4943 GB, free: 11.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1458, allocations: 334.8 kB / 0.4947 GB, free: 11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1459, allocations: 47.92 kB / 0.4947 GB, free: 10.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.1461, allocations: 68.67 kB / 0.4948 GB, free: 10.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007831/0.1469, allocations: 268.2 kB / 0.495 GB, free: 10.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1469, allocations: 0 / 0.495 GB, free: 10.62 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.0007302/0.1476, allocations: 390.1 kB / 0.4954 GB, free: 10.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1476, allocations: 4 kB / 0.4954 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.1476, allocations: 0 / 0.4954 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.1478, allocations: 53.72 kB / 0.4955 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.148, allocations: 35.92 kB / 0.4955 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/0.1514, allocations: 4.637 MB / 0.5 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.1517, allocations: 16.02 kB / 0.5 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1517, allocations: 8 kB / 0.5 GB, free: 5.094 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.0001916/0.1519, allocations: 130.7 kB / 0.5002 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.152, allocations: 11.95 kB / 0.5002 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.152, allocations: 21.19 kB / 0.5002 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.152, allocations: 3.938 kB / 0.5002 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.152, allocations: 4.047 kB / 0.5002 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1521, allocations: 3.984 kB / 0.5002 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007881/0.1528, allocations: 0.503 MB / 0.5007 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1529, allocations: 7.875 kB / 0.5007 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.153, allocations: 31.98 kB / 0.5007 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.1532, allocations: 32.83 kB / 0.5008 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.1532, allocations: 4 kB / 0.5008 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.1547, allocations: 1.615 MB / 0.5023 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1547, allocations: 0 / 0.5023 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005217/0.1552, allocations: 346.1 kB / 0.5027 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.11e-05/0.1553, allocations: 89.02 kB / 0.5028 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.1554, allocations: 12.03 kB / 0.5028 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.1555, allocations: 15.98 kB / 0.5028 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.1556, allocations: 11.92 kB / 0.5028 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1556, allocations: 4 kB / 0.5028 GB, free: 2.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000366/0.156, allocations: 156.1 kB / 0.503 GB, free: 1.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.156, allocations: 0 / 0.503 GB, free: 1.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.1564, allocations: 40 kB / 0.503 GB, free: 1.828 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.0009118/0.1574, allocations: 0.8808 MB / 0.5038 GB, free: 0.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005903/0.158, allocations: 349.3 kB / 0.5042 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.158, allocations: 0 / 0.5042 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.1583, allocations: 190.5 kB / 0.5044 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.1586, allocations: 22.86 kB / 0.5044 GB, free: 340 kB / 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.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2272/0.3858, allocations: 2.61 MB / 0.5069 GB, free: 18.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.386, allocations: 0.7254 MB / 0.5076 GB, free: 18.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.389e-05/0.386, allocations: 21.84 kB / 0.5077 GB, free: 18.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.153e-05/0.3861, allocations: 45.47 kB / 0.5077 GB, free: 18.29 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3861, allocations: 0 / 0.5077 GB, free: 18.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.4231, allocations: 3.831 MB / 0.5114 GB, free: 17.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.44, allocations: 14.31 kB / 0.5115 GB, free: 17.88 MB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_case_studies.foo_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.413372523034923] Failed to read output from testmodel.py, exit status != 0: 12.530663616023958 12.546854979999999 12.403315549 Calling exit ...