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.0009223/0.0009223, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0009999/0.0009999, allocations: 165.2 kB / 23.23 MB, free: 1.336 MB / 18.57 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 0.9167/0.9167, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.0616/0.0616, allocations: 18.12 MB / 278.1 MB, free: 11.53 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 415.1 MB, free: 14.47 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.321e-05, allocations: 2.281 kB / 415.1 MB, free: 14.47 MB / 394.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003375/0.003398, allocations: 3.616 MB / 418.7 MB, free: 10.83 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.005138, allocations: 1.259 MB / 419.9 MB, free: 9.57 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.005376, allocations: 4 kB / 419.9 MB, free: 9.566 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.005513, allocations: 79.14 kB / 420 MB, free: 9.488 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003458/0.005858, allocations: 233.9 kB / 420.3 MB, free: 9.258 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004817/0.00634, allocations: 295.4 kB / 420.5 MB, free: 8.969 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006543/0.006994, allocations: 1.138 MB / 421.7 MB, free: 7.828 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003833/0.007378, allocations: 381.8 kB / 422.1 MB, free: 7.449 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003093/0.007687, allocations: 387.2 kB / 422.4 MB, free: 7.07 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002901/0.007977, allocations: 327.1 kB / 422.7 MB, free: 6.75 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.608e-05/0.008063, allocations: 96 kB / 422.8 MB, free: 6.656 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-05/0.008146, allocations: 92 kB / 422.9 MB, free: 6.566 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 9.99e-05/0.008246, allocations: 199.4 kB / 423.1 MB, free: 6.371 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.008479, allocations: 323.3 kB / 423.4 MB, free: 6.055 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006198/0.009098, allocations: 1.013 MB / 424.5 MB, free: 5.039 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.009101, allocations: 0 / 424.5 MB, free: 5.039 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.009102, allocations: 0 / 424.5 MB, free: 5.039 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.009113, allocations: 4 kB / 424.5 MB, free: 5.035 MB / 394.7 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.001231/0.01034, allocations: 0.915 MB / 425.4 MB, free: 4.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.01039, allocations: 12.03 kB / 425.4 MB, free: 4.078 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.0105, allocations: 127.3 kB / 425.5 MB, free: 3.945 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.697e-05/0.01059, allocations: 84.41 kB / 425.6 MB, free: 3.863 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.01078, allocations: 187.1 kB / 425.8 MB, free: 3.656 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/0.01082, allocations: 62.38 kB / 425.8 MB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.054e-05/0.0109, allocations: 80.38 kB / 425.9 MB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.01172, allocations: 0.7202 MB / 426.6 MB, free: 2.785 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.01174, allocations: 3.938 kB / 426.6 MB, free: 2.781 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.822e-05/0.01179, allocations: 35.98 kB / 426.7 MB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.0118, allocations: 20 kB / 426.7 MB, free: 2.727 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000854/0.01266, allocations: 0.6871 MB / 427.4 MB, free: 2.039 MB / 394.7 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.002426/0.01508, allocations: 1.686 MB / 429.1 MB, free: 316 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008069/0.01589, allocations: 0.6269 MB / 429.7 MB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003317/0.01622, allocations: 307.7 kB / 430 MB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.01627, allocations: 13 kB / 430 MB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.0163, allocations: 47.56 kB / 430.1 MB, free: 15.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=102): time 2.315e-06/0.0163, allocations: 0 / 430.1 MB, free: 15.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.004387/0.02069, allocations: 2.795 MB / 432.8 MB, free: 12.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.02072, allocations: 68.34 kB / 432.9 MB, free: 12.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.02087, allocations: 203.9 kB / 433.1 MB, free: 12.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.02091, allocations: 45.7 kB / 433.2 MB, free: 12.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.02101, allocations: 229.5 kB / 433.4 MB, free: 11.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.02121, allocations: 401 kB / 433.8 MB, free: 11.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.02137, allocations: 146.7 kB / 433.9 MB, free: 11.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.501e-05/0.02146, allocations: 366.7 kB / 434.3 MB, free: 10.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.0218, allocations: 297.9 kB / 434.6 MB, free: 10.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.02217, allocations: 387.1 kB / 434.9 MB, free: 10.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004943/0.02712, allocations: 2.254 MB / 437.2 MB, free: 8.035 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.02712, allocations: 4 kB / 437.2 MB, free: 8.031 MB / 410.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00128/0.0284, allocations: 1.032 MB / 438.2 MB, free: 6.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.02842, allocations: 15.88 kB / 438.3 MB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.02843, allocations: 0 / 438.3 MB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/0.02892, allocations: 215.2 kB / 438.5 MB, free: 6.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/0.03127, allocations: 0.753 MB / 439.2 MB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1666/0.1979, allocations: 13.85 MB / 453.1 MB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004341/0.1984, allocations: 25.5 kB / 453.1 MB, free: 62.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.1984, allocations: 34.3 kB / 453.1 MB, free: 62.86 MB / 410.7 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.0003246/0.1987, allocations: 222.1 kB / 453.3 MB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.1988, allocations: 53.47 kB / 453.4 MB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.2001, allocations: 1.252 MB / 454.6 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2002, allocations: 12.22 kB / 454.7 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2002, allocations: 3.062 kB / 454.7 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.2002, allocations: 9.141 kB / 454.7 MB, free: 62.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.2023, allocations: 2.219 MB / 456.9 MB, free: 60.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.2023, allocations: 9.625 kB / 456.9 MB, free: 60.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002056/0.2044, allocations: 0.7014 MB / 457.6 MB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008502/0.2052, allocations: 353.3 kB / 457.9 MB, free: 60.83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.178e-05/0.2053, allocations: 36.22 kB / 458 MB, free: 60.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004744/0.21, allocations: 14.03 MB / 472 MB, free: 47.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.21, allocations: 13.59 kB / 472 MB, free: 47.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.212, allocations: 1.807 MB / 473.8 MB, free: 46.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.754e-05/0.212, allocations: 58.23 kB / 473.9 MB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.2121, allocations: 31.67 kB / 473.9 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.2124, allocations: 27.16 kB / 473.9 MB, free: 45.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.2126, allocations: 120.6 kB / 474.1 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.2126, allocations: 35.16 kB / 474.1 MB, free: 45.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.886e-05/0.2127, allocations: 162.5 kB / 474.3 MB, free: 45.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2127, allocations: 0 / 474.3 MB, free: 45.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006639/0.2134, allocations: 230.1 kB / 474.5 MB, free: 45.81 MB / 410.7 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.002251/0.2156, allocations: 2.386 MB / 476.9 MB, free: 44.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003291/0.2189, allocations: 1.852 MB / 478.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.2189, allocations: 0 / 478.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002521/0.2214, allocations: 1.489 MB / 480.2 MB, free: 42.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.2221, allocations: 177.3 kB / 480.4 MB, free: 42.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005941/0.2281, allocations: 5.996 MB / 486.4 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.2283, allocations: 315.1 kB / 486.7 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003356/0.2287, allocations: 92.91 kB / 486.8 MB, free: 38.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000231/0.2289, allocations: 218.7 kB / 487 MB, free: 38.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/0.2289, allocations: 0 / 487 MB, free: 38.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.2629, allocations: 18.53 MB / 0.4937 GB, free: 36.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.403/8.666, allocations: 3.688 kB / 0.4937 GB, free: 36.25 MB / 410.7 MB " [Timeout remaining time 651] (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: 10.669199131429195] Failed to read output from testmodel.py, exit status != 0: 8.766997877508402 8.775059995 8.764591014 Calling exit ...