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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001288/0.001288, allocations: 191 kB / 17.29 MB, free: 5.516 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09015/0.09015, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 63.69 kB / 382.2 MB, free: 40.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1104, allocations: 54.96 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005162/0.1156, allocations: 4.234 MB / 441.4 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.1179, allocations: 1.337 MB / 442.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.1181, allocations: 7.938 kB / 442.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.1184, allocations: 91.06 kB / 442.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000423/0.1188, allocations: 233.9 kB / 443.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.1194, allocations: 303.5 kB / 443.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.1205, allocations: 1.165 MB / 444.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000733/0.1212, allocations: 0.5515 MB / 445.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005013/0.1217, allocations: 470.8 kB / 445.6 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005927/0.1223, allocations: 0.5099 MB / 446.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.1225, allocations: 112 kB / 446.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.1226, allocations: 108 kB / 446.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.1228, allocations: 231.3 kB / 446.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004166/0.1232, allocations: 474.1 kB / 447 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009346/0.1242, allocations: 1.11 MB / 448.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1242, allocations: 0 / 448.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1242, allocations: 4 kB / 448.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1242, allocations: 0 / 448.1 MB, free: 1.305 MB / 318.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.002791/0.127, allocations: 1.073 MB / 449.2 MB, free: 184 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1271, allocations: 12.03 kB / 449.2 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.1273, allocations: 80 kB / 449.3 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.1276, allocations: 249.9 kB / 449.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.397e-05/0.1277, allocations: 70.12 kB / 449.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.1278, allocations: 88 kB / 449.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1291, allocations: 0.8076 MB / 450.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1291, allocations: 0 / 450.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.609e-05/0.1292, allocations: 39.94 kB / 450.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.1292, allocations: 24 kB / 450.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.1306, allocations: 0.8237 MB / 451.4 MB, free: 13.95 MB / 334.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.004387/0.135, allocations: 2.595 MB / 454 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/0.137, allocations: 0.9974 MB / 454.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006448/0.1377, allocations: 425.6 kB / 455.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.893e-05/0.1378, allocations: 20.98 kB / 455.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.1378, allocations: 47.56 kB / 455.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005249/0.1383, allocations: 119.2 kB / 455.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 5.19e-06/0.1384, allocations: 4 kB / 455.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=124): time 0.008577/0.147, allocations: 3.529 MB / 459.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.147, allocations: 64.41 kB / 459.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.1473, allocations: 215.9 kB / 459.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/0.1474, allocations: 49.64 kB / 459.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.1476, allocations: 241.1 kB / 459.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.1479, allocations: 421.8 kB / 460.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000284/0.1482, allocations: 178.9 kB / 460.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1483, allocations: 362.8 kB / 460.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006089/0.1489, allocations: 358.5 kB / 460.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.1498, allocations: 466.5 kB / 461.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01876/0.1686, allocations: 3.473 MB / 464.9 MB, free: 84 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1687, allocations: 3.938 kB / 464.9 MB, free: 80 kB / 334.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002555/0.1712, allocations: 1.203 MB / 466.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.1713, allocations: 12 kB / 466.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1713, allocations: 0 / 466.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.1723, allocations: 211.2 kB / 466.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00629/0.1786, allocations: 0.8193 MB / 467.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.1908, allocations: 14.94 MB / 482 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008071/0.1917, allocations: 36.02 kB / 482.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.085e-05/0.1918, allocations: 35.98 kB / 482.1 MB, free: 13.38 MB / 366.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 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 = 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 (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 {(2,5,100.0%), (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.0004747/0.1923, allocations: 233.4 kB / 482.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1924, allocations: 47.44 kB / 482.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/0.1956, allocations: 1.488 MB / 483.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1956, allocations: 12 kB / 483.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.1956, allocations: 8 kB / 483.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.1956, allocations: 3.984 kB / 483.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004285/0.1999, allocations: 2.586 MB / 486.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.1999, allocations: 8 kB / 486.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005582/0.2055, allocations: 0.7533 MB / 487.2 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/0.2075, allocations: 370.9 kB / 487.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.26e-05/0.2076, allocations: 40.06 kB / 487.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/0.2197, allocations: 15.18 MB / 0.491 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.2197, allocations: 12.06 kB / 0.4911 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003668/0.2234, allocations: 2.055 MB / 0.4931 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.2235, allocations: 140.4 kB / 0.4932 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.2236, allocations: 28 kB / 0.4932 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006691/0.2243, allocations: 40.17 kB / 0.4933 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.2246, allocations: 120.7 kB / 0.4934 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/0.2247, allocations: 47.98 kB / 0.4934 GB, free: 4.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001572/0.2248, allocations: 164 kB / 0.4936 GB, free: 4.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2248, allocations: 0 / 0.4936 GB, free: 4.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009894/0.2258, allocations: 260 kB / 0.4938 GB, free: 4.07 MB / 382.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 {(2,5,100.0%), (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.0002028/0.226, allocations: 147 kB / 0.494 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007268/0.2333, allocations: 2.049 MB / 0.496 GB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.2333, allocations: 4 kB / 0.496 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00613/0.2395, allocations: 1.642 MB / 0.4976 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.2406, allocations: 198.2 kB / 0.4978 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.2437, allocations: 1.863 MB / 0.4996 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.2443, allocations: 0.9299 MB / 0.5005 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006287/0.2449, allocations: 113.5 kB / 0.5006 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.2452, allocations: 71.41 kB / 0.5007 GB, free: 12.82 MB / 398.1 MB Notification: Performance of SimCode: time 1.183e-06/0.2452, allocations: 3.938 kB / 0.5007 GB, free: 12.82 MB / 398.1 MB Notification: Performance of Templates: time 0.2607/0.5059, allocations: 13.64 MB / 0.514 GB, free: 79.93 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)