Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.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.001069/0.001069, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0008299/0.0008299, allocations: 173.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8885/0.8885, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.07133/0.07133, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.171e-05, allocations: 3.656 kB / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002759/0.00278, allocations: 1.68 MB / 416.7 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002636/0.003044, allocations: 55.28 kB / 416.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.474e-05/0.003099, allocations: 2.438 kB / 416.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 5.738e-05/0.003156, allocations: 10.5 kB / 416.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.003293, allocations: 22.56 kB / 416.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.837e-05/0.003351, allocations: 18.62 kB / 416.8 MB, free: 11.53 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.003459, allocations: 83.81 kB / 416.9 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.0036, allocations: 22.48 kB / 417 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.484e-05/0.003645, allocations: 34.03 kB / 417 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.229e-05/0.003737, allocations: 25.25 kB / 417 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.00377, allocations: 6.188 kB / 417 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.43e-05/0.003784, allocations: 6.781 kB / 417 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.003808, allocations: 18.22 kB / 417 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.734e-05/0.003845, allocations: 25.55 kB / 417.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.003982, allocations: 86.8 kB / 417.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.003984, allocations: 0 / 417.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.003986, allocations: 0 / 417.1 MB, free: 11.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.00399, allocations: 4 kB / 417.2 MB, free: 11.39 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003369/0.004327, allocations: 298.7 kB / 417.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.004371, allocations: 9.234 kB / 417.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.004407, allocations: 39.98 kB / 417.5 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.004438, allocations: 17.47 kB / 417.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.287e-05/0.004511, allocations: 115.4 kB / 417.6 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.004526, allocations: 4.719 kB / 417.6 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.004542, allocations: 9.812 kB / 417.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.004706, allocations: 93.97 kB / 417.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.004717, allocations: 0 / 417.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.004729, allocations: 9.406 kB / 417.7 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.004735, allocations: 5.234 kB / 417.7 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.004837, allocations: 50.3 kB / 417.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.005345, allocations: 320.8 kB / 418.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.00545, allocations: 55.84 kB / 418.2 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.005489, allocations: 20.17 kB / 418.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.005509, allocations: 2.109 kB / 418.2 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.005527, allocations: 36.16 kB / 418.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.005528, allocations: 0 / 418.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001917/0.00572, allocations: 81.17 kB / 418.3 MB, free: 10.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.005744, allocations: 52.78 kB / 418.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.824e-05/0.005802, allocations: 107 kB / 418.5 MB, free: 10.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.532e-06/0.005809, allocations: 25.7 kB / 418.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.005848, allocations: 107.5 kB / 418.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.005864, allocations: 24.23 kB / 418.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.005902, allocations: 22.05 kB / 418.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.356e-05/0.005936, allocations: 317.8 kB / 418.9 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.531e-05/0.005971, allocations: 18.08 kB / 419 MB, free: 9.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.112e-05/0.006012, allocations: 36.52 kB / 419 MB, free: 9.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.531e-05/0.006088, allocations: 65.16 kB / 419.1 MB, free: 9.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.00609, allocations: 0 / 419.1 MB, free: 9.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001103/0.0062, allocations: 81.14 kB / 419.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.006216, allocations: 6.406 kB / 419.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.006222, allocations: 4.688 kB / 419.1 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.006236, allocations: 1.562 kB / 419.1 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.006339, allocations: 17.78 kB / 419.2 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.006346, allocations: 5.969 kB / 419.2 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.108e-05/0.006377, allocations: 13.38 kB / 419.2 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.006387, allocations: 3.672 kB / 419.2 MB, free: 9.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.006438, allocations: 118.5 kB / 419.3 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.006461, allocations: 5.891 kB / 419.3 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.006612, allocations: 80.66 kB / 419.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.006615, allocations: 4.938 kB / 419.4 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.00662, allocations: 0.9688 kB / 419.4 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.006625, allocations: 0.6094 kB / 419.4 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.006787, allocations: 158.8 kB / 419.5 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.006791, allocations: 5.578 kB / 419.6 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.984e-05/0.00685, allocations: 12.72 kB / 419.6 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.006855, allocations: 5.125 kB / 419.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.006868, allocations: 0.9688 kB / 419.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.006871, allocations: 0.8906 kB / 419.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.006873, allocations: 1.031 kB / 419.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.006983, allocations: 170.2 kB / 419.7 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.256e-05/0.006996, allocations: 6.062 kB / 419.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.007009, allocations: 1.406 kB / 419.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.364e-05/0.007063, allocations: 0.5625 kB / 419.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.007081, allocations: 4.984 kB / 419.8 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.007088, allocations: 6.609 kB / 419.8 MB, free: 9.062 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.319e-05/0.007111, allocations: 88.73 kB / 419.8 MB, free: 8.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007111, allocations: 0 / 419.8 MB, free: 8.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.00739, allocations: 26.3 kB / 419.9 MB, free: 8.969 MB / 330.7 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 (7): * Single equations (assignments): 7 * 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.0002557/0.007646, allocations: 0.7028 MB / 420.6 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.007782, allocations: 36.08 kB / 420.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.007787, allocations: 0 / 420.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.995e-05/0.007817, allocations: 21.7 kB / 420.6 MB, free: 8.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.008178, allocations: 11.7 kB / 420.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005244/0.008702, allocations: 199.3 kB / 420.8 MB, free: 8.082 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.718e-05/0.008759, allocations: 74.41 kB / 420.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.971e-05/0.008799, allocations: 5.094 kB / 420.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.706e-05/0.008846, allocations: 26.08 kB / 420.9 MB, free: 7.992 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.008847, allocations: 0 / 420.9 MB, free: 7.992 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.02795, allocations: 2.161 MB / 423.1 MB, free: 7.066 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.933/6.961, allocations: 19.66 kB / 423.1 MB, free: 7.055 MB / 330.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001_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_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.072491873987019] Failed to read output from testmodel.py, exit status != 0: 7.040849233046174 7.050937594 7.044192834 Calling exit ...