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.001323/0.001323, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.00157/0.00157, allocations: 206 kB / 23.01 MB, free: 4.621 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.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.1085/0.1085, allocations: 24.04 MB / 337.2 MB, free: 11.34 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_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.003155/0.003155, allocations: 67.89 kB / 474.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3274, allocations: 59.58 MB / 0.5217 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001a): time 0.003015/0.3304, allocations: 2.101 MB / 0.5237 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003337/0.3307, allocations: 186.8 kB / 0.5239 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.614e-05/0.3308, allocations: 2.156 kB / 0.5239 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.215e-05/0.3308, allocations: 36.19 kB / 0.5239 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.331, allocations: 58.56 kB / 0.524 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.3311, allocations: 50.28 kB / 0.5241 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.3314, allocations: 241.5 kB / 0.5243 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.3316, allocations: 66.2 kB / 0.5243 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3317, allocations: 91.47 kB / 0.5244 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.3319, allocations: 85.78 kB / 0.5245 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.412e-05/0.3319, allocations: 22.09 kB / 0.5245 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.601e-05/0.332, allocations: 24.44 kB / 0.5246 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.332, allocations: 46.36 kB / 0.5246 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.3321, allocations: 94.69 kB / 0.5247 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3324, allocations: 249.9 kB / 0.5249 GB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3324, allocations: 0 / 0.5249 GB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3324, allocations: 0 / 0.5249 GB, free: 8.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3324, allocations: 0 / 0.5249 GB, free: 8.453 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.0005322/0.3329, allocations: 418.5 kB / 0.5253 GB, free: 8.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.333, allocations: 10.48 kB / 0.5253 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.205e-05/0.333, allocations: 63.92 kB / 0.5254 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.3331, allocations: 25.33 kB / 0.5254 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.772e-05/0.3331, allocations: 126.7 kB / 0.5255 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.3332, allocations: 18.62 kB / 0.5256 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.3332, allocations: 27.38 kB / 0.5256 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.3335, allocations: 197 kB / 0.5258 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3335, allocations: 11.88 kB / 0.5258 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.3335, allocations: 10.09 kB / 0.5258 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3336, allocations: 5.469 kB / 0.5258 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.3338, allocations: 142.9 kB / 0.5259 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008522/0.3346, allocations: 0.562 MB / 0.5265 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.3349, allocations: 164 kB / 0.5266 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.3352, allocations: 126 kB / 0.5268 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.3353, allocations: 2.984 kB / 0.5268 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.3353, allocations: 40.27 kB / 0.5268 GB, free: 7.145 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.3353, allocations: 1.031 kB / 0.5268 GB, free: 7.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001992/0.3373, allocations: 0.5325 MB / 0.5273 GB, free: 6.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.448e-05/0.3373, allocations: 53.59 kB / 0.5274 GB, free: 6.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3374, allocations: 135.8 kB / 0.5275 GB, free: 6.816 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.3374, allocations: 30.89 kB / 0.5275 GB, free: 6.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.971e-05/0.3375, allocations: 151.3 kB / 0.5277 GB, free: 6.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3375, allocations: 77.48 kB / 0.5278 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-05/0.3376, allocations: 47.14 kB / 0.5278 GB, free: 6.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.768e-05/0.3376, allocations: 320.7 kB / 0.5281 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.697e-05/0.3377, allocations: 45.53 kB / 0.5282 GB, free: 6.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.895e-05/0.3378, allocations: 80.98 kB / 0.5282 GB, free: 6.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.338, allocations: 138.1 kB / 0.5284 GB, free: 6.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.338, allocations: 0.9688 kB / 0.5284 GB, free: 6.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006757/0.3386, allocations: 329.4 kB / 0.5287 GB, free: 5.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3387, allocations: 8.281 kB / 0.5287 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3387, allocations: 6.422 kB / 0.5287 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006378/0.3393, allocations: 175.9 kB / 0.5289 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.3394, allocations: 24.12 kB / 0.5289 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.343, allocations: 3.593 MB / 0.5324 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.233e-05/0.3431, allocations: 16.3 kB / 0.5324 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3431, allocations: 6.562 kB / 0.5324 GB, free: 2.734 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 9.588e-05/0.3432, allocations: 135.2 kB / 0.5325 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.3433, allocations: 13.78 kB / 0.5326 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007209/0.344, allocations: 312.6 kB / 0.5329 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.344, allocations: 2.891 kB / 0.5329 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.344, allocations: 1.062 kB / 0.5329 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.344, allocations: 5.438 kB / 0.5329 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.3442, allocations: 229 kB / 0.5331 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3442, allocations: 0.9375 kB / 0.5331 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.232e-05/0.3443, allocations: 13.38 kB / 0.5331 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005742/0.3449, allocations: 181.4 kB / 0.5333 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3449, allocations: 8.688 kB / 0.5333 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003633/0.3485, allocations: 3.582 MB / 0.5368 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3485, allocations: 0 / 0.5368 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008726/0.3494, allocations: 397.2 kB / 0.5372 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.529e-05/0.3494, allocations: 11.88 kB / 0.5372 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.3494, allocations: 6.406 kB / 0.5372 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.187e-05/0.3495, allocations: 0.6094 kB / 0.5372 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.3496, allocations: 23.62 kB / 0.5372 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.3496, allocations: 3.594 kB / 0.5372 GB, free: 14.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.45e-05/0.3496, allocations: 103.2 kB / 0.5373 GB, free: 14.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3496, allocations: 0 / 0.5373 GB, free: 14.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005518/0.3502, allocations: 82.09 kB / 0.5374 GB, free: 14.7 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.001108/0.3513, allocations: 0.9256 MB / 0.5383 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007242/0.352, allocations: 412.2 kB / 0.5387 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.352, allocations: 0 / 0.5387 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.3525, allocations: 355.6 kB / 0.539 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.3528, allocations: 15.16 kB / 0.539 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.3543, allocations: 0.5372 MB / 0.5395 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.3544, allocations: 132.2 kB / 0.5397 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.455e-05/0.3545, allocations: 3.875 kB / 0.5397 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.757e-05/0.3546, allocations: 46.72 kB / 0.5397 GB, free: 12.94 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3546, allocations: 0 / 0.5397 GB, free: 12.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03862/0.3932, allocations: 4.92 MB / 0.5445 GB, free: 11.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.29, allocations: 10.36 kB / 0.5445 GB, free: 11.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001a_fmu --startTime=0 --stopTime=10000 --stepSize=1 --timeout=50 --tolerance=1e-06 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.1391709940508] Failed to read output from testmodel.py, exit status != 0: 13.411892732605338 13.425934227 13.090258435 Calling exit ...