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.001324/0.001324, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001728/0.001728, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.455/1.455, allocations: 230.6 MB / 256 MB, free: 7.988 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.1069/0.1069, allocations: 24.12 MB / 336.6 MB, free: 11.45 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) 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.002333/0.002333, allocations: 63.89 kB / 474.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.4011, allocations: 59.6 MB / 0.5212 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001a): time 0.003317/0.4044, allocations: 2.243 MB / 0.5234 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003775/0.4048, allocations: 169.7 kB / 0.5235 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.4049, allocations: 3.719 kB / 0.5235 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.296e-05/0.405, allocations: 30.77 kB / 0.5236 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.4051, allocations: 60.14 kB / 0.5236 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.4053, allocations: 48.67 kB / 0.5237 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.4055, allocations: 249.7 kB / 0.5239 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.4057, allocations: 70.97 kB / 0.524 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.822e-05/0.4058, allocations: 87.91 kB / 0.5241 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.406, allocations: 110.1 kB / 0.5242 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.163e-05/0.406, allocations: 20.72 kB / 0.5242 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.001e-05/0.4061, allocations: 20.53 kB / 0.5242 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.402e-05/0.4061, allocations: 47.33 kB / 0.5243 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.731e-05/0.4062, allocations: 110.4 kB / 0.5244 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.4064, allocations: 248.5 kB / 0.5246 GB, free: 8.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.4064, allocations: 0 / 0.5246 GB, free: 8.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4065, allocations: 5.312 kB / 0.5246 GB, free: 8.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.4065, allocations: 0 / 0.5246 GB, free: 8.355 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.0005753/0.407, allocations: 420.2 kB / 0.525 GB, free: 8.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4071, allocations: 9.828 kB / 0.525 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.143e-05/0.4071, allocations: 56.3 kB / 0.5251 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.4072, allocations: 24.92 kB / 0.5251 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.681e-05/0.4073, allocations: 126.6 kB / 0.5252 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.4073, allocations: 26.53 kB / 0.5252 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.4073, allocations: 27.58 kB / 0.5253 GB, free: 7.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.4076, allocations: 198.6 kB / 0.5255 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4076, allocations: 3.938 kB / 0.5255 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.4077, allocations: 10.31 kB / 0.5255 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.4077, allocations: 6.094 kB / 0.5255 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.4079, allocations: 141.2 kB / 0.5256 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009397/0.4088, allocations: 0.9054 MB / 0.5265 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.4091, allocations: 154.5 kB / 0.5266 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.4094, allocations: 129.6 kB / 0.5268 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.4094, allocations: 2.906 kB / 0.5268 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.4094, allocations: 44.78 kB / 0.5268 GB, free: 6.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/0.4094, allocations: 0 / 0.5268 GB, free: 6.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001997/0.4114, allocations: 0.5396 MB / 0.5273 GB, free: 6.508 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.227e-05/0.4114, allocations: 54.78 kB / 0.5274 GB, free: 6.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.122e-05/0.4115, allocations: 136.8 kB / 0.5275 GB, free: 6.328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.4115, allocations: 30.7 kB / 0.5275 GB, free: 6.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.4116, allocations: 146.4 kB / 0.5277 GB, free: 6.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.4116, allocations: 78.02 kB / 0.5278 GB, free: 6.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.4117, allocations: 38.08 kB / 0.5278 GB, free: 6.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.228e-05/0.4117, allocations: 321.9 kB / 0.5281 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.601e-05/0.4118, allocations: 45.73 kB / 0.5281 GB, free: 5.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.61e-05/0.4119, allocations: 83.14 kB / 0.5282 GB, free: 5.688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.4121, allocations: 132.8 kB / 0.5284 GB, free: 5.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4121, allocations: 5.125 kB / 0.5284 GB, free: 5.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007038/0.4128, allocations: 323.4 kB / 0.5287 GB, free: 5.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4128, allocations: 9.516 kB / 0.5287 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4128, allocations: 1.438 kB / 0.5287 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006734/0.4135, allocations: 185.5 kB / 0.5289 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.4136, allocations: 18.8 kB / 0.5289 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003764/0.4174, allocations: 3.619 MB / 0.5324 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.445e-05/0.4174, allocations: 20.91 kB / 0.5324 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.4175, allocations: 5.094 kB / 0.5324 GB, free: 2.238 MB / 382.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.0001133/0.4176, allocations: 136.8 kB / 0.5326 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.4176, allocations: 9.266 kB / 0.5326 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008155/0.4184, allocations: 316.2 kB / 0.5329 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4184, allocations: 6.312 kB / 0.5329 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.4184, allocations: 0 / 0.5329 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4184, allocations: 5.672 kB / 0.5329 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.4187, allocations: 240.5 kB / 0.5331 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4187, allocations: 1.344 kB / 0.5331 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.657e-05/0.4188, allocations: 16.23 kB / 0.5331 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006177/0.4194, allocations: 182.9 kB / 0.5333 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.4194, allocations: 5.844 kB / 0.5333 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004141/0.4236, allocations: 3.607 MB / 0.5368 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4236, allocations: 4.062 kB / 0.5368 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008456/0.4244, allocations: 399.4 kB / 0.5372 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.4244, allocations: 21.5 kB / 0.5372 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.4245, allocations: 1.984 kB / 0.5372 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/0.4245, allocations: 9.062 kB / 0.5372 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.4246, allocations: 18.14 kB / 0.5373 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.4246, allocations: 4.062 kB / 0.5373 GB, free: 14.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.666e-05/0.4247, allocations: 104.3 kB / 0.5374 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4247, allocations: 0 / 0.5374 GB, free: 14.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006107/0.4253, allocations: 81.53 kB / 0.5374 GB, free: 14.17 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.001171/0.4265, allocations: 0.9202 MB / 0.5383 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007659/0.4272, allocations: 405.2 kB / 0.5387 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4272, allocations: 0 / 0.5387 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005263/0.4278, allocations: 356 kB / 0.5391 GB, free: 12.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.4281, allocations: 24.42 kB / 0.5391 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.4296, allocations: 0.52 MB / 0.5396 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.43, allocations: 0.7368 MB / 0.5403 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.005e-05/0.4301, allocations: 7.625 kB / 0.5403 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.4301, allocations: 47.97 kB / 0.5404 GB, free: 11.8 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4301, allocations: 3.938 kB / 0.5404 GB, free: 11.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.4761, allocations: 4.926 MB / 0.5452 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.1, allocations: 2.438 kB / 0.5452 GB, free: 10.64 MB / 398.1 MB " [Timeout remaining time 647] (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: 16.1251983599941] Failed to read output from testmodel.py, exit status != 0: 13.218669863999821 13.234492017 12.82472681 Calling exit ...