Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_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.001317/0.001317, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.00203/0.00203, allocations: 218.8 kB / 23.04 MB, free: 5.074 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.1031/0.1031, allocations: 22.94 MB / 336.2 MB, free: 12.59 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.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="cs",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.002059/0.002059, allocations: 63.89 kB / 472.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3352, allocations: 59.29 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004328/0.3395, allocations: 4.064 MB / 0.5231 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.3418, allocations: 1.317 MB / 0.5244 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.342, allocations: 3.75 kB / 0.5244 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.3422, allocations: 79.23 kB / 0.5244 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004323/0.3426, allocations: 211.9 kB / 0.5246 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.3432, allocations: 308.1 kB / 0.5249 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007997/0.344, allocations: 1.087 MB / 0.526 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.3444, allocations: 388.4 kB / 0.5264 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004381/0.3448, allocations: 410.6 kB / 0.5268 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005266/0.3454, allocations: 420.2 kB / 0.5272 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.3455, allocations: 92.91 kB / 0.5272 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.3457, allocations: 94.78 kB / 0.5273 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3458, allocations: 190.9 kB / 0.5275 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003954/0.3462, allocations: 427.1 kB / 0.5279 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009769/0.3472, allocations: 0.9716 MB / 0.5289 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3472, allocations: 1 kB / 0.5289 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3472, allocations: 0 / 0.5289 GB, free: 4.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.3472, allocations: 0 / 0.5289 GB, free: 4.582 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002008/0.3492, allocations: 0.92 MB / 0.5298 GB, free: 4.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.409e-05/0.3493, allocations: 10 kB / 0.5298 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.675e-05/0.3493, allocations: 25.78 kB / 0.5298 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.3495, allocations: 129.7 kB / 0.5299 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.3496, allocations: 81.44 kB / 0.53 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.3498, allocations: 187.6 kB / 0.5302 GB, free: 3.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.154e-05/0.3498, allocations: 64.06 kB / 0.5303 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.3499, allocations: 85.44 kB / 0.5303 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.3511, allocations: 0.6888 MB / 0.531 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.3511, allocations: 0 / 0.531 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.564e-05/0.3512, allocations: 31.64 kB / 0.531 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3512, allocations: 23.69 kB / 0.5311 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.3524, allocations: 0.6978 MB / 0.5317 GB, free: 3.074 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: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.3557, allocations: 2.258 MB / 0.5339 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.3568, allocations: 0.6272 MB / 0.5346 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004618/0.3572, allocations: 301.2 kB / 0.5348 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.677e-05/0.3573, allocations: 16.89 kB / 0.5349 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3573, allocations: 43.81 kB / 0.5349 GB, free: 1.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.234e-06/0.3573, allocations: 0 / 0.5349 GB, free: 1.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007051/0.3644, allocations: 2.809 MB / 0.5376 GB, free: 15.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.3644, allocations: 71.86 kB / 0.5377 GB, free: 15.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.3647, allocations: 203.3 kB / 0.5379 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-05/0.3648, allocations: 44.45 kB / 0.538 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.3649, allocations: 234.1 kB / 0.5382 GB, free: 15.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004033/0.3653, allocations: 405.7 kB / 0.5386 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.3656, allocations: 153.1 kB / 0.5387 GB, free: 15.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.3658, allocations: 356.9 kB / 0.539 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006137/0.3664, allocations: 299.2 kB / 0.5393 GB, free: 14.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007093/0.3671, allocations: 384.4 kB / 0.5397 GB, free: 14.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/0.3787, allocations: 2.249 MB / 0.5419 GB, free: 13.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3787, allocations: 0.5469 kB / 0.5419 GB, free: 13.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00254/0.3813, allocations: 1.042 MB / 0.5429 GB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3813, allocations: 9.656 kB / 0.5429 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3813, allocations: 2.844 kB / 0.5429 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.3824, allocations: 212.2 kB / 0.5431 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005652/0.388, allocations: 0.7608 MB / 0.5439 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/0.4014, allocations: 13.93 MB / 0.5575 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.4022, allocations: 20.97 kB / 0.5575 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.021e-05/0.4023, allocations: 33.8 kB / 0.5575 GB, free: 14.86 MB / 414.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 0.0 start = AHU.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"controlled T\" type: Real AHU.phi:VARIABLE(start = AHU.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 (112): * Single equations (assignments): 102 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005312/0.4028, allocations: 226.5 kB / 0.5577 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.403, allocations: 51.02 kB / 0.5578 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.4058, allocations: 1.244 MB / 0.559 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.4058, allocations: 13.31 kB / 0.559 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4058, allocations: 3.938 kB / 0.559 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.717e-05/0.4059, allocations: 11.91 kB / 0.559 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.4103, allocations: 2.338 MB / 0.5613 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.4103, allocations: 7.656 kB / 0.5613 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00504/0.4154, allocations: 0.704 MB / 0.562 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/0.4174, allocations: 359.7 kB / 0.5624 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.4175, allocations: 25.66 kB / 0.5624 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01431/0.4318, allocations: 14.09 MB / 0.5761 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/0.4319, allocations: 12.22 kB / 0.5762 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004403/0.4363, allocations: 1.82 MB / 0.5779 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.4365, allocations: 58.09 kB / 0.578 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.4366, allocations: 29.59 kB / 0.578 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006754/0.4373, allocations: 29.73 kB / 0.578 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.4376, allocations: 129.6 kB / 0.5782 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.656e-05/0.4377, allocations: 36.88 kB / 0.5782 GB, free: 12.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.4378, allocations: 157.3 kB / 0.5784 GB, free: 12.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4378, allocations: 1.375 kB / 0.5784 GB, free: 12.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001116/0.4389, allocations: 235.6 kB / 0.5786 GB, free: 12.05 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 5 (AHU.T,AHU.phi,V.Mv,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 (102): * Single equations (assignments): 92 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00397/0.4429, allocations: 2.389 MB / 0.5809 GB, free: 10.28 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007396/0.4503, allocations: 1.851 MB / 0.5827 GB, free: 8.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/0.4503, allocations: 4 kB / 0.5827 GB, free: 8.977 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006241/0.4566, allocations: 1.494 MB / 0.5842 GB, free: 7.438 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.4582, allocations: 174.6 kB / 0.5843 GB, free: 7.266 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.4697, allocations: 6.041 MB / 0.5902 GB, free: 0.918 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/0.4704, allocations: 0.9091 MB / 0.5911 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005772/0.4709, allocations: 96.94 kB / 0.5912 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003887/0.4713, allocations: 215.4 kB / 0.5914 GB, free: 15.67 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4713, allocations: 0 / 0.5914 GB, free: 15.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05763/0.529, allocations: 17.88 MB / 0.6089 GB, free: 14.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.17, allocations: 22.16 kB / 0.6089 GB, free: 13.99 MB / 462.1 MB " [Timeout remaining time 645] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --stepSize=0.8 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.44403792900266] Failed to read output from testmodel.py, exit status != 0: 15.363797496946063 15.391805919 15.039422748 Calling exit ...