Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.001271/0.001271, allocations: 109.2 kB / 16.4 MB, free: 6.496 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.001305/0.001305, allocations: 191.7 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.379/1.379, 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.09783/0.09783, allocations: 22.33 MB / 319.6 MB, free: 6.781 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.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M1_TimeDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M1_TimeDomain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002539/0.002539, allocations: 71.88 kB / 445.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1234, allocations: 54.95 MB / 0.4885 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001657/0.1251, allocations: 0.6013 MB / 0.4891 GB, free: 1.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002142/0.1253, allocations: 63.89 kB / 0.4891 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.819e-05/0.1253, allocations: 0 / 0.4891 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.1254, allocations: 7.938 kB / 0.4891 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.131e-05/0.1255, allocations: 7.922 kB / 0.4891 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.1256, allocations: 15.97 kB / 0.4892 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.596e-05/0.1257, allocations: 43.84 kB / 0.4892 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.03e-05/0.1258, allocations: 4.188 kB / 0.4892 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.082e-05/0.1258, allocations: 15.92 kB / 0.4892 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1259, allocations: 35.78 kB / 0.4893 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.1259, allocations: 0 / 0.4893 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.264e-05/0.126, allocations: 4 kB / 0.4893 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.126, allocations: 15.92 kB / 0.4893 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.126, allocations: 23.86 kB / 0.4893 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 8.143e-05/0.1261, allocations: 35.75 kB / 0.4893 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1261, allocations: 0 / 0.4893 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1261, allocations: 0 / 0.4893 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1261, allocations: 0 / 0.4893 GB, free: 0.7617 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000513/0.1267, allocations: 371.2 kB / 0.4897 GB, free: 360 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1267, allocations: 12.03 kB / 0.4897 GB, free: 348 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.61e-05/0.1268, allocations: 38.75 kB / 0.4897 GB, free: 300 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.982e-05/0.1268, allocations: 8.891 kB / 0.4897 GB, free: 292 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.1269, allocations: 172.3 kB / 0.4899 GB, free: 80 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.127, allocations: 4.312 kB / 0.4899 GB, free: 76 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.127, allocations: 12.31 kB / 0.4899 GB, free: 64 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.1272, allocations: 73.59 kB / 0.49 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.1272, allocations: 0 / 0.49 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.1272, allocations: 3.938 kB / 0.49 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1272, allocations: 0 / 0.49 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.434e-05/0.1273, allocations: 31.98 kB / 0.49 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.1277, allocations: 300.8 kB / 0.4903 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.128, allocations: 98.48 kB / 0.4904 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.795e-05/0.1281, allocations: 32.84 kB / 0.4904 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.1281, allocations: 4 kB / 0.4904 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.1281, allocations: 34.56 kB / 0.4905 GB, free: 15.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1281, allocations: 0 / 0.4905 GB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002516/0.1284, allocations: 105.8 kB / 0.4906 GB, free: 15.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1284, allocations: 55.41 kB / 0.4906 GB, free: 15.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.1285, allocations: 113.8 kB / 0.4907 GB, free: 15.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1285, allocations: 29.8 kB / 0.4908 GB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.1286, allocations: 92.08 kB / 0.4909 GB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.1286, allocations: 43.67 kB / 0.4909 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.1287, allocations: 29.67 kB / 0.4909 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1288, allocations: 322.8 kB / 0.4912 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.1289, allocations: 27.92 kB / 0.4913 GB, free: 14.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.216e-05/0.1289, allocations: 33.7 kB / 0.4913 GB, free: 14.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.1293, allocations: 117.7 kB / 0.4914 GB, free: 14.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1293, allocations: 3.938 kB / 0.4914 GB, free: 14.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000156/0.1295, allocations: 108.8 kB / 0.4915 GB, free: 14.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.1295, allocations: 4 kB / 0.4915 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1295, allocations: 0 / 0.4915 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1296, allocations: 4 kB / 0.4915 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.1297, allocations: 32.3 kB / 0.4916 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1297, allocations: 4 kB / 0.4916 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.259e-05/0.1297, allocations: 11.94 kB / 0.4916 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.1298, allocations: 4 kB / 0.4916 GB, free: 14.23 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.0 fixed = true ) 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000185/0.13, allocations: 134.5 kB / 0.4917 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.13, allocations: 4 kB / 0.4917 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001789/0.1302, allocations: 101.9 kB / 0.4918 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.1302, allocations: 11.97 kB / 0.4918 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1302, allocations: 0 / 0.4918 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1302, allocations: 4 kB / 0.4918 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.1304, allocations: 189.5 kB / 0.492 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1304, allocations: 0 / 0.492 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.1306, allocations: 31.98 kB / 0.492 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1306, allocations: 0 / 0.492 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.1306, allocations: 4 kB / 0.492 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1306, allocations: 0 / 0.492 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1306, allocations: 0 / 0.492 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.1309, allocations: 231.9 kB / 0.4923 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.1309, allocations: 85.06 kB / 0.4923 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.131, allocations: 4 kB / 0.4923 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.356e-05/0.131, allocations: 0 / 0.4923 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/0.1311, allocations: 8.031 kB / 0.4923 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.1311, allocations: 4 kB / 0.4923 GB, free: 13.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.313e-05/0.1311, allocations: 95.31 kB / 0.4924 GB, free: 13.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1311, allocations: 0 / 0.4924 GB, free: 13.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000223/0.1314, allocations: 19.94 kB / 0.4925 GB, free: 13.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000536/0.1319, allocations: 0.7475 MB / 0.4932 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.1321, allocations: 64.02 kB / 0.4932 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1321, allocations: 3.938 kB / 0.4933 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.969e-05/0.1322, allocations: 31.98 kB / 0.4933 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.1324, allocations: 8 kB / 0.4933 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.1339, allocations: 1.507 MB / 0.4948 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1342, allocations: 0.6924 MB / 0.4954 GB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.389e-05/0.1342, allocations: 8.656 kB / 0.4954 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.1343, allocations: 19.44 kB / 0.4955 GB, free: 10 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1343, allocations: 4 kB / 0.4955 GB, free: 9.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.1573, allocations: 1.753 MB / 0.4972 GB, free: 8.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/7.89, allocations: 18.08 kB / 0.4972 GB, free: 8.301 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M1_TimeDomain_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 AES_AES_Coursework_Modelling_principles_M1_TimeDomain.fmu > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.343161653028801] Failed to read output from testmodel.py, exit status != 0: 7.956445551943034 8.145364131000001 8.017124136 Calling exit ...