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/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006263/0.006263, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001573/0.001573, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2092/0.2092, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 69.98 kB / 436.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1007, allocations: 54.97 MB / 491.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004293/0.105, allocations: 4.025 MB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.1072, allocations: 1.274 MB / 496.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.1074, allocations: 8 kB / 496.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.1076, allocations: 79.14 kB / 497 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004381/0.108, allocations: 222 kB / 497.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005747/0.1086, allocations: 291.5 kB / 497.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009415/0.1096, allocations: 1.092 MB / 498.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005195/0.1101, allocations: 440.4 kB / 499 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003956/0.1105, allocations: 402.9 kB / 499.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004477/0.1109, allocations: 418.4 kB / 499.8 MB, free: 9.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.1111, allocations: 96 kB / 499.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.1112, allocations: 92 kB / 500 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1114, allocations: 199.5 kB / 0.4884 GB, free: 9.062 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.1118, allocations: 422.3 kB / 0.4888 GB, free: 8.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008041/0.1126, allocations: 0.9659 MB / 0.4898 GB, free: 7.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1126, allocations: 0 / 0.4898 GB, free: 7.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1126, allocations: 0 / 0.4898 GB, free: 7.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1126, allocations: 4 kB / 0.4898 GB, free: 7.676 MB / 366.1 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.00197/0.1146, allocations: 0.9836 MB / 0.4907 GB, free: 6.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1146, allocations: 8.031 kB / 0.4907 GB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.1148, allocations: 135.2 kB / 0.4909 GB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.1149, allocations: 72.09 kB / 0.4909 GB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.1151, allocations: 243.5 kB / 0.4912 GB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.446e-05/0.1152, allocations: 62.38 kB / 0.4912 GB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1153, allocations: 88.03 kB / 0.4913 GB, free: 6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1164, allocations: 0.6907 MB / 0.492 GB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.1164, allocations: 0 / 0.492 GB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.687e-05/0.1165, allocations: 32 kB / 0.492 GB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1165, allocations: 20 kB / 0.492 GB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.1177, allocations: 0.7027 MB / 0.4927 GB, free: 4.551 MB / 366.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: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003379/0.1211, allocations: 2.292 MB / 0.495 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1222, allocations: 0.6758 MB / 0.4956 GB, free: 1.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005122/0.1227, allocations: 327.8 kB / 0.4959 GB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.109e-05/0.1228, allocations: 16.98 kB / 0.496 GB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.1228, allocations: 43.56 kB / 0.496 GB, free: 1.051 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 3.707e-06/0.1228, allocations: 3.984 kB / 0.496 GB, free: 1.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.007237/0.1301, allocations: 3.104 MB / 0.499 GB, free: 13.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.1301, allocations: 68.34 kB / 0.4991 GB, free: 13.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.1303, allocations: 207.8 kB / 0.4993 GB, free: 13.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.1304, allocations: 45.7 kB / 0.4993 GB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1305, allocations: 232.9 kB / 0.4996 GB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/0.1308, allocations: 374.4 kB / 0.4999 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.131, allocations: 150.7 kB / 0.5001 GB, free: 12.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1312, allocations: 354.8 kB / 0.5004 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.1317, allocations: 297.9 kB / 0.5007 GB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005603/0.1323, allocations: 387.1 kB / 0.5011 GB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.143, allocations: 2.258 MB / 0.5033 GB, free: 9.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.143, allocations: 0 / 0.5033 GB, free: 9.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002157/0.1452, allocations: 1.035 MB / 0.5043 GB, free: 8.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1452, allocations: 8 kB / 0.5043 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-06/0.1452, allocations: 0 / 0.5043 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009627/0.1462, allocations: 219.2 kB / 0.5045 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005356/0.1516, allocations: 0.7531 MB / 0.5052 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/0.1633, allocations: 14.94 MB / 0.5198 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.1639, allocations: 31.97 kB / 0.5198 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.1641, allocations: 36.2 kB / 0.5199 GB, free: 6.926 MB / 398.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 0.0 start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 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 (112): * Single equations (assignments): 102 * 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 {(2,5,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000457/0.1645, allocations: 236.4 kB / 0.5201 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.1647, allocations: 47.44 kB / 0.5201 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002647/0.1673, allocations: 1.25 MB / 0.5214 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1673, allocations: 12 kB / 0.5214 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.1674, allocations: 4 kB / 0.5214 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.1674, allocations: 7.969 kB / 0.5214 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004104/0.1715, allocations: 2.377 MB / 0.5237 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.1715, allocations: 8 kB / 0.5237 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004944/0.1765, allocations: 0.7031 MB / 0.5244 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001876/0.1783, allocations: 362.9 kB / 0.5248 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.1785, allocations: 28.06 kB / 0.5248 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/0.1912, allocations: 15.11 MB / 0.5395 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/0.1912, allocations: 16 kB / 0.5395 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.1948, allocations: 1.823 MB / 0.5413 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.195, allocations: 128.6 kB / 0.5414 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1951, allocations: 28.25 kB / 0.5415 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006169/0.1957, allocations: 35.98 kB / 0.5415 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/0.196, allocations: 116.6 kB / 0.5416 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.941e-05/0.1961, allocations: 35.98 kB / 0.5417 GB, free: 14.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.1962, allocations: 155 kB / 0.5418 GB, free: 14.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1962, allocations: 0 / 0.5418 GB, free: 14.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001022/0.1973, allocations: 232 kB / 0.542 GB, free: 14.49 MB / 430.1 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 (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 {(2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003681/0.2009, allocations: 2.399 MB / 0.5444 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00714/0.2081, allocations: 1.905 MB / 0.5462 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.2081, allocations: 4 kB / 0.5462 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005903/0.214, allocations: 1.517 MB / 0.5477 GB, free: 8.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.2153, allocations: 182.4 kB / 0.5479 GB, free: 8.254 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.2253, allocations: 6.033 MB / 0.5538 GB, free: 1.906 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005721/0.226, allocations: 0.9131 MB / 0.5547 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.2265, allocations: 89.02 kB / 0.5548 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003624/0.2268, allocations: 219.4 kB / 0.555 GB, free: 0.668 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2269, allocations: 0 / 0.555 GB, free: 0.668 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04986/0.2767, allocations: 16.92 MB / 0.5715 GB, free: 15.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.51, allocations: 11.98 kB / 0.5715 GB, free: 15.96 MB / 462.1 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/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)