Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Devel_test_models.Test_AHU_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.Devel_test_models.Test_AHU_001,fileNamePrefix="AES_AES_Devel_test_models_Test_AHU_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Devel_test_models.Test_AHU_001,fileNamePrefix="AES_AES_Devel_test_models_Test_AHU_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.1112/0.1112, allocations: 21.62 MB / 36.56 MB, free: 1.086 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.001162/0.001162, allocations: 183.2 kB / 42.83 MB, free: 3.809 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.441/1.441, allocations: 223.2 MB / 272.1 MB, free: 1.379 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.0008666/0.0008668, allocations: 96.25 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003323, allocations: 8 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09673, allocations: 55.83 MB / 452.9 MB, free: 6.512 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3348/0.4316, allocations: 83.93 MB / 0.5243 GB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.4319, allocations: 75.34 kB / 0.5244 GB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02604/0.4579, allocations: 11.05 MB / 0.5351 GB, free: 9.301 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4579, allocations: 0 / 0.5351 GB, free: 9.301 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.458, allocations: 15.44 kB / 0.5352 GB, free: 9.301 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.002079/0.4601, allocations: 0.9027 MB / 0.536 GB, free: 8.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.4601, allocations: 7.844 kB / 0.5361 GB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000205/0.4603, allocations: 136.4 kB / 0.5362 GB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.4605, allocations: 90.14 kB / 0.5363 GB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.4607, allocations: 241.5 kB / 0.5365 GB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.4608, allocations: 67 kB / 0.5366 GB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.4609, allocations: 83.75 kB / 0.5366 GB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.462, allocations: 0.7244 MB / 0.5374 GB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.462, allocations: 0 / 0.5374 GB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.4621, allocations: 42.56 kB / 0.5374 GB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.4621, allocations: 23.12 kB / 0.5374 GB, free: 8.102 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.4632, allocations: 0.7182 MB / 0.5381 GB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.4662, allocations: 2.009 MB / 0.5401 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.4678, allocations: 0.8744 MB / 0.5409 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.527e-05/0.4679, allocations: 12.5 kB / 0.5409 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.4679, allocations: 41.78 kB / 0.541 GB, free: 6.938 MB / 362.7 MB Notification: Performance of pre-optimization done (n=103): time 2.865e-06/0.4679, allocations: 0 / 0.541 GB, free: 6.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=114): time 0.008902/0.4768, allocations: 3.429 MB / 0.5443 GB, free: 5.699 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.4769, allocations: 71.61 kB / 0.5444 GB, free: 5.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.4771, allocations: 190.7 kB / 0.5446 GB, free: 5.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.4772, allocations: 47.05 kB / 0.5446 GB, free: 5.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.4773, allocations: 253.6 kB / 0.5449 GB, free: 5.285 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.4775, allocations: 386.4 kB / 0.5452 GB, free: 5.004 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.4776, allocations: 20.47 kB / 0.5453 GB, free: 5.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.4777, allocations: 359.5 kB / 0.5456 GB, free: 4.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004817/0.4782, allocations: 296.4 kB / 0.5459 GB, free: 4.641 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005286/0.4787, allocations: 381.6 kB / 0.5462 GB, free: 4.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005817/0.4793, allocations: 366.5 kB / 0.5466 GB, free: 4.527 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4793, allocations: 0 / 0.5466 GB, free: 4.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002552/0.4819, allocations: 1.168 MB / 0.5477 GB, free: 4.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4819, allocations: 7.312 kB / 0.5477 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4819, allocations: 0 / 0.5477 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.4836, allocations: 348.4 kB / 0.5481 GB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006059/0.4897, allocations: 0.7352 MB / 0.5488 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0142/0.5039, allocations: 15.2 MB / 0.5636 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009527/0.5049, allocations: 60.22 kB / 0.5637 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.5051, allocations: 36.89 kB / 0.5637 GB, free: 4.156 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, 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 (103): * Single equations (assignments): 93 * 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%) 1,(1,100.0%) 2} * Non-linear torn systems: 1 {3 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005432/0.5056, allocations: 239.9 kB / 0.564 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.5057, allocations: 51.44 kB / 0.564 GB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.5091, allocations: 1.393 MB / 0.5654 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.5091, allocations: 8 kB / 0.5654 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5091, allocations: 4 kB / 0.5654 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.5091, allocations: 3.984 kB / 0.5654 GB, free: 2.949 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004848/0.514, allocations: 2.547 MB / 0.5679 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.514, allocations: 4.125 kB / 0.5679 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00522/0.5192, allocations: 0.6855 MB / 0.5685 GB, free: 276 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002818/0.5221, allocations: 0.5056 MB / 0.569 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/0.5223, allocations: 42.5 kB / 0.5691 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/0.5373, allocations: 15.38 MB / 0.5841 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.5374, allocations: 7.938 kB / 0.5841 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004659/0.542, allocations: 2.34 MB / 0.5864 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002402/0.5423, allocations: 132.6 kB / 0.5865 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.5424, allocations: 36.61 kB / 0.5866 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008598/0.5433, allocations: 51.88 kB / 0.5866 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.5436, allocations: 116.7 kB / 0.5867 GB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.344e-05/0.5437, allocations: 35.98 kB / 0.5867 GB, free: 13.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001612/0.5439, allocations: 167.2 kB / 0.5869 GB, free: 13.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5439, allocations: 0 / 0.5869 GB, free: 13.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001324/0.5452, allocations: 276 kB / 0.5872 GB, free: 12.95 MB / 410.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.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 (92): * Single equations (assignments): 82 * 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: 2 {(3,77.8%) 4,(1,100.0%) 2} * Non-linear torn systems: 2 {1 5,3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.005209/0.5504, allocations: 4.91 MB / 0.592 GB, free: 7.797 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.006529/0.557, allocations: 1.781 MB / 0.5937 GB, free: 5.969 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/0.557, allocations: 256 / 0.5937 GB, free: 5.969 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005316/0.5623, allocations: 1.435 MB / 0.5951 GB, free: 4.488 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/0.5634, allocations: 153.5 kB / 0.5953 GB, free: 4.332 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008951/0.5723, allocations: 5.052 MB / 0.6002 GB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005755/0.5729, allocations: 0.9522 MB / 0.6011 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006541/0.5736, allocations: 85.12 kB / 0.6012 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.574, allocations: 239.3 kB / 0.6014 GB, free: 13.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/0.574, allocations: 0 / 0.6014 GB, free: 13.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0376/0.6116, allocations: 17.64 MB / 0.6187 GB, free: 12.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.6119, allocations: 181.2 kB / 0.6188 GB, free: 12.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.641/3.252, allocations: 0 / 0.6188 GB, free: 12.14 MB / 442.7 MB (rm -f AES_AES.Devel_test_models.Test_AHU_001.pipe ; mkfifo AES_AES.Devel_test_models.Test_AHU_001.pipe ; head -c 1048576 < AES_AES.Devel_test_models.Test_AHU_001.pipe >> ../files/AES_AES.Devel_test_models.Test_AHU_001.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Devel_test_models_Test_AHU_001_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Devel_test_models_Test_AHU_001.fmu > AES_AES.Devel_test_models.Test_AHU_001.pipe 2>&1)