Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 108.5 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09653/0.09653, allocations: 22.69 MB / 325.4 MB, free: 3.562 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.89 kB / 457.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1304, allocations: 58.02 MB / 0.5031 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005918/0.1363, allocations: 4.259 MB / 0.5073 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002905/0.1392, allocations: 1.341 MB / 0.5086 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.1394, allocations: 4 kB / 0.5086 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1396, allocations: 87.06 kB / 0.5087 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005002/0.1401, allocations: 241.9 kB / 0.5089 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.1408, allocations: 299.5 kB / 0.5092 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.142, allocations: 1.169 MB / 0.5103 GB, free: 252 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2329/0.3749, allocations: 0.4976 MB / 0.5108 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009843/0.3758, allocations: 471.5 kB / 0.5113 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006399/0.3765, allocations: 0.521 MB / 0.5118 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.3767, allocations: 111 kB / 0.5119 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.3769, allocations: 113.1 kB / 0.512 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.377, allocations: 238.9 kB / 0.5122 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.3774, allocations: 478.7 kB / 0.5127 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009118/0.3784, allocations: 1.122 MB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3784, allocations: 5.469 kB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3784, allocations: 1.219 kB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.3784, allocations: 0.75 kB / 0.5138 GB, free: 10.14 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002169/0.3805, allocations: 1.061 MB / 0.5148 GB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3806, allocations: 9.375 kB / 0.5148 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.3807, allocations: 141.7 kB / 0.515 GB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3809, allocations: 86.61 kB / 0.515 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.3811, allocations: 256.4 kB / 0.5153 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.3811, allocations: 64.81 kB / 0.5153 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3813, allocations: 90.91 kB / 0.5154 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.3827, allocations: 0.82 MB / 0.5162 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.3827, allocations: 0.5156 kB / 0.5162 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.425e-05/0.3828, allocations: 34.12 kB / 0.5163 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.3828, allocations: 21.56 kB / 0.5163 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.3842, allocations: 0.8476 MB / 0.5171 GB, free: 9.184 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: V.T(start = V.Tstart = 291.15, confidence number = 2) * Candidate: V.air.T(start = 288.15, confidence number = 8) * Candidate: V.heatPort.T(start = 288.15, confidence number = 8) => Select value from V.T(start = V.Tstart = 291.15) for variable: V.T Warning: Alias set with conflicting start values * Candidate: U1.T(start = U1.Tstart = 293.15, confidence number = 2) * Candidate: U1.air.T(start = 288.15, confidence number = 8) => Select value from U1.T(start = U1.Tstart = 293.15) for variable: U1.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004098/0.3883, allocations: 2.6 MB / 0.5197 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.3903, allocations: 0.9492 MB / 0.5206 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.3909, allocations: 382.8 kB / 0.5209 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.215e-05/0.3909, allocations: 16.92 kB / 0.521 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.391, allocations: 54.66 kB / 0.521 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006331/0.3916, allocations: 167.6 kB / 0.5212 GB, free: 7.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 2.675e-06/0.3916, allocations: 1.875 kB / 0.5212 GB, free: 7.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.0076/0.3992, allocations: 3.541 MB / 0.5246 GB, free: 5.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.3992, allocations: 66.19 kB / 0.5247 GB, free: 5.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.3994, allocations: 221.4 kB / 0.5249 GB, free: 5.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.3995, allocations: 45.48 kB / 0.5249 GB, free: 5.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3996, allocations: 242 kB / 0.5252 GB, free: 5.188 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.3998, allocations: 444.2 kB / 0.5256 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.4001, allocations: 174.4 kB / 0.5258 GB, free: 4.758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.4002, allocations: 363.3 kB / 0.5261 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.4008, allocations: 362.7 kB / 0.5265 GB, free: 4.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006287/0.4014, allocations: 454.7 kB / 0.5269 GB, free: 4.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01826/0.4196, allocations: 3.479 MB / 0.5303 GB, free: 3.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4196, allocations: 0 / 0.5303 GB, free: 3.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002695/0.4223, allocations: 1.208 MB / 0.5315 GB, free: 2.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4224, allocations: 5.312 kB / 0.5315 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4224, allocations: 1.844 kB / 0.5315 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.4233, allocations: 213.5 kB / 0.5317 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006014/0.4294, allocations: 0.8105 MB / 0.5325 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01342/0.4428, allocations: 14.96 MB / 0.5471 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009364/0.4437, allocations: 31.27 kB / 0.5471 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.873e-05/0.4438, allocations: 36.83 kB / 0.5471 GB, free: 3.586 MB / 398.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"controlled T\" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 0.0 start = V.Tstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (AHUon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,5,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005896/0.4444, allocations: 241.3 kB / 0.5474 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.4445, allocations: 54.33 kB / 0.5474 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/0.4478, allocations: 1.481 MB / 0.5489 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.4479, allocations: 12.91 kB / 0.5489 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4479, allocations: 1.219 kB / 0.5489 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.4479, allocations: 9.156 kB / 0.5489 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/0.4527, allocations: 2.591 MB / 0.5514 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.4527, allocations: 6.062 kB / 0.5514 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00535/0.4581, allocations: 0.7579 MB / 0.5522 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001951/0.46, allocations: 368.7 kB / 0.5525 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.4601, allocations: 34.17 kB / 0.5526 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/0.4741, allocations: 15.19 MB / 0.5674 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.4741, allocations: 10.56 kB / 0.5674 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.4781, allocations: 2.056 MB / 0.5694 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.4783, allocations: 141.4 kB / 0.5695 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.4784, allocations: 33.38 kB / 0.5696 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006815/0.4791, allocations: 33.89 kB / 0.5696 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.4794, allocations: 119.2 kB / 0.5697 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.4795, allocations: 46.86 kB / 0.5698 GB, free: 15.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.4797, allocations: 169.7 kB / 0.5699 GB, free: 15.24 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4797, allocations: 4 kB / 0.5699 GB, free: 15.24 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00115/0.4808, allocations: 259.5 kB / 0.5702 GB, free: 15.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 5 (U1.T,U1.phi,V.Ma,V.p,V.T) * 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 (119): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004245/0.4851, allocations: 2.641 MB / 0.5728 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007612/0.4927, allocations: 1.993 MB / 0.5747 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/0.4927, allocations: 4 kB / 0.5747 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006213/0.4989, allocations: 1.582 MB / 0.5763 GB, free: 10.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5001, allocations: 197.5 kB / 0.5764 GB, free: 9.852 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.5114, allocations: 6.629 MB / 0.5829 GB, free: 2.953 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/0.512, allocations: 0.9377 MB / 0.5838 GB, free: 1.988 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006284/0.5127, allocations: 113.5 kB / 0.5839 GB, free: 1.875 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000458/0.5131, allocations: 263.3 kB / 0.5842 GB, free: 1.617 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5131, allocations: 0 / 0.5842 GB, free: 1.617 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07657/0.5897, allocations: 19.63 MB / 0.6034 GB, free: 14.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.39, allocations: 8.062 kB / 0.6034 GB, free: 14.22 MB / 462.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002_fmu --startTime=0 --stopTime=8000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.327766489703208] Failed to read output from testmodel.py, exit status != 0: 13.487896993290633 13.501170006 13.11998988 Calling exit ...