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.001455/0.001455, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.0015/0.0015, allocations: 211.5 kB / 23.01 MB, free: 4.992 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.432/1.432, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1075/0.1075, allocations: 24.04 MB / 337.2 MB, free: 11.33 MB / 270.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.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: 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.002154/0.002154, allocations: 75.89 kB / 473.8 MB, free: 6.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3424, allocations: 59.56 MB / 0.5209 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002668/0.345, allocations: 1.667 MB / 0.5225 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002129/0.3452, allocations: 62.27 kB / 0.5226 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.46e-05/0.3453, allocations: 2.594 kB / 0.5226 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.79e-05/0.3453, allocations: 14.64 kB / 0.5226 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.3455, allocations: 19.23 kB / 0.5226 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.38e-05/0.3455, allocations: 14.61 kB / 0.5226 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.3456, allocations: 87.97 kB / 0.5227 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.3458, allocations: 28.8 kB / 0.5228 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.593e-05/0.3458, allocations: 32.08 kB / 0.5228 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.582e-05/0.3459, allocations: 33.59 kB / 0.5228 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.3459, allocations: 6.906 kB / 0.5228 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.737e-05/0.3459, allocations: 6.625 kB / 0.5228 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.15e-05/0.3459, allocations: 21.69 kB / 0.5228 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.346, allocations: 30.59 kB / 0.5229 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.3461, allocations: 80.81 kB / 0.523 GB, free: 8.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3461, allocations: 0 / 0.523 GB, free: 8.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3461, allocations: 0 / 0.523 GB, free: 8.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3461, allocations: 0.75 kB / 0.523 GB, free: 8.723 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003458/0.3465, allocations: 298.3 kB / 0.5232 GB, free: 8.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3465, allocations: 11.02 kB / 0.5233 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.3465, allocations: 39.91 kB / 0.5233 GB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.75e-05/0.3466, allocations: 9.734 kB / 0.5233 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.738e-05/0.3466, allocations: 123 kB / 0.5234 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.3466, allocations: 4.531 kB / 0.5234 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.3467, allocations: 10.47 kB / 0.5234 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.3468, allocations: 88.97 kB / 0.5235 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3468, allocations: 1.312 kB / 0.5235 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3468, allocations: 7.938 kB / 0.5235 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3468, allocations: 2.969 kB / 0.5235 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.572e-05/0.3469, allocations: 50.7 kB / 0.5236 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.3474, allocations: 327.1 kB / 0.5239 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.3475, allocations: 56.45 kB / 0.5239 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.631e-05/0.3475, allocations: 19.41 kB / 0.524 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3476, allocations: 1.156 kB / 0.524 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.217e-05/0.3476, allocations: 32.62 kB / 0.524 GB, free: 7.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3476, allocations: 3.938 kB / 0.524 GB, free: 7.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.000171/0.3478, allocations: 75.59 kB / 0.5241 GB, free: 7.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/0.3478, allocations: 57 kB / 0.5241 GB, free: 7.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.706e-05/0.3478, allocations: 105.9 kB / 0.5242 GB, free: 7.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.3478, allocations: 26.98 kB / 0.5242 GB, free: 7.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.3479, allocations: 108.2 kB / 0.5244 GB, free: 7.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.3479, allocations: 27.28 kB / 0.5244 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.3479, allocations: 21.8 kB / 0.5244 GB, free: 7.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.348, allocations: 319.2 kB / 0.5247 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.861e-05/0.348, allocations: 13.12 kB / 0.5247 GB, free: 7.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.82e-05/0.348, allocations: 41.08 kB / 0.5248 GB, free: 7.027 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.666e-05/0.3481, allocations: 55.81 kB / 0.5248 GB, free: 6.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3481, allocations: 1.938 kB / 0.5248 GB, free: 6.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001046/0.3482, allocations: 85.64 kB / 0.5249 GB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.3482, allocations: 11.38 kB / 0.5249 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.3482, allocations: 0.9062 kB / 0.5249 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3482, allocations: 3.375 kB / 0.5249 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3483, allocations: 31.78 kB / 0.5249 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3483, allocations: 1.125 kB / 0.5249 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.474e-05/0.3484, allocations: 6.922 kB / 0.5249 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.3484, allocations: 2.031 kB / 0.5249 GB, free: 6.906 MB / 382.1 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.137e-05/0.3484, allocations: 119 kB / 0.5251 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.3484, allocations: 2.875 kB / 0.5251 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.3486, allocations: 82.88 kB / 0.5251 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3486, allocations: 4.969 kB / 0.5251 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3486, allocations: 1.438 kB / 0.5251 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3486, allocations: 0.7031 kB / 0.5251 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.3487, allocations: 151 kB / 0.5253 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.3487, allocations: 0 / 0.5253 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.34e-05/0.3488, allocations: 13.14 kB / 0.5253 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-06/0.3488, allocations: 0.8438 kB / 0.5253 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.3488, allocations: 5.188 kB / 0.5253 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.3488, allocations: 5.094 kB / 0.5253 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3488, allocations: 0 / 0.5253 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.3489, allocations: 169.5 kB / 0.5255 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.3489, allocations: 6.766 kB / 0.5255 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3489, allocations: 9.703 kB / 0.5255 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.691e-05/0.349, allocations: 5.031 kB / 0.5255 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.028e-05/0.349, allocations: 12.27 kB / 0.5255 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.349, allocations: 1.672 kB / 0.5255 GB, free: 6.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.468e-05/0.3491, allocations: 82.55 kB / 0.5256 GB, free: 6.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3491, allocations: 0 / 0.5256 GB, free: 6.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.3493, allocations: 21.84 kB / 0.5256 GB, free: 6.293 MB / 382.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 (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.0002535/0.3495, allocations: 0.6947 MB / 0.5263 GB, free: 5.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.3497, allocations: 49.22 kB / 0.5263 GB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3497, allocations: 0 / 0.5263 GB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.773e-05/0.3497, allocations: 21.91 kB / 0.5264 GB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.35, allocations: 11.84 kB / 0.5264 GB, free: 5.578 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.3505, allocations: 219 kB / 0.5266 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.554e-05/0.3505, allocations: 78 kB / 0.5267 GB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.529e-05/0.3505, allocations: 7.922 kB / 0.5267 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.3506, allocations: 20.88 kB / 0.5267 GB, free: 5.297 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3506, allocations: 1.375 kB / 0.5267 GB, free: 5.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.3784, allocations: 2.025 MB / 0.5287 GB, free: 4.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.64, allocations: 1.688 kB / 0.5287 GB, free: 4.461 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.471974967978895] Failed to read output from testmodel.py, exit status != 0: 11.74483327800408 11.765769993 11.415295078 Calling exit ...