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.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.0008771/0.0008771, allocations: 72.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.000848/0.000848, allocations: 169.2 kB / 23.23 MB, free: 1.332 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.8932/0.8932, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.06184/0.06184, allocations: 18.13 MB / 278.1 MB, free: 11.54 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_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 2.294e-06/2.294e-06, allocations: 0 / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.98e-05/2.209e-05, allocations: 8.469 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003949/0.003971, allocations: 3.799 MB / 418.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.006064, allocations: 1.298 MB / 420.2 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.006395, allocations: 8.625 kB / 420.2 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.006552, allocations: 85.08 kB / 420.3 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004597/0.007012, allocations: 250 kB / 420.5 MB, free: 9.008 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006598/0.007672, allocations: 314.1 kB / 420.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009625/0.008634, allocations: 1.207 MB / 422 MB, free: 8.18 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006792/0.009313, allocations: 0.4915 MB / 422.5 MB, free: 7.957 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006004/0.009914, allocations: 462.8 kB / 423 MB, free: 7.766 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000603/0.01052, allocations: 423.9 kB / 423.4 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.0107, allocations: 109.9 kB / 423.5 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.01085, allocations: 111.8 kB / 423.6 MB, free: 7.637 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.011, allocations: 239.9 kB / 423.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004339/0.01143, allocations: 361.9 kB / 424.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.01269, allocations: 1.2 MB / 425.4 MB, free: 6.844 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.0127, allocations: 8.688 kB / 425.4 MB, free: 6.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0127, allocations: 4 kB / 425.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.692e-05/0.01274, allocations: 0.9688 kB / 425.4 MB, free: 6.832 MB / 330.7 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.001765/0.0145, allocations: 0.9753 MB / 426.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.01456, allocations: 10.05 kB / 426.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.0147, allocations: 138.3 kB / 426.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.01484, allocations: 83.23 kB / 426.6 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.01506, allocations: 206.2 kB / 426.8 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.175e-05/0.01511, allocations: 66.19 kB / 426.9 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.01526, allocations: 85.25 kB / 426.9 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.01642, allocations: 0.8535 MB / 427.8 MB, free: 5.469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.01644, allocations: 5.094 kB / 427.8 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/0.0165, allocations: 38.14 kB / 427.8 MB, free: 5.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.01652, allocations: 21.03 kB / 427.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.01768, allocations: 0.8326 MB / 428.7 MB, free: 5.145 MB / 330.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: 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.003303/0.02099, allocations: 1.948 MB / 430.6 MB, free: 4.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.02235, allocations: 0.9217 MB / 431.6 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004522/0.02281, allocations: 385.9 kB / 431.9 MB, free: 3.598 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.285e-05/0.02287, allocations: 18.94 kB / 432 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.02289, allocations: 45.97 kB / 432 MB, free: 3.547 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004416/0.02333, allocations: 169.7 kB / 432.2 MB, free: 3.477 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 3.627e-06/0.02334, allocations: 0 / 432.2 MB, free: 3.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=124): time 0.005424/0.02876, allocations: 3.236 MB / 435.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.0288, allocations: 64.38 kB / 435.5 MB, free: 1.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.02898, allocations: 213.3 kB / 435.7 MB, free: 1.688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.514e-05/0.02903, allocations: 49.98 kB / 435.7 MB, free: 1.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.02911, allocations: 245.2 kB / 436 MB, free: 1.414 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.02928, allocations: 440 kB / 436.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.02949, allocations: 178.5 kB / 436.6 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.02954, allocations: 362.8 kB / 436.9 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.03, allocations: 356.5 kB / 437.3 MB, free: 396 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.03059, allocations: 456.1 kB / 437.7 MB, free: 128 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/0.04228, allocations: 3.454 MB / 441.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.04229, allocations: 1.219 kB / 441.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.001729/0.04402, allocations: 1.208 MB / 442.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.04404, allocations: 4 kB / 442.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.04405, allocations: 4 kB / 442.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005603/0.04461, allocations: 215.2 kB / 442.6 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002691/0.0473, allocations: 0.8076 MB / 443.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007533/0.05483, allocations: 13.87 MB / 457.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.05552, allocations: 28 kB / 457.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/0.05557, allocations: 47.97 kB / 457.3 MB, free: 13.04 MB / 362.7 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.0004733/0.05605, allocations: 236.9 kB / 457.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/0.05614, allocations: 59.61 kB / 457.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.05838, allocations: 1.473 MB / 459.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.05839, allocations: 12 kB / 459.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.0584, allocations: 4 kB / 459.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.05842, allocations: 11.91 kB / 459.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002941/0.06136, allocations: 2.402 MB / 461.5 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.06137, allocations: 8 kB / 461.5 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/0.06376, allocations: 0.7615 MB / 462.3 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009939/0.06476, allocations: 363 kB / 462.7 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.06486, allocations: 31.98 kB / 462.7 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00776/0.07262, allocations: 14.1 MB / 476.8 MB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.07263, allocations: 11.94 kB / 476.8 MB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.07632, allocations: 2.048 MB / 478.9 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.07654, allocations: 59.66 kB / 478.9 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.07665, allocations: 39.98 kB / 479 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005606/0.07721, allocations: 31.94 kB / 479 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/0.07751, allocations: 128.6 kB / 479.1 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.703e-05/0.07759, allocations: 44 kB / 479.2 MB, free: 5.766 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001694/0.07776, allocations: 169 kB / 479.3 MB, free: 5.602 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07776, allocations: 0 / 479.3 MB, free: 5.602 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001236/0.079, allocations: 260 kB / 479.6 MB, free: 5.348 MB / 378.7 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.003788/0.08278, allocations: 2.624 MB / 482.2 MB, free: 2.609 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005576/0.08836, allocations: 1.987 MB / 484.2 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.08837, allocations: 0 / 484.2 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004491/0.09286, allocations: 1.587 MB / 485.8 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009484/0.09381, allocations: 201.9 kB / 486 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007826/0.1016, allocations: 6.591 MB / 492.6 MB, free: 7.844 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.1019, allocations: 341.7 kB / 492.9 MB, free: 7.484 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004843/0.1024, allocations: 113.5 kB / 493 MB, free: 7.371 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003157/0.1027, allocations: 260.4 kB / 493.3 MB, free: 7.117 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/0.1027, allocations: 0 / 493.3 MB, free: 7.117 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.1427, allocations: 21.21 MB / 0.5024 GB, free: 2.223 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.736/8.878, allocations: 0 / 0.5024 GB, free: 2.223 MB / 410.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002_res.csv --start-time 0 --stop-time 8000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.8 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 os._exit(0), Time elapsed: 10.922458315268159] Failed to read output from testmodel.py, exit status != 0: 8.982988426461816 8.994917551 8.979518521 Calling exit ...