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.0007995/0.0007995, allocations: 80.44 kB / 19.95 MB, free: 4.617 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.0008265/0.0008265, 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.9064/0.9064, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.06021/0.06021, 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_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 2.545e-06/2.545e-06, allocations: 1.188 kB / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.251e-05, allocations: 7.062 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003449/0.003472, allocations: 3.61 MB / 418.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.005392, allocations: 1.263 MB / 419.9 MB, free: 9.414 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.005654, allocations: 8.562 kB / 420 MB, free: 9.41 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.005788, allocations: 78.05 kB / 420 MB, free: 9.363 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.006155, allocations: 228.4 kB / 420.2 MB, free: 9.195 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005609/0.006716, allocations: 307.6 kB / 420.5 MB, free: 9.004 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.007734, allocations: 1.12 MB / 421.7 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005806/0.008315, allocations: 387.5 kB / 422 MB, free: 8.242 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005566/0.008871, allocations: 391.2 kB / 422.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000527/0.009398, allocations: 331.5 kB / 422.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001547/0.009553, allocations: 94.19 kB / 422.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001547/0.009708, allocations: 94.03 kB / 422.9 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.009817, allocations: 192 kB / 423.1 MB, free: 7.848 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002939/0.01011, allocations: 317.4 kB / 423.4 MB, free: 7.711 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009184/0.01103, allocations: 1.013 MB / 424.4 MB, free: 7.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01103, allocations: 3.938 kB / 424.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.01104, allocations: 3.938 kB / 424.5 MB, free: 7.301 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.335e-05/0.01107, allocations: 1.828 kB / 424.5 MB, free: 7.301 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.0015/0.01257, allocations: 0.9173 MB / 425.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.01261, allocations: 9.766 kB / 425.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.01272, allocations: 129.4 kB / 425.5 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.01283, allocations: 76.72 kB / 425.6 MB, free: 6.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.01301, allocations: 183 kB / 425.8 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.01305, allocations: 63.66 kB / 425.8 MB, free: 6.379 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.612e-05/0.01313, allocations: 77.95 kB / 425.9 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008977/0.01403, allocations: 0.7193 MB / 426.6 MB, free: 6.035 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.01405, allocations: 3.938 kB / 426.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.0141, allocations: 34.88 kB / 426.7 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.01412, allocations: 20.94 kB / 426.7 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.015, allocations: 0.6849 MB / 427.4 MB, free: 5.77 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: 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.00247/0.01747, allocations: 1.68 MB / 429 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.01835, allocations: 0.6355 MB / 429.7 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003392/0.01869, allocations: 307 kB / 430 MB, free: 4.449 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.484e-05/0.01874, allocations: 15.88 kB / 430 MB, free: 4.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.01876, allocations: 45.38 kB / 430 MB, free: 4.395 MB / 330.7 MB Notification: Performance of pre-optimization done (n=102): time 3.116e-06/0.01877, allocations: 0 / 430 MB, free: 4.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=112): time 0.004667/0.02343, allocations: 2.81 MB / 432.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.02347, allocations: 63.83 kB / 432.9 MB, free: 3.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.02364, allocations: 201.6 kB / 433.1 MB, free: 2.938 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.02368, allocations: 41.2 kB / 433.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.02376, allocations: 235.1 kB / 433.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.02393, allocations: 400.7 kB / 433.8 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.02409, allocations: 150 kB / 433.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.059e-05/0.02415, allocations: 360.6 kB / 434.3 MB, free: 1.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.02452, allocations: 295.9 kB / 434.6 MB, free: 1.848 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.02496, allocations: 386.3 kB / 434.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005339/0.0303, allocations: 2.255 MB / 437.2 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.0303, allocations: 3.938 kB / 437.2 MB, free: 0.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00145/0.03175, allocations: 1.034 MB / 438.2 MB, free: 120 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.03178, allocations: 9.125 kB / 438.2 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.03179, allocations: 5.391 kB / 438.2 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005436/0.03233, allocations: 213.7 kB / 438.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/0.03499, allocations: 0.7527 MB / 439.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00725/0.04224, allocations: 13.87 MB / 453.1 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005774/0.04282, allocations: 36.11 kB / 453.1 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.071e-05/0.04286, allocations: 35.94 kB / 453.1 MB, free: 1.238 MB / 346.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.0003945/0.04326, allocations: 216.4 kB / 453.4 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.469e-05/0.04332, allocations: 55.67 kB / 453.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.0449, allocations: 1.25 MB / 454.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.04491, allocations: 12 kB / 454.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.04491, allocations: 4 kB / 454.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.04492, allocations: 3.984 kB / 454.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.04737, allocations: 2.214 MB / 456.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.04737, allocations: 4 kB / 456.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002112/0.04948, allocations: 0.7102 MB / 457.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008554/0.05034, allocations: 351 kB / 457.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.906e-05/0.0504, allocations: 28 kB / 458 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006684/0.05708, allocations: 14.03 MB / 472 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.05709, allocations: 11.94 kB / 472 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.05922, allocations: 1.803 MB / 473.8 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.05934, allocations: 63.66 kB / 473.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.213e-05/0.0594, allocations: 31.98 kB / 473.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.0597, allocations: 28 kB / 473.9 MB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.0599, allocations: 120.6 kB / 474.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.05995, allocations: 39.98 kB / 474.1 MB, free: 10.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.06006, allocations: 151 kB / 474.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06006, allocations: 4 kB / 474.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007871/0.06084, allocations: 236 kB / 474.5 MB, free: 10.42 MB / 378.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.002206/0.06305, allocations: 2.392 MB / 476.9 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003495/0.06654, allocations: 1.85 MB / 478.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.06655, allocations: 0 / 478.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.0692, allocations: 1.486 MB / 480.2 MB, free: 4.461 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007489/0.06995, allocations: 177.2 kB / 480.4 MB, free: 4.285 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006595/0.07655, allocations: 6.006 MB / 486.4 MB, free: 13.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.07679, allocations: 319.2 kB / 486.7 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003687/0.07716, allocations: 93.02 kB / 486.8 MB, free: 13.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.07743, allocations: 220.4 kB / 487 MB, free: 13.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/0.07744, allocations: 4 kB / 487 MB, free: 13.31 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03636/0.1138, allocations: 18.51 MB / 0.4937 GB, free: 11.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.641/8.755, allocations: 6.719 kB / 0.4937 GB, free: 11.09 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001_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_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.964122409000993] Failed to read output from testmodel.py, exit status != 0: 8.854466965422034 8.864895142 8.852150193 Calling exit ...