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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008465/0.0008467, allocations: 85.94 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008443/0.0008443, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2167/0.2167, allocations: 22.35 MB / 313.4 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003611, allocations: 12 kB / 382.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3173, allocations: 55.97 MB / 438 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.002953/0.3203, allocations: 3.652 MB / 441.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3219, allocations: 1.289 MB / 443 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.322, allocations: 2.375 kB / 443 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.337e-05/0.3221, allocations: 62.95 kB / 443 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.3225, allocations: 204.6 kB / 443.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003694/0.3228, allocations: 208.5 kB / 443.4 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006699/0.3235, allocations: 1.05 MB / 444.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004612/0.324, allocations: 463.5 kB / 444.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.3243, allocations: 392.9 kB / 445.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000449/0.3248, allocations: 464.5 kB / 445.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.939e-05/0.3249, allocations: 56.16 kB / 445.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.325, allocations: 56.34 kB / 445.9 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3251, allocations: 165.7 kB / 446 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3252, allocations: 176.7 kB / 446.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005003/0.3257, allocations: 0.813 MB / 447 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3257, allocations: 0 / 447 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3257, allocations: 0 / 447 MB, free: 33.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.3258, allocations: 4 kB / 447 MB, free: 33.98 MB / 350.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.001795/0.3276, allocations: 0.9309 MB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3276, allocations: 8.906 kB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.3277, allocations: 144.3 kB / 448.1 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.3278, allocations: 81.45 kB / 448.2 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.328, allocations: 253.2 kB / 448.4 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.3281, allocations: 65.06 kB / 448.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.3282, allocations: 84.97 kB / 448.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.3294, allocations: 0.8027 MB / 449.4 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.3294, allocations: 0 / 449.4 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.3295, allocations: 36.28 kB / 449.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.3295, allocations: 20 kB / 449.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.3308, allocations: 0.8238 MB / 450.3 MB, free: 32.28 MB / 350.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.003481/0.3343, allocations: 2.603 MB / 452.9 MB, free: 30.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.336, allocations: 0.993 MB / 453.9 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005763/0.3366, allocations: 416.4 kB / 454.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.637e-05/0.3367, allocations: 22.78 kB / 454.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.3367, allocations: 46.7 kB / 454.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000444/0.3372, allocations: 127.8 kB / 454.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 3.316e-06/0.3372, allocations: 0 / 454.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007466/0.3447, allocations: 3.536 MB / 458 MB, free: 28.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3447, allocations: 67.84 kB / 458.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.3449, allocations: 213.8 kB / 458.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.807e-05/0.345, allocations: 49.91 kB / 458.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.741e-05/0.3451, allocations: 240.7 kB / 458.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.3453, allocations: 426.5 kB / 459 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.3454, allocations: 20.84 kB / 459 MB, free: 27.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.3455, allocations: 362.6 kB / 459.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005589/0.346, allocations: 359.4 kB / 459.7 MB, free: 26.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006209/0.3466, allocations: 449.3 kB / 460.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.3473, allocations: 433.6 kB / 460.6 MB, free: 26.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3474, allocations: 0 / 460.6 MB, free: 26.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002405/0.3498, allocations: 1.197 MB / 461.8 MB, free: 25.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3498, allocations: 6.312 kB / 461.8 MB, free: 25.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.3498, allocations: 1.062 kB / 461.8 MB, free: 25.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.3509, allocations: 224.5 kB / 462 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005573/0.3564, allocations: 0.8092 MB / 462.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008814/0.3653, allocations: 13.91 MB / 476.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009333/0.3663, allocations: 55.25 kB / 476.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.3664, allocations: 39.28 kB / 476.8 MB, free: 11.82 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: V.T:VARIABLE(min = max(0.0, max(0.0, 0.0)) start = V.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real V.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real U1.T:VARIABLE(min = max(0.0, 0.0) start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005771/0.367, allocations: 256.6 kB / 477.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.3672, allocations: 58.38 kB / 477.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003374/0.3706, allocations: 1.486 MB / 478.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.3706, allocations: 14.16 kB / 478.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.3706, allocations: 1.188 kB / 478.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.3706, allocations: 7.141 kB / 478.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004586/0.3752, allocations: 2.573 MB / 481.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3753, allocations: 6.953 kB / 481.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005024/0.3803, allocations: 0.7572 MB / 482 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/0.3824, allocations: 392.5 kB / 482.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/0.3826, allocations: 32.48 kB / 482.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.3932, allocations: 14.13 MB / 496.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/0.3933, allocations: 11.72 kB / 496.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00454/0.3978, allocations: 2.051 MB / 498.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002477/0.3981, allocations: 134.9 kB / 498.7 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001397/0.3983, allocations: 38.98 kB / 498.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007413/0.399, allocations: 55.36 kB / 498.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.3993, allocations: 125.5 kB / 498.9 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-05/0.3995, allocations: 40.75 kB / 499 MB, free: 9.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.3997, allocations: 166.4 kB / 499.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3997, allocations: 0 / 499.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001387/0.4011, allocations: 262.1 kB / 499.4 MB, free: 9.727 MB / 366.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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004364/0.4054, allocations: 2.637 MB / 0.4902 GB, free: 8.008 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.V.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.00745/0.4129, allocations: 2.055 MB / 0.4923 GB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.4129, allocations: 0 / 0.4923 GB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005862/0.4188, allocations: 1.627 MB / 0.4938 GB, free: 5.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.4201, allocations: 192.7 kB / 0.494 GB, free: 5.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008426/0.4285, allocations: 4.519 MB / 0.4984 GB, free: 1.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.4291, allocations: 0.9338 MB / 0.4994 GB, free: 124 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008265/0.4299, allocations: 121.5 kB / 0.4995 GB, free: 0 / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.4304, allocations: 259.4 kB / 0.4997 GB, free: 15.74 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4304, allocations: 0 / 0.4997 GB, free: 15.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.4635, allocations: 17.74 MB / 0.517 GB, free: 14.3 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.4637, allocations: 223.8 kB / 0.5173 GB, free: 14.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/2.857, allocations: 7.938 kB / 0.5173 GB, free: 14.05 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1) Environment - environmentSimulation: