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/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_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"}) [/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.1006/0.1006, allocations: 21.62 MB / 36.57 MB, free: 1.078 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.001056/0.001056, allocations: 187.3 kB / 42.83 MB, free: 3.781 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.457/1.457, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.0008414/0.0008413, allocations: 99.08 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004903, allocations: 12 kB / 397.1 MB, free: 46.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.0889, allocations: 55.82 MB / 452.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.4005, allocations: 84.08 MB / 0.5244 GB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4007, allocations: 80.5 kB / 0.5245 GB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02457/0.4253, allocations: 11.09 MB / 0.5353 GB, free: 9.121 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4253, allocations: 0 / 0.5353 GB, free: 9.121 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.4253, allocations: 19.03 kB / 0.5354 GB, free: 9.121 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002144/0.4275, allocations: 0.9067 MB / 0.5362 GB, free: 8.477 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.4276, allocations: 7.656 kB / 0.5363 GB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001935/0.4278, allocations: 135.5 kB / 0.5364 GB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.4279, allocations: 76.69 kB / 0.5365 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.4281, allocations: 249.2 kB / 0.5367 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.4281, allocations: 63.72 kB / 0.5368 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.4283, allocations: 85.03 kB / 0.5368 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.4295, allocations: 0.8068 MB / 0.5376 GB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.4295, allocations: 0 / 0.5376 GB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.366e-05/0.4296, allocations: 45.77 kB / 0.5377 GB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.4296, allocations: 19.31 kB / 0.5377 GB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.4308, allocations: 0.8371 MB / 0.5385 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.4344, allocations: 2.203 MB / 0.5407 GB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.4362, allocations: 0.9946 MB / 0.5416 GB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.982e-05/0.4363, allocations: 19.66 kB / 0.5416 GB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.4363, allocations: 53.88 kB / 0.5417 GB, free: 6.625 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000713/0.437, allocations: 168.3 kB / 0.5419 GB, free: 6.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=113): time 3.977e-06/0.437, allocations: 0 / 0.5419 GB, free: 6.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.007425/0.4445, allocations: 3.554 MB / 0.5453 GB, free: 5.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.4445, allocations: 68.03 kB / 0.5454 GB, free: 5.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.4447, allocations: 197 kB / 0.5456 GB, free: 5.227 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.349e-05/0.4448, allocations: 43.61 kB / 0.5456 GB, free: 5.195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.4448, allocations: 242.7 kB / 0.5459 GB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.445, allocations: 419.5 kB / 0.5463 GB, free: 4.707 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.4451, allocations: 20.97 kB / 0.5463 GB, free: 4.707 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.998e-05/0.4452, allocations: 362.2 kB / 0.5466 GB, free: 4.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005149/0.4457, allocations: 354.6 kB / 0.547 GB, free: 4.332 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.4463, allocations: 459 kB / 0.5474 GB, free: 4.219 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006067/0.4469, allocations: 436.3 kB / 0.5478 GB, free: 4.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4469, allocations: 0 / 0.5478 GB, free: 4.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002265/0.4492, allocations: 1.209 MB / 0.549 GB, free: 3.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4492, allocations: 3.844 kB / 0.549 GB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4492, allocations: 3.812 kB / 0.549 GB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.4503, allocations: 229.9 kB / 0.5492 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/0.4565, allocations: 0.8072 MB / 0.55 GB, free: 3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/0.4696, allocations: 14.32 MB / 0.564 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.4709, allocations: 49.2 kB / 0.564 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/0.4712, allocations: 37.98 kB / 0.5641 GB, free: 4.117 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, 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.0007992/0.472, allocations: 270.5 kB / 0.5643 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.4722, allocations: 51.44 kB / 0.5644 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003473/0.4756, allocations: 1.492 MB / 0.5658 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4757, allocations: 12 kB / 0.5659 GB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.4757, allocations: 4 kB / 0.5659 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.4757, allocations: 11.91 kB / 0.5659 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004759/0.4805, allocations: 2.574 MB / 0.5684 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.4805, allocations: 8.156 kB / 0.5684 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005809/0.4863, allocations: 0.76 MB / 0.5691 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002421/0.4888, allocations: 389.5 kB / 0.5695 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002037/0.489, allocations: 36.92 kB / 0.5695 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/0.5029, allocations: 14.52 MB / 0.5837 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/0.5029, allocations: 7.938 kB / 0.5837 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/0.5076, allocations: 2.402 MB / 0.5861 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.5079, allocations: 140.4 kB / 0.5862 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.508, allocations: 28 kB / 0.5862 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009206/0.5089, allocations: 51.97 kB / 0.5863 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/0.5092, allocations: 128.6 kB / 0.5864 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-05/0.5094, allocations: 47.92 kB / 0.5865 GB, free: 13.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002071/0.5096, allocations: 168.1 kB / 0.5866 GB, free: 13.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5096, allocations: 0 / 0.5866 GB, free: 13.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001346/0.5109, allocations: 268 kB / 0.5869 GB, free: 13.45 MB / 410.7 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 {(1,100.0%) 2,(3,77.8%) 4,(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005355/0.5163, allocations: 4.771 MB / 0.5915 GB, free: 8.465 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.006698/0.523, allocations: 1.846 MB / 0.5933 GB, free: 6.562 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.523, allocations: 0 / 0.5933 GB, free: 6.562 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005272/0.5283, allocations: 1.423 MB / 0.5947 GB, free: 5.086 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009567/0.5293, allocations: 177.6 kB / 0.5949 GB, free: 4.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009151/0.5385, allocations: 5.259 MB / 0.6 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.5391, allocations: 0.9532 MB / 0.601 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008769/0.54, allocations: 117.5 kB / 0.6011 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/0.5404, allocations: 255.3 kB / 0.6013 GB, free: 14.16 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5405, allocations: 0 / 0.6013 GB, free: 14.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03703/0.5775, allocations: 18.11 MB / 0.619 GB, free: 12.31 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.5777, allocations: 212.7 kB / 0.6192 GB, free: 12.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.589/3.167, allocations: 4 kB / 0.6192 GB, free: 12.07 MB / 442.7 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)