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.001827/0.001827, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002461/0.002461, allocations: 212.5 kB / 23.01 MB, free: 4.992 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1081/0.1081, allocations: 24.03 MB / 337.2 MB, free: 11.36 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.00208/0.00208, allocations: 67.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3504, allocations: 59.58 MB / 0.5209 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005482/0.3559, allocations: 3.792 MB / 0.5246 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.3581, allocations: 1.307 MB / 0.5259 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000325/0.3584, allocations: 3.406 kB / 0.5259 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.3586, allocations: 86.7 kB / 0.526 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000492/0.3591, allocations: 239.3 kB / 0.5262 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.3597, allocations: 306.9 kB / 0.5265 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.3607, allocations: 1.168 MB / 0.5276 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006584/0.3614, allocations: 0.5002 MB / 0.5281 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005345/0.3619, allocations: 477.1 kB / 0.5286 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005845/0.3625, allocations: 479.4 kB / 0.529 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.3626, allocations: 110.6 kB / 0.5291 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.3628, allocations: 110.8 kB / 0.5293 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.363, allocations: 232.5 kB / 0.5295 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004052/0.3634, allocations: 417.6 kB / 0.5299 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.3644, allocations: 1.128 MB / 0.531 GB, free: 4.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3644, allocations: 0 / 0.531 GB, free: 4.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3644, allocations: 0 / 0.531 GB, free: 4.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.3644, allocations: 0 / 0.531 GB, free: 4.168 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.002183/0.3666, allocations: 0.9922 MB / 0.5319 GB, free: 3.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3666, allocations: 14.33 kB / 0.532 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.3668, allocations: 137.5 kB / 0.5321 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.3669, allocations: 79.94 kB / 0.5322 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.3671, allocations: 201.5 kB / 0.5324 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.458e-05/0.3672, allocations: 71.53 kB / 0.5324 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.3673, allocations: 84.22 kB / 0.5325 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.3688, allocations: 0.8492 MB / 0.5333 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.3689, allocations: 0.5938 kB / 0.5333 GB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.533e-05/0.3689, allocations: 35.92 kB / 0.5334 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.369, allocations: 21.28 kB / 0.5334 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.3705, allocations: 0.8375 MB / 0.5342 GB, free: 2.48 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.004005/0.3745, allocations: 1.954 MB / 0.5361 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.3764, allocations: 0.9224 MB / 0.537 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006452/0.377, allocations: 383.1 kB / 0.5374 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.776e-05/0.3771, allocations: 16.84 kB / 0.5374 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.3771, allocations: 49.25 kB / 0.5374 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006938/0.3778, allocations: 173.2 kB / 0.5376 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.908e-06/0.3778, allocations: 0 / 0.5376 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.008267/0.3861, allocations: 3.23 MB / 0.5408 GB, free: 15.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.3862, allocations: 68.72 kB / 0.5408 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.3865, allocations: 222.4 kB / 0.541 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/0.3865, allocations: 45.83 kB / 0.5411 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.3867, allocations: 243.9 kB / 0.5413 GB, free: 14.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.3872, allocations: 446 kB / 0.5417 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000318/0.3875, allocations: 178.3 kB / 0.5419 GB, free: 14.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002585/0.3878, allocations: 363.5 kB / 0.5423 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006941/0.3884, allocations: 356.5 kB / 0.5426 GB, free: 14.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008014/0.3892, allocations: 457.7 kB / 0.543 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01856/0.4078, allocations: 3.454 MB / 0.5464 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.906e-06/0.4078, allocations: 3.938 kB / 0.5464 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002798/0.4106, allocations: 1.202 MB / 0.5476 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4106, allocations: 6 kB / 0.5476 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.4106, allocations: 9 kB / 0.5476 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009991/0.4116, allocations: 214.7 kB / 0.5478 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005821/0.4175, allocations: 0.8154 MB / 0.5486 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/0.4312, allocations: 13.87 MB / 0.5622 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008678/0.4321, allocations: 26.09 kB / 0.5622 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.4321, allocations: 46.06 kB / 0.5622 GB, free: 13.05 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.000536/0.4327, allocations: 236.6 kB / 0.5624 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.4328, allocations: 55.17 kB / 0.5625 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003307/0.4361, allocations: 1.485 MB / 0.564 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.4361, allocations: 12.78 kB / 0.564 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4361, allocations: 2.312 kB / 0.564 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.4361, allocations: 7.969 kB / 0.564 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/0.4408, allocations: 2.392 MB / 0.5663 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.4408, allocations: 5.219 kB / 0.5663 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00534/0.4462, allocations: 0.7602 MB / 0.5671 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/0.4481, allocations: 372.6 kB / 0.5674 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.4482, allocations: 37.52 kB / 0.5674 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/0.4623, allocations: 14.12 MB / 0.5812 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.4623, allocations: 7.938 kB / 0.5812 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004349/0.4667, allocations: 2.056 MB / 0.5833 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.4669, allocations: 63.62 kB / 0.5833 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.467, allocations: 35.98 kB / 0.5833 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.4677, allocations: 32 kB / 0.5834 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.468, allocations: 132.6 kB / 0.5835 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.224e-05/0.4681, allocations: 40 kB / 0.5835 GB, free: 8.352 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.4683, allocations: 161.1 kB / 0.5837 GB, free: 8.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4683, allocations: 0 / 0.5837 GB, free: 8.195 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001104/0.4694, allocations: 256 kB / 0.5839 GB, free: 7.945 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.004352/0.4737, allocations: 2.663 MB / 0.5865 GB, free: 5.164 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007426/0.4811, allocations: 1.979 MB / 0.5885 GB, free: 3.129 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/0.4812, allocations: 8.062 kB / 0.5885 GB, free: 3.121 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00621/0.4874, allocations: 1.583 MB / 0.59 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.4887, allocations: 197.7 kB / 0.5902 GB, free: 1.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.5006, allocations: 6.638 MB / 0.5967 GB, free: 10.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.501, allocations: 333.7 kB / 0.597 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006339/0.5016, allocations: 117.5 kB / 0.5971 GB, free: 9.902 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/0.5021, allocations: 263.3 kB / 0.5974 GB, free: 9.645 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5021, allocations: 0 / 0.5974 GB, free: 9.645 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06816/0.5703, allocations: 21.09 MB / 0.618 GB, free: 4.867 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/14.84, allocations: 14.45 kB / 0.618 GB, free: 4.855 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.050134813878685] Failed to read output from testmodel.py, exit status != 0: 14.971996212843806 14.995909385 14.627092135 Calling exit ...