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.0007941/0.0007941, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004267/0.004267, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1933/0.1933, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003591, allocations: 8.281 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.235, allocations: 55.97 MB / 438.7 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.002605/0.2377, allocations: 3.846 MB / 442.5 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.2389, allocations: 1.324 MB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.239, allocations: 9.125 kB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.818e-05/0.2391, allocations: 59.58 kB / 443.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.2394, allocations: 215.8 kB / 444.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.2398, allocations: 263.1 kB / 444.4 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.2404, allocations: 1.097 MB / 445.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004138/0.2408, allocations: 474.9 kB / 445.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.2411, allocations: 395.6 kB / 446.3 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003916/0.2415, allocations: 478.9 kB / 446.8 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.037e-05/0.2416, allocations: 54.66 kB / 446.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-05/0.2417, allocations: 55 kB / 446.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.86e-05/0.2418, allocations: 176 kB / 447.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.2421, allocations: 451.6 kB / 447.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005169/0.2426, allocations: 1.04 MB / 448.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2426, allocations: 0 / 448.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2426, allocations: 3.938 kB / 448.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.2426, allocations: 0 / 448.6 MB, free: 33.4 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.001743/0.2444, allocations: 0.9288 MB / 449.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.2444, allocations: 15.81 kB / 449.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.2445, allocations: 143.1 kB / 449.6 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.2447, allocations: 81.06 kB / 449.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.2448, allocations: 246.5 kB / 450 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.2448, allocations: 72 kB / 450 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.245, allocations: 82.47 kB / 450.1 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.2461, allocations: 0.8086 MB / 450.9 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.2461, allocations: 3.938 kB / 450.9 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/0.2462, allocations: 36.19 kB / 451 MB, free: 31.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.2462, allocations: 25.66 kB / 451 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.2474, allocations: 0.8283 MB / 451.8 MB, free: 31.68 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.003243/0.2506, allocations: 2.614 MB / 454.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.2524, allocations: 0.9964 MB / 455.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005277/0.2529, allocations: 416.9 kB / 455.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.878e-05/0.253, allocations: 16.56 kB / 455.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.253, allocations: 49.59 kB / 455.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004233/0.2534, allocations: 122.3 kB / 456 MB, free: 29.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.375e-06/0.2534, allocations: 0 / 456 MB, free: 29.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007619/0.2611, allocations: 3.554 MB / 459.6 MB, free: 27.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.2611, allocations: 68.53 kB / 459.6 MB, free: 27.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.2613, allocations: 219.7 kB / 459.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.2613, allocations: 45.14 kB / 459.9 MB, free: 27.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.158e-05/0.2614, allocations: 244.3 kB / 460.1 MB, free: 27.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.2616, allocations: 419.9 kB / 460.6 MB, free: 26.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.2618, allocations: 91.33 kB / 460.6 MB, free: 26.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.2618, allocations: 360.9 kB / 461 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.2624, allocations: 364 kB / 461.3 MB, free: 26.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/0.263, allocations: 454.9 kB / 461.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01896/0.282, allocations: 3.55 MB / 465.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.282, allocations: 5.375 kB / 465.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00252/0.2845, allocations: 1.211 MB / 466.6 MB, free: 24.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.2846, allocations: 4.688 kB / 466.6 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2846, allocations: 2.438 kB / 466.6 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.2858, allocations: 227.2 kB / 466.8 MB, free: 24.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005987/0.2918, allocations: 0.8156 MB / 467.6 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008088/0.2999, allocations: 13.92 MB / 481.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007444/0.3006, allocations: 54.17 kB / 481.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.666e-05/0.3007, allocations: 39.8 kB / 481.6 MB, free: 10.54 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = max(0.0, 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 = 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 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 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 {(3,4,77.8%), (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.0004135/0.3011, allocations: 261.6 kB / 481.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3012, allocations: 54.55 kB / 481.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.3045, allocations: 1.489 MB / 483.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3045, allocations: 13.44 kB / 483.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3045, allocations: 7.359 kB / 483.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.3045, allocations: 7.5 kB / 483.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004047/0.3086, allocations: 2.592 MB / 486 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/0.3086, allocations: 5.75 kB / 486 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005438/0.314, allocations: 0.7528 MB / 486.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/0.3163, allocations: 396.4 kB / 487.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.671e-05/0.3164, allocations: 35.8 kB / 487.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009847/0.3263, allocations: 14.14 MB / 0.4896 GB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3263, allocations: 6.938 kB / 0.4896 GB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003869/0.3301, allocations: 2.074 MB / 0.4916 GB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.3303, allocations: 138.6 kB / 0.4918 GB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.3304, allocations: 29.92 kB / 0.4918 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007303/0.3312, allocations: 53.8 kB / 0.4918 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.3314, allocations: 120.5 kB / 0.492 GB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.152e-05/0.3315, allocations: 46.58 kB / 0.492 GB, free: 8.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.3317, allocations: 166.5 kB / 0.4922 GB, free: 8.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3317, allocations: 0 / 0.4922 GB, free: 8.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001036/0.3327, allocations: 260 kB / 0.4924 GB, free: 8.043 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 (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 {(3,4,77.8%), (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.00403/0.3368, allocations: 2.645 MB / 0.495 GB, free: 5.363 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.007316/0.3441, allocations: 2.057 MB / 0.497 GB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3441, allocations: 256 / 0.497 GB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005853/0.35, allocations: 1.641 MB / 0.4986 GB, free: 1.562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.3511, allocations: 191.4 kB / 0.4988 GB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.3615, allocations: 7.164 MB / 0.5058 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.362, allocations: 0.9377 MB / 0.5067 GB, free: 8.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007193/0.3627, allocations: 117.5 kB / 0.5068 GB, free: 8.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.3631, allocations: 255.3 kB / 0.507 GB, free: 8.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3631, allocations: 4 kB / 0.5071 GB, free: 8.586 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6791/1.042, allocations: 18.15 MB / 0.5248 GB, free: 6.73 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/1.042, allocations: 251.1 kB / 0.525 GB, free: 6.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.452/3.494, allocations: 3.938 kB / 0.525 GB, free: 6.461 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/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)