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.001417/0.001417, 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.001587/0.001587, allocations: 206.8 kB / 23.01 MB, free: 4.625 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1403/0.1403, allocations: 24.03 MB / 337.2 MB, free: 11.35 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="me",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="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.002085/0.002085, allocations: 63.91 kB / 473.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3557, allocations: 59.58 MB / 0.5209 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005326/0.361, allocations: 3.612 MB / 0.5244 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003091/0.3641, allocations: 1.254 MB / 0.5257 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003711/0.3644, allocations: 4.094 kB / 0.5257 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.3647, allocations: 78.75 kB / 0.5257 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000638/0.3653, allocations: 225.5 kB / 0.526 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008497/0.3662, allocations: 297.2 kB / 0.5262 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.3675, allocations: 1.093 MB / 0.5273 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007986/0.3683, allocations: 378.6 kB / 0.5277 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008083/0.3691, allocations: 417.8 kB / 0.5281 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007195/0.3698, allocations: 371.7 kB / 0.5284 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.37, allocations: 94.47 kB / 0.5285 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002513/0.3703, allocations: 97.59 kB / 0.5286 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.3705, allocations: 197.2 kB / 0.5288 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004681/0.3709, allocations: 363.4 kB / 0.5291 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.3723, allocations: 0.9701 MB / 0.5301 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3723, allocations: 1.281 kB / 0.5301 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3723, allocations: 0 / 0.5301 GB, free: 4.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.3723, allocations: 0 / 0.5301 GB, free: 4.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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002799/0.3751, allocations: 0.9243 MB / 0.531 GB, free: 3.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.232e-05/0.3752, allocations: 10.31 kB / 0.531 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002311/0.3754, allocations: 133.5 kB / 0.5311 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.3756, allocations: 77.09 kB / 0.5312 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.3759, allocations: 188.9 kB / 0.5314 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.376, allocations: 64.48 kB / 0.5314 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.3763, allocations: 80.94 kB / 0.5315 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.3783, allocations: 0.7151 MB / 0.5322 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.17e-05/0.3784, allocations: 0 / 0.5322 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.3785, allocations: 36 kB / 0.5323 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.736e-05/0.3785, allocations: 19.39 kB / 0.5323 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.3806, allocations: 0.6829 MB / 0.5329 GB, free: 2.922 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.003553/0.3842, allocations: 1.691 MB / 0.5346 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.3853, allocations: 0.6188 MB / 0.5352 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004815/0.3858, allocations: 301.4 kB / 0.5355 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.088e-05/0.3858, allocations: 12.33 kB / 0.5355 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.3858, allocations: 48.67 kB / 0.5355 GB, free: 1.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.236e-06/0.3858, allocations: 5.156 kB / 0.5355 GB, free: 1.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007451/0.3933, allocations: 2.806 MB / 0.5383 GB, free: 296 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.3933, allocations: 67.94 kB / 0.5384 GB, free: 224 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.3936, allocations: 215.9 kB / 0.5386 GB, free: 68 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.3936, allocations: 41.33 kB / 0.5386 GB, free: 24 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.3939, allocations: 228.7 kB / 0.5388 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/0.3942, allocations: 406 kB / 0.5392 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000267/0.3945, allocations: 150.6 kB / 0.5393 GB, free: 15.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.3947, allocations: 361.2 kB / 0.5397 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005744/0.3952, allocations: 295.2 kB / 0.54 GB, free: 14.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006499/0.3959, allocations: 384.6 kB / 0.5403 GB, free: 14.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/0.4071, allocations: 2.258 MB / 0.5425 GB, free: 14.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.4071, allocations: 0 / 0.5425 GB, free: 14.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002533/0.4097, allocations: 1.043 MB / 0.5436 GB, free: 13.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.4097, allocations: 8.344 kB / 0.5436 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.4097, allocations: 2.141 kB / 0.5436 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.4108, allocations: 213.9 kB / 0.5438 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005773/0.4165, allocations: 0.7499 MB / 0.5445 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.43, allocations: 13.88 MB / 0.5581 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000881/0.4309, allocations: 29.33 kB / 0.5581 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.4309, allocations: 29.44 kB / 0.5581 GB, free: 15.27 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.0005065/0.4315, allocations: 232.8 kB / 0.5583 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.4316, allocations: 51.58 kB / 0.5584 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003033/0.4346, allocations: 1.242 MB / 0.5596 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.4346, allocations: 11.38 kB / 0.5596 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.4346, allocations: 1.375 kB / 0.5596 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.4347, allocations: 9.062 kB / 0.5596 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004867/0.4395, allocations: 2.227 MB / 0.5618 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.4395, allocations: 7.281 kB / 0.5618 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005199/0.4447, allocations: 0.692 MB / 0.5625 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.4468, allocations: 364.3 kB / 0.5628 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001754/0.4469, allocations: 30.48 kB / 0.5629 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.461, allocations: 14.04 MB / 0.5766 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/0.461, allocations: 11.03 kB / 0.5766 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/0.465, allocations: 1.826 MB / 0.5784 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.4652, allocations: 57.56 kB / 0.5784 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.4653, allocations: 28.62 kB / 0.5784 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.466, allocations: 31.33 kB / 0.5785 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004131/0.4664, allocations: 125 kB / 0.5786 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.054e-05/0.4665, allocations: 36.09 kB / 0.5786 GB, free: 12.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.4667, allocations: 158 kB / 0.5788 GB, free: 12.72 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4667, allocations: 1.188 kB / 0.5788 GB, free: 12.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001209/0.4679, allocations: 231.8 kB / 0.579 GB, free: 12.69 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.004024/0.4719, allocations: 2.398 MB / 0.5813 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007218/0.4791, allocations: 1.842 MB / 0.5831 GB, free: 8.426 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.4791, allocations: 0 / 0.5831 GB, free: 8.426 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006231/0.4854, allocations: 1.497 MB / 0.5846 GB, free: 6.883 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.4866, allocations: 177 kB / 0.5848 GB, free: 6.707 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.4979, allocations: 6.053 MB / 0.5907 GB, free: 356 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.4982, allocations: 315.3 kB / 0.591 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006004/0.4988, allocations: 93.02 kB / 0.5911 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.4992, allocations: 215.4 kB / 0.5913 GB, free: 15.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.884e-06/0.4992, allocations: 0 / 0.5913 GB, free: 15.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0804/0.5796, allocations: 18.4 MB / 0.6093 GB, free: 13.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.32, allocations: 11.84 kB / 0.6093 GB, free: 13.59 MB / 462.1 MB " [Timeout remaining time 646] (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: 17.56826630467549] Failed to read output from testmodel.py, exit status != 0: 14.452506696339697 14.480051529 14.103327311 Calling exit ...