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.001345/0.001345, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002028/0.002028, allocations: 216.5 kB / 22.26 MB, free: 5.082 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 8.008 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.1072/0.1072, allocations: 24.12 MB / 336.6 MB, free: 11.44 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_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: 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.002545/0.002545, allocations: 63.89 kB / 473.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3304, allocations: 59.6 MB / 0.5204 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004608/0.335, allocations: 4.28 MB / 0.5246 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.3376, allocations: 1.368 MB / 0.5259 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004162/0.338, allocations: 8.406 kB / 0.5259 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.3382, allocations: 88.98 kB / 0.526 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004996/0.3387, allocations: 234.3 kB / 0.5263 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007631/0.3395, allocations: 305.3 kB / 0.5265 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.3406, allocations: 1.172 MB / 0.5277 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007735/0.3413, allocations: 0.5008 MB / 0.5282 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005762/0.3419, allocations: 475.1 kB / 0.5286 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006838/0.3426, allocations: 0.5259 MB / 0.5291 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.3428, allocations: 110.6 kB / 0.5292 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.343, allocations: 111.8 kB / 0.5294 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3432, allocations: 231 kB / 0.5296 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004273/0.3436, allocations: 485 kB / 0.53 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.3449, allocations: 1.121 MB / 0.5311 GB, free: 3.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3449, allocations: 0.6094 kB / 0.5311 GB, free: 3.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3449, allocations: 4 kB / 0.5311 GB, free: 3.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.3449, allocations: 0 / 0.5311 GB, free: 3.523 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.002488/0.3474, allocations: 0.9915 MB / 0.5321 GB, free: 2.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.3474, allocations: 13.7 kB / 0.5321 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001725/0.3476, allocations: 138.5 kB / 0.5323 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.3478, allocations: 80.41 kB / 0.5323 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.3481, allocations: 198.3 kB / 0.5325 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.363e-05/0.3481, allocations: 73.12 kB / 0.5326 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3483, allocations: 85.03 kB / 0.5327 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.35, allocations: 0.8283 MB / 0.5335 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/0.35, allocations: 0 / 0.5335 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-05/0.3501, allocations: 35.41 kB / 0.5335 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.3501, allocations: 22.34 kB / 0.5335 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.3517, allocations: 0.844 MB / 0.5344 GB, free: 1.867 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.00472/0.3564, allocations: 2.559 MB / 0.5369 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002204/0.3586, allocations: 0.9413 MB / 0.5378 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000739/0.3593, allocations: 381.7 kB / 0.5381 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.3594, allocations: 23.36 kB / 0.5382 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.3595, allocations: 43.91 kB / 0.5382 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008349/0.3603, allocations: 170.7 kB / 0.5384 GB, free: 15.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=113): time 3.898e-06/0.3603, allocations: 0 / 0.5384 GB, free: 15.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.009413/0.3697, allocations: 3.245 MB / 0.5415 GB, free: 14.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.3698, allocations: 64.56 kB / 0.5416 GB, free: 14.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.3701, allocations: 214.2 kB / 0.5418 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.645e-05/0.3702, allocations: 45.92 kB / 0.5418 GB, free: 13.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.3704, allocations: 246.7 kB / 0.5421 GB, free: 13.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004077/0.3708, allocations: 445.5 kB / 0.5425 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003127/0.3711, allocations: 179.3 kB / 0.5427 GB, free: 13.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3713, allocations: 364.8 kB / 0.543 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000687/0.372, allocations: 357.1 kB / 0.5434 GB, free: 12.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007628/0.3727, allocations: 460.8 kB / 0.5438 GB, free: 12.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01976/0.3925, allocations: 3.477 MB / 0.5472 GB, free: 10.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3925, allocations: 1.469 kB / 0.5472 GB, free: 10.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002798/0.3953, allocations: 1.201 MB / 0.5484 GB, free: 10.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.3953, allocations: 8.844 kB / 0.5484 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3953, allocations: 1.094 kB / 0.5484 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.3965, allocations: 217.8 kB / 0.5486 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00629/0.4027, allocations: 0.8148 MB / 0.5494 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/0.4159, allocations: 13.91 MB / 0.563 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009914/0.4169, allocations: 34.58 kB / 0.563 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.417, allocations: 41.52 kB / 0.563 GB, free: 11.64 MB / 414.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.0006149/0.4176, allocations: 242.9 kB / 0.5633 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.4178, allocations: 59.08 kB / 0.5633 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.4214, allocations: 1.468 MB / 0.5648 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.4214, allocations: 17.62 kB / 0.5648 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.4214, allocations: 1.156 kB / 0.5648 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.4214, allocations: 9.125 kB / 0.5648 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005523/0.4269, allocations: 2.553 MB / 0.5673 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.427, allocations: 5.281 kB / 0.5673 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005593/0.4325, allocations: 0.7562 MB / 0.568 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002049/0.4346, allocations: 368.7 kB / 0.5684 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002213/0.4348, allocations: 38.33 kB / 0.5684 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/0.4489, allocations: 14.16 MB / 0.5822 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.449, allocations: 8 kB / 0.5823 GB, free: 9.195 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004337/0.4533, allocations: 2.063 MB / 0.5843 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.4535, allocations: 71.56 kB / 0.5843 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.4537, allocations: 35.98 kB / 0.5844 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006938/0.4544, allocations: 32 kB / 0.5844 GB, free: 6.887 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.4547, allocations: 128.8 kB / 0.5845 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.4547, allocations: 44 kB / 0.5846 GB, free: 6.715 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.4549, allocations: 165.1 kB / 0.5847 GB, free: 6.555 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4549, allocations: 0 / 0.5847 GB, free: 6.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001204/0.4561, allocations: 260 kB / 0.585 GB, free: 6.301 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.004506/0.4607, allocations: 2.644 MB / 0.5876 GB, free: 3.539 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00808/0.4687, allocations: 1.991 MB / 0.5895 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/0.4687, allocations: 0 / 0.5895 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006663/0.4754, allocations: 1.587 MB / 0.5911 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.4767, allocations: 201.7 kB / 0.5912 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.4888, allocations: 6.631 MB / 0.5977 GB, free: 8.738 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.4894, allocations: 0.9338 MB / 0.5986 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006851/0.4901, allocations: 117.5 kB / 0.5987 GB, free: 7.656 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.4906, allocations: 267.3 kB / 0.599 GB, free: 7.395 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4906, allocations: 0 / 0.599 GB, free: 7.395 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06956/0.5602, allocations: 20.54 MB / 0.6191 GB, free: 3.082 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/14.97, allocations: 16 kB / 0.6191 GB, free: 3.066 MB / 462.1 MB " [Timeout remaining time 645] (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 sys.exit(0), Time elapsed: 18.13850866899884] Failed to read output from testmodel.py, exit status != 0: 15.1107022980068 15.125273955 14.777168866 Calling exit ...