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.001498/0.001498, allocations: 112.2 kB / 16.42 MB, free: 6.453 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.001742/0.001742, allocations: 185.7 kB / 17.35 MB, free: 5.734 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09265/0.09265, allocations: 22.33 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 55.91 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08798, allocations: 54.95 MB / 492.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004367/0.09238, allocations: 4.015 MB / 496.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.09403, allocations: 1.282 MB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.09418, allocations: 4 kB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.09433, allocations: 79.14 kB / 498.1 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003495/0.09468, allocations: 218 kB / 498.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.09516, allocations: 291.5 kB / 498.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008425/0.09601, allocations: 1.103 MB / 499.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004699/0.09649, allocations: 436.4 kB / 0.4884 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.09686, allocations: 398.9 kB / 0.4888 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.09732, allocations: 422.4 kB / 0.4892 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.09744, allocations: 103.9 kB / 0.4893 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.09757, allocations: 92 kB / 0.4893 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.09773, allocations: 191.4 kB / 0.4895 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.0981, allocations: 426.3 kB / 0.4899 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007907/0.09889, allocations: 0.9652 MB / 0.4909 GB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.09891, allocations: 7.938 kB / 0.4909 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09891, allocations: 0 / 0.4909 GB, free: 10.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.09893, allocations: 0 / 0.4909 GB, free: 10.73 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.001903/0.1008, allocations: 1.002 MB / 0.4919 GB, free: 9.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1009, allocations: 8.031 kB / 0.4919 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.101, allocations: 80.47 kB / 0.4919 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.1012, allocations: 242.2 kB / 0.4922 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.1013, allocations: 62.38 kB / 0.4922 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.1014, allocations: 80.38 kB / 0.4923 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.1025, allocations: 0.6945 MB / 0.493 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.1025, allocations: 0 / 0.493 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.864e-05/0.1026, allocations: 36 kB / 0.493 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1026, allocations: 16 kB / 0.493 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1038, allocations: 0.6949 MB / 0.4937 GB, free: 7.738 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.003292/0.1071, allocations: 2.313 MB / 0.496 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.1082, allocations: 0.6648 MB / 0.4966 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005139/0.1087, allocations: 339.6 kB / 0.4969 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.592e-05/0.1088, allocations: 16.98 kB / 0.497 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.1088, allocations: 43.56 kB / 0.497 GB, free: 4.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.234e-06/0.1088, allocations: 0 / 0.497 GB, free: 4.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007383/0.1162, allocations: 3.108 MB / 0.5 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1163, allocations: 64.41 kB / 0.5001 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.1165, allocations: 199.9 kB / 0.5003 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.1165, allocations: 45.7 kB / 0.5003 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1167, allocations: 241.4 kB / 0.5006 GB, free: 420 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.1169, allocations: 400.5 kB / 0.5009 GB, free: 16 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1786/0.2955, allocations: 146.5 kB / 0.5011 GB, free: 22.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.818e-05/0.2956, allocations: 361.7 kB / 0.5014 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004956/0.2961, allocations: 300.4 kB / 0.5017 GB, free: 21.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005037/0.2966, allocations: 383.7 kB / 0.5021 GB, free: 21.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.3074, allocations: 2.254 MB / 0.5043 GB, free: 21.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3074, allocations: 2.656 kB / 0.5043 GB, free: 21.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002079/0.3095, allocations: 1.044 MB / 0.5053 GB, free: 21.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3096, allocations: 4 kB / 0.5053 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3096, allocations: 2.344 kB / 0.5053 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009833/0.3106, allocations: 215.6 kB / 0.5055 GB, free: 21.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005676/0.3162, allocations: 0.755 MB / 0.5063 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008349/0.3246, allocations: 14.94 MB / 0.5209 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/0.3252, allocations: 27.19 kB / 0.5209 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.3252, allocations: 33.09 kB / 0.5209 GB, free: 7.504 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.0003375/0.3256, allocations: 221.5 kB / 0.5211 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.391e-05/0.3257, allocations: 56.11 kB / 0.5212 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002696/0.3284, allocations: 1.25 MB / 0.5224 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.3284, allocations: 9.141 kB / 0.5224 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3284, allocations: 1.484 kB / 0.5224 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.83e-05/0.3285, allocations: 124.9 kB / 0.5225 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.264e-05/0.3286, allocations: 21.53 kB / 0.5225 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.329, allocations: 27.45 kB / 0.5226 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.3292, allocations: 79.25 kB / 0.5226 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007107/0.3363, allocations: 1.746 MB / 0.5243 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00198/0.3383, allocations: 1.464 MB / 0.5258 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005927/0.3389, allocations: 393.5 kB / 0.5262 GB, free: 6.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.339, allocations: 156.4 kB / 0.5263 GB, free: 6.438 MB / 382.1 MB Notification: Performance of Backend: time 6.21e-07/0.3391, allocations: 0 / 0.5263 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006741/0.3458, allocations: 1.656 MB / 0.5279 GB, free: 5.875 MB / 382.1 MB Notification: Performance of SimCode: time 0.001869/0.3477, allocations: 1.911 MB / 0.5298 GB, free: 4.691 MB / 382.1 MB Notification: Performance of Templates: time 0.01531/0.363, allocations: 10.85 MB / 0.5404 GB, free: 0.6641 MB / 382.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)