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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 109.5 kB / 17.14 MB, free: 5.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002945/0.002945, allocations: 205.1 kB / 20.11 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1057/0.1057, allocations: 24.03 MB / 333.6 MB, free: 1.594 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 73.42 kB / 468.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1146, allocations: 59.54 MB / 0.5156 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.002112/0.1167, allocations: 0.5875 MB / 0.5161 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002652/0.117, allocations: 63.89 kB / 0.5162 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.22e-05/0.117, allocations: 4 kB / 0.5162 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.294e-05/0.1171, allocations: 3.938 kB / 0.5162 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.449e-05/0.1172, allocations: 7.938 kB / 0.5162 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.1173, allocations: 23.91 kB / 0.5162 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.1174, allocations: 43.83 kB / 0.5163 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.977e-05/0.1175, allocations: 4.188 kB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.625e-05/0.1175, allocations: 19.92 kB / 0.5163 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.1177, allocations: 27.84 kB / 0.5163 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.1177, allocations: 4 kB / 0.5163 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.1177, allocations: 4 kB / 0.5163 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.1177, allocations: 8 kB / 0.5163 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.1178, allocations: 27.78 kB / 0.5164 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.686e-05/0.1179, allocations: 27.78 kB / 0.5164 GB, free: 11.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1179, allocations: 0 / 0.5164 GB, free: 11.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1179, allocations: 0 / 0.5164 GB, free: 11.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1179, allocations: 3.938 kB / 0.5164 GB, free: 11.47 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000593/0.1185, allocations: 373.6 kB / 0.5168 GB, free: 11.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.1185, allocations: 16.61 kB / 0.5168 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.419e-05/0.1186, allocations: 38.69 kB / 0.5168 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.1186, allocations: 8.891 kB / 0.5168 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.1188, allocations: 172.3 kB / 0.517 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.1188, allocations: 8.375 kB / 0.517 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/0.1188, allocations: 4.375 kB / 0.517 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.119, allocations: 69.59 kB / 0.5171 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.119, allocations: 0 / 0.5171 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.119, allocations: 0 / 0.5171 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.119, allocations: 4 kB / 0.5171 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.839e-05/0.1191, allocations: 39.92 kB / 0.5171 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005266/0.1196, allocations: 296.7 kB / 0.5174 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.12, allocations: 94.53 kB / 0.5175 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.006e-05/0.12, allocations: 33.03 kB / 0.5175 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.1201, allocations: 3.938 kB / 0.5175 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.1201, allocations: 38.56 kB / 0.5175 GB, free: 10.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.1201, allocations: 0 / 0.5175 GB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002808/0.1204, allocations: 109.6 kB / 0.5177 GB, free: 10.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.1204, allocations: 51.41 kB / 0.5177 GB, free: 9.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.1205, allocations: 113.8 kB / 0.5178 GB, free: 9.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1206, allocations: 33.7 kB / 0.5178 GB, free: 9.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.1206, allocations: 88.12 kB / 0.5179 GB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.1207, allocations: 39.64 kB / 0.518 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.1207, allocations: 29.72 kB / 0.518 GB, free: 9.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1209, allocations: 323.1 kB / 0.5183 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.952e-05/0.1209, allocations: 19.98 kB / 0.5183 GB, free: 9.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.324e-05/0.121, allocations: 41.45 kB / 0.5184 GB, free: 9.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.1215, allocations: 125.5 kB / 0.5185 GB, free: 9.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1215, allocations: 0 / 0.5185 GB, free: 9.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001939/0.1217, allocations: 113.6 kB / 0.5186 GB, free: 8.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1217, allocations: 8 kB / 0.5186 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1217, allocations: 0 / 0.5186 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.1217, allocations: 0 / 0.5186 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1218, allocations: 27.98 kB / 0.5186 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1218, allocations: 4 kB / 0.5186 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.1219, allocations: 7.891 kB / 0.5186 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1219, allocations: 12.14 kB / 0.5186 GB, free: 8.938 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.0002316/0.1221, allocations: 133.1 kB / 0.5188 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.1222, allocations: 7.953 kB / 0.5188 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.1224, allocations: 98.05 kB / 0.5189 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1224, allocations: 0 / 0.5189 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1224, allocations: 0 / 0.5189 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1224, allocations: 7.984 kB / 0.5189 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.1227, allocations: 193.5 kB / 0.5191 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1227, allocations: 0 / 0.5191 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1228, allocations: 31.92 kB / 0.5191 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1228, allocations: 4 kB / 0.5191 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1229, allocations: 0 / 0.5191 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1229, allocations: 0 / 0.5191 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1229, allocations: 0 / 0.5191 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.1232, allocations: 231.3 kB / 0.5193 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.252e-05/0.1232, allocations: 85.06 kB / 0.5194 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.1232, allocations: 0 / 0.5194 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.673e-05/0.1233, allocations: 0 / 0.5194 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.953e-05/0.1233, allocations: 8.031 kB / 0.5194 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.1233, allocations: 8 kB / 0.5194 GB, free: 8.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.034e-05/0.1234, allocations: 87.28 kB / 0.5195 GB, free: 7.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1234, allocations: 3.938 kB / 0.5195 GB, free: 7.961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1236, allocations: 15.94 kB / 0.5195 GB, free: 7.945 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.0006053/0.1242, allocations: 0.7564 MB / 0.5203 GB, free: 7.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.1244, allocations: 59.95 kB / 0.5203 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1244, allocations: 0 / 0.5203 GB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.97e-05/0.1244, allocations: 39.97 kB / 0.5204 GB, free: 7.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.1247, allocations: 14.34 kB / 0.5204 GB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.1265, allocations: 1.493 MB / 0.5218 GB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.1268, allocations: 0.6924 MB / 0.5225 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.679e-05/0.1269, allocations: 4.672 kB / 0.5225 GB, free: 4.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.925e-05/0.1269, allocations: 23.42 kB / 0.5225 GB, free: 4.723 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1269, allocations: 4 kB / 0.5225 GB, free: 4.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.1533, allocations: 1.76 MB / 0.5243 GB, free: 3.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.038, allocations: 15.73 kB / 0.5243 GB, free: 3.012 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.865806120913476] Failed to read output from testmodel.py, exit status != 0: 8.106553279794753 8.120575821 7.999820908 Calling exit ...