Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.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.001343/0.001343, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.001429/0.001429, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.605/1.605, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.136/0.136, allocations: 24.03 MB / 333.6 MB, free: 1.566 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001a,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001a,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a",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.003576/0.003576, allocations: 65.97 kB / 469.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1146, allocations: 59.54 MB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001a): time 0.004435/0.119, allocations: 2.234 MB / 0.5184 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005931/0.1196, allocations: 175.4 kB / 0.5186 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.1198, allocations: 4 kB / 0.5186 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.1199, allocations: 23.72 kB / 0.5186 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.1201, allocations: 63.42 kB / 0.5187 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.1204, allocations: 63.84 kB / 0.5188 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.1207, allocations: 234.9 kB / 0.519 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.121, allocations: 83.38 kB / 0.5191 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.1211, allocations: 83.78 kB / 0.5191 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.1213, allocations: 99.55 kB / 0.5192 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.1214, allocations: 20 kB / 0.5193 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.743e-05/0.1214, allocations: 24 kB / 0.5193 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.1215, allocations: 47.84 kB / 0.5193 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.1217, allocations: 119.5 kB / 0.5194 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.122, allocations: 235 kB / 0.5197 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.122, allocations: 0 / 0.5197 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.122, allocations: 0 / 0.5197 GB, free: 8.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.122, allocations: 0 / 0.5197 GB, free: 8.086 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009526/0.123, allocations: 499.1 kB / 0.5201 GB, free: 7.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.1231, allocations: 16.61 kB / 0.5202 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.432e-05/0.1231, allocations: 54.73 kB / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.315e-05/0.1232, allocations: 28.78 kB / 0.5202 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.1234, allocations: 200 kB / 0.5204 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.1235, allocations: 12.94 kB / 0.5204 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.1235, allocations: 24.38 kB / 0.5205 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.1239, allocations: 201.5 kB / 0.5207 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.124, allocations: 3.938 kB / 0.5207 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.124, allocations: 8 kB / 0.5207 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.124, allocations: 8 kB / 0.5207 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.1243, allocations: 150.1 kB / 0.5208 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.1257, allocations: 0.9327 MB / 0.5217 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.126, allocations: 146.7 kB / 0.5219 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.1263, allocations: 132.7 kB / 0.522 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.1264, allocations: 0 / 0.522 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.1264, allocations: 42.5 kB / 0.522 GB, free: 5.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.1264, allocations: 3.938 kB / 0.522 GB, free: 5.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.002225/0.1286, allocations: 0.6897 MB / 0.5227 GB, free: 4.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.1287, allocations: 51.41 kB / 0.5228 GB, free: 4.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.1288, allocations: 139.8 kB / 0.5229 GB, free: 4.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1288, allocations: 33.7 kB / 0.5229 GB, free: 4.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.129, allocations: 148.2 kB / 0.5231 GB, free: 4.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.911e-05/0.129, allocations: 71.38 kB / 0.5231 GB, free: 4.207 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.1291, allocations: 45.7 kB / 0.5232 GB, free: 4.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1293, allocations: 322.8 kB / 0.5235 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.734e-05/0.1294, allocations: 43.98 kB / 0.5235 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1295, allocations: 83.34 kB / 0.5236 GB, free: 3.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.1297, allocations: 133.4 kB / 0.5237 GB, free: 3.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1297, allocations: 4 kB / 0.5237 GB, free: 3.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008163/0.1305, allocations: 326.9 kB / 0.5241 GB, free: 3.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1306, allocations: 8 kB / 0.5241 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1306, allocations: 0 / 0.5241 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007696/0.1313, allocations: 181.5 kB / 0.5242 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.1315, allocations: 23.98 kB / 0.5243 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.1365, allocations: 3.835 MB / 0.528 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.746e-05/0.1366, allocations: 15.89 kB / 0.528 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.1366, allocations: 7.938 kB / 0.528 GB, free: 14.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (11): * Single equations (assignments): 9 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.1368, allocations: 134.6 kB / 0.5282 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.1368, allocations: 11.95 kB / 0.5282 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008193/0.1376, allocations: 313.5 kB / 0.5285 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1376, allocations: 3.984 kB / 0.5285 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.1376, allocations: 0 / 0.5285 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1376, allocations: 128 / 0.5285 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003613/0.138, allocations: 281.5 kB / 0.5287 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.138, allocations: 0 / 0.5287 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.895e-05/0.1381, allocations: 8 kB / 0.5287 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006542/0.1387, allocations: 189.4 kB / 0.5289 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.1387, allocations: 7.984 kB / 0.5289 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004645/0.1434, allocations: 3.805 MB / 0.5326 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1434, allocations: 0 / 0.5326 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008159/0.1442, allocations: 397.7 kB / 0.533 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.1443, allocations: 92.98 kB / 0.5331 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1443, allocations: 11.94 kB / 0.5331 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.987e-05/0.1444, allocations: 3.938 kB / 0.5331 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.1445, allocations: 19.98 kB / 0.5331 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1445, allocations: 4 kB / 0.5332 GB, free: 9.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.77e-05/0.1446, allocations: 108.7 kB / 0.5333 GB, free: 9.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1446, allocations: 0 / 0.5333 GB, free: 9.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005826/0.1452, allocations: 79.78 kB / 0.5333 GB, free: 9.039 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001196/0.1464, allocations: 0.9269 MB / 0.5342 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007872/0.1471, allocations: 406.4 kB / 0.5346 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1471, allocations: 0 / 0.5346 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.1477, allocations: 357.4 kB / 0.535 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.148, allocations: 13.7 kB / 0.535 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/0.1497, allocations: 0.5248 MB / 0.5355 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.1501, allocations: 0.7397 MB / 0.5362 GB, free: 5.941 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.548e-05/0.1501, allocations: 5.438 kB / 0.5362 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.1502, allocations: 43.42 kB / 0.5363 GB, free: 5.895 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1502, allocations: 4 kB / 0.5363 GB, free: 5.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.1879, allocations: 4.705 MB / 0.5409 GB, free: 1.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.07, allocations: 4.062 kB / 0.5409 GB, free: 1.312 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001a.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.275479812175035] Failed to read output from testmodel.py, exit status != 0: 12.166548569919541 12.186644823 12.061588072 Calling exit ...