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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00554/0.00554, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001243/0.001243, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09003/0.09003, allocations: 22.32 MB / 312.8 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 67.89 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1213, allocations: 54.94 MB / 492 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005207/0.1266, allocations: 4.023 MB / 496 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.1291, allocations: 1.278 MB / 497.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.1295, allocations: 4 kB / 497.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.1298, allocations: 87.06 kB / 497.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000658/0.1305, allocations: 214.1 kB / 497.6 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.1312, allocations: 291.5 kB / 497.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.1326, allocations: 1.095 MB / 499 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006774/0.1333, allocations: 436.4 kB / 499.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006933/0.134, allocations: 406.9 kB / 499.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008151/0.1348, allocations: 414.5 kB / 0.4885 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.135, allocations: 100 kB / 0.4886 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.1353, allocations: 92 kB / 0.4887 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.1355, allocations: 199.4 kB / 0.4889 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000781/0.1363, allocations: 422.3 kB / 0.4893 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.1374, allocations: 0.9617 MB / 0.4902 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1374, allocations: 3.938 kB / 0.4902 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1374, allocations: 0 / 0.4902 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.901e-05/0.1374, allocations: 0 / 0.4902 GB, free: 10.75 MB / 382.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.002789/0.1402, allocations: 0.9914 MB / 0.4912 GB, free: 9.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1403, allocations: 15.97 kB / 0.4912 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.1405, allocations: 72.09 kB / 0.4912 GB, free: 9.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.1408, allocations: 246.1 kB / 0.4915 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.1409, allocations: 62.38 kB / 0.4915 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.1411, allocations: 76.38 kB / 0.4916 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1424, allocations: 0.6945 MB / 0.4923 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.1424, allocations: 0 / 0.4923 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.898e-05/0.1425, allocations: 39.94 kB / 0.4923 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.1425, allocations: 23.98 kB / 0.4924 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.144, allocations: 0.691 MB / 0.493 GB, free: 7.754 MB / 382.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.004209/0.1482, allocations: 2.292 MB / 0.4953 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.1495, allocations: 0.6763 MB / 0.4959 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000635/0.1501, allocations: 331.7 kB / 0.4962 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.043e-05/0.1502, allocations: 20.97 kB / 0.4963 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.1503, allocations: 43.56 kB / 0.4963 GB, free: 4.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.485e-06/0.1503, allocations: 0 / 0.4963 GB, free: 4.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.008274/0.1586, allocations: 3.103 MB / 0.4993 GB, free: 1.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.1586, allocations: 64.41 kB / 0.4994 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.1589, allocations: 203.8 kB / 0.4996 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.159, allocations: 45.7 kB / 0.4996 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.1592, allocations: 232.9 kB / 0.4999 GB, free: 456 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005793/0.1598, allocations: 382.4 kB / 0.5002 GB, free: 68 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2427/0.4025, allocations: 142.1 kB / 0.5004 GB, free: 22.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4026, allocations: 353.2 kB / 0.5007 GB, free: 22.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.4032, allocations: 301.4 kB / 0.501 GB, free: 22.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005687/0.4038, allocations: 392.2 kB / 0.5014 GB, free: 22.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.4143, allocations: 2.25 MB / 0.5036 GB, free: 21.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.4143, allocations: 0 / 0.5036 GB, free: 21.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002102/0.4165, allocations: 1.044 MB / 0.5046 GB, free: 21.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4165, allocations: 6.719 kB / 0.5046 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4165, allocations: 0.8438 kB / 0.5046 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009292/0.4174, allocations: 213.9 kB / 0.5048 GB, free: 21.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00566/0.4231, allocations: 0.7494 MB / 0.5055 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009427/0.4326, allocations: 14.94 MB / 0.5201 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006435/0.4332, allocations: 27.05 kB / 0.5201 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.4334, allocations: 37.08 kB / 0.5202 GB, free: 7.625 MB / 382.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.0005016/0.4339, allocations: 224.4 kB / 0.5204 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.4341, allocations: 52.94 kB / 0.5204 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.4369, allocations: 1.259 MB / 0.5217 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.4369, allocations: 11.81 kB / 0.5217 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.4369, allocations: 2.625 kB / 0.5217 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.636e-05/0.4369, allocations: 9.234 kB / 0.5217 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00428/0.4412, allocations: 2.37 MB / 0.524 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.4413, allocations: 7.25 kB / 0.524 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004961/0.4462, allocations: 0.7044 MB / 0.5247 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.4481, allocations: 356.8 kB / 0.525 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.4483, allocations: 35.78 kB / 0.5251 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.46, allocations: 15.11 MB / 0.5398 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/0.4601, allocations: 12.53 kB / 0.5398 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.464, allocations: 1.823 MB / 0.5416 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.4642, allocations: 134.2 kB / 0.5417 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.4644, allocations: 33.86 kB / 0.5418 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006728/0.4651, allocations: 33.73 kB / 0.5418 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.4654, allocations: 114.9 kB / 0.5419 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.746e-05/0.4656, allocations: 40.22 kB / 0.542 GB, free: 7.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.4658, allocations: 150.9 kB / 0.5421 GB, free: 6.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.4658, allocations: 0 / 0.5421 GB, free: 6.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001174/0.4669, allocations: 235.5 kB / 0.5423 GB, free: 6.906 MB / 398.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.0002373/0.4672, allocations: 146.7 kB / 0.5425 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007469/0.4747, allocations: 1.896 MB / 0.5443 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.427e-06/0.4747, allocations: 1.156 kB / 0.5443 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006263/0.481, allocations: 1.52 MB / 0.5458 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.4821, allocations: 176.8 kB / 0.546 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.4855, allocations: 1.749 MB / 0.5477 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.4861, allocations: 0.906 MB / 0.5486 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005203/0.4867, allocations: 90.75 kB / 0.5486 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.4869, allocations: 53.42 kB / 0.5487 GB, free: 3.332 MB / 398.1 MB Notification: Performance of SimCode: time 5.1e-07/0.4869, allocations: 0 / 0.5487 GB, free: 3.332 MB / 398.1 MB Notification: Performance of Templates: time 0.02069/0.5076, allocations: 11.78 MB / 0.5602 GB, free: 11.23 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)