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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1033/0.1033, allocations: 21.62 MB / 36.56 MB, free: 0.8867 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009556/0.0009557, allocations: 177.1 kB / 42.83 MB, free: 3.656 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.2 MB / 272.1 MB, free: 1.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008736/0.0008734, allocations: 98.69 kB / 328.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09489, allocations: 55.83 MB / 452.9 MB, free: 6.613 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3441/0.439, allocations: 84.05 MB / 0.5244 GB, free: 12.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4393, allocations: 77.25 kB / 0.5245 GB, free: 12.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02383/0.4631, allocations: 10.39 MB / 0.5346 GB, free: 9.344 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4632, allocations: 0 / 0.5346 GB, free: 9.344 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.382e-05/0.4632, allocations: 15.19 kB / 0.5346 GB, free: 9.344 MB / 362.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.001803/0.465, allocations: 0.8811 MB / 0.5355 GB, free: 8.715 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4651, allocations: 7.688 kB / 0.5355 GB, free: 8.715 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.4652, allocations: 130.1 kB / 0.5356 GB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.4653, allocations: 69.94 kB / 0.5357 GB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.4656, allocations: 235.5 kB / 0.5359 GB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.153e-05/0.4656, allocations: 67.02 kB / 0.536 GB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4657, allocations: 83.61 kB / 0.5361 GB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.4668, allocations: 0.6813 MB / 0.5367 GB, free: 8.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.4668, allocations: 3.938 kB / 0.5367 GB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.4669, allocations: 34.28 kB / 0.5368 GB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4669, allocations: 19.38 kB / 0.5368 GB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009581/0.4679, allocations: 0.6927 MB / 0.5375 GB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00276/0.4706, allocations: 1.902 MB / 0.5393 GB, free: 7.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008965/0.4715, allocations: 0.6644 MB / 0.54 GB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/0.4716, allocations: 15.3 kB / 0.54 GB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.4716, allocations: 45.62 kB / 0.54 GB, free: 7.086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 2.314e-06/0.4716, allocations: 0 / 0.54 GB, free: 7.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.006664/0.4783, allocations: 3.026 MB / 0.543 GB, free: 6.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.4784, allocations: 63.78 kB / 0.543 GB, free: 6.012 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.4785, allocations: 183.8 kB / 0.5432 GB, free: 5.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.4786, allocations: 44.36 kB / 0.5433 GB, free: 5.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.316e-05/0.4787, allocations: 234.7 kB / 0.5435 GB, free: 5.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.4788, allocations: 381.1 kB / 0.5438 GB, free: 5.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.4789, allocations: 17.22 kB / 0.5439 GB, free: 5.406 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.362e-05/0.479, allocations: 362.6 kB / 0.5442 GB, free: 5.074 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.4794, allocations: 293 kB / 0.5445 GB, free: 5.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.4799, allocations: 383.2 kB / 0.5449 GB, free: 4.949 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.4804, allocations: 342.8 kB / 0.5452 GB, free: 4.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4804, allocations: 7.688 kB / 0.5452 GB, free: 4.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002003/0.4824, allocations: 1.042 MB / 0.5462 GB, free: 4.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4824, allocations: 3.844 kB / 0.5462 GB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4824, allocations: 3.844 kB / 0.5462 GB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.4836, allocations: 230.6 kB / 0.5464 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005853/0.4895, allocations: 0.7533 MB / 0.5472 GB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.5018, allocations: 14.33 MB / 0.5612 GB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008928/0.5027, allocations: 46.02 kB / 0.5612 GB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/0.5028, allocations: 30.98 kB / 0.5612 GB, free: 6.121 MB / 378.7 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, 0.0))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.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 (112): * Single equations (assignments): 102 * 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%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005142/0.5034, allocations: 254.5 kB / 0.5615 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.5035, allocations: 55.36 kB / 0.5615 GB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002865/0.5063, allocations: 1.266 MB / 0.5628 GB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.5064, allocations: 12 kB / 0.5628 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5064, allocations: 4 kB / 0.5628 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.5064, allocations: 7.984 kB / 0.5628 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.5106, allocations: 2.383 MB / 0.5651 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.5107, allocations: 4 kB / 0.5651 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00562/0.5163, allocations: 0.6992 MB / 0.5658 GB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002345/0.5187, allocations: 374.6 kB / 0.5662 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.5188, allocations: 34.3 kB / 0.5662 GB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/0.532, allocations: 14.47 MB / 0.5803 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.249e-05/0.532, allocations: 11.94 kB / 0.5803 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003745/0.5358, allocations: 2.195 MB / 0.5825 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.536, allocations: 143.9 kB / 0.5826 GB, free: 1.066 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.802e-05/0.5361, allocations: 28.64 kB / 0.5826 GB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000712/0.5368, allocations: 41.8 kB / 0.5827 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.5371, allocations: 118.5 kB / 0.5828 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/0.5371, allocations: 37.8 kB / 0.5828 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001588/0.5373, allocations: 153.5 kB / 0.583 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5373, allocations: 4 kB / 0.583 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001083/0.5384, allocations: 246.5 kB / 0.5832 GB, free: 0.5547 MB / 394.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 (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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004582/0.543, allocations: 4.784 MB / 0.5879 GB, free: 12.12 MB / 410.7 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.006006/0.549, allocations: 1.675 MB / 0.5895 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.549, allocations: 4 kB / 0.5895 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004899/0.5539, allocations: 1.333 MB / 0.5908 GB, free: 9.004 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008619/0.5548, allocations: 152.8 kB / 0.591 GB, free: 8.855 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007696/0.5625, allocations: 4.805 MB / 0.5957 GB, free: 3.879 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005517/0.5631, allocations: 0.9324 MB / 0.5966 GB, free: 2.922 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006737/0.5638, allocations: 93.02 kB / 0.5967 GB, free: 2.832 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/0.5642, allocations: 223.4 kB / 0.5969 GB, free: 2.613 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5642, allocations: 0 / 0.5969 GB, free: 2.613 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03537/0.5995, allocations: 15.77 MB / 0.6123 GB, free: 3.098 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/0.5999, allocations: 220.7 kB / 0.6125 GB, free: 2.852 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.503/3.103, allocations: 0 / 0.6125 GB, free: 2.852 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)