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.001206/0.001206, allocations: 100.1 kB / 15.88 MB, free: 8 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 197.8 kB / 16.79 MB, free: 6.828 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.318/1.318, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.204/0.204, allocations: 22.36 MB / 313 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 59.91 kB / 380.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.27, allocations: 54.95 MB / 435.7 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003611/0.2736, allocations: 4.265 MB / 440 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2752, allocations: 1.332 MB / 441.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.2753, allocations: 2.438 kB / 441.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.2755, allocations: 59.36 kB / 441.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003382/0.2758, allocations: 209.4 kB / 441.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.2763, allocations: 269.3 kB / 441.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005982/0.2769, allocations: 1.1 MB / 442.9 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.2773, allocations: 483.8 kB / 443.4 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003318/0.2777, allocations: 402.5 kB / 443.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003981/0.2781, allocations: 492.9 kB / 444.3 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.2782, allocations: 58.62 kB / 444.3 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2783, allocations: 61.12 kB / 444.4 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.2784, allocations: 174.4 kB / 444.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.2787, allocations: 434.9 kB / 445 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.2792, allocations: 0.8266 MB / 445.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2792, allocations: 0 / 445.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2792, allocations: 0 / 445.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.2792, allocations: 0 / 445.8 MB, free: 33.62 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.002163/0.2814, allocations: 1.076 MB / 446.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2814, allocations: 13.47 kB / 446.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.2816, allocations: 79.91 kB / 447 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.2817, allocations: 251.9 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.771e-05/0.2818, allocations: 70.59 kB / 447.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.2819, allocations: 88.78 kB / 447.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.2831, allocations: 0.8065 MB / 448.2 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2831, allocations: 3.938 kB / 448.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.882e-05/0.2832, allocations: 34.41 kB / 448.2 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.2832, allocations: 21.59 kB / 448.3 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.2845, allocations: 0.8242 MB / 449.1 MB, free: 31.93 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.003461/0.2879, allocations: 2.592 MB / 451.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.2898, allocations: 1.002 MB / 452.7 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005515/0.2904, allocations: 420 kB / 453.1 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.695e-05/0.2904, allocations: 15.7 kB / 453.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.2905, allocations: 45.56 kB / 453.1 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004549/0.2909, allocations: 125.6 kB / 453.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.435e-06/0.2909, allocations: 3.938 kB / 453.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007775/0.2987, allocations: 3.532 MB / 456.8 MB, free: 27.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.2988, allocations: 67.02 kB / 456.9 MB, free: 27.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.2989, allocations: 220.8 kB / 457.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.138e-05/0.299, allocations: 46.8 kB / 457.1 MB, free: 27.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.592e-05/0.2991, allocations: 232.2 kB / 457.4 MB, free: 27.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.2993, allocations: 429 kB / 457.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.2996, allocations: 174.8 kB / 457.9 MB, free: 27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.2997, allocations: 367.7 kB / 458.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.3003, allocations: 357.2 kB / 458.6 MB, free: 26.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006403/0.3009, allocations: 455.1 kB / 459.1 MB, free: 26.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01915/0.3201, allocations: 3.479 MB / 462.6 MB, free: 25.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3201, allocations: 3.938 kB / 462.6 MB, free: 25.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002519/0.3226, allocations: 1.21 MB / 463.8 MB, free: 24.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3227, allocations: 7.281 kB / 463.8 MB, free: 24.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3227, allocations: 1.156 kB / 463.8 MB, free: 24.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3237, allocations: 212.5 kB / 464 MB, free: 24.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006478/0.3302, allocations: 0.8132 MB / 464.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008536/0.3388, allocations: 13.88 MB / 478.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008461/0.3396, allocations: 47.39 kB / 478.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.3397, allocations: 46.08 kB / 478.8 MB, free: 10.76 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 {(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.0004646/0.3402, allocations: 261.5 kB / 479 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.3403, allocations: 55.5 kB / 479.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003327/0.3437, allocations: 1.484 MB / 480.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.3437, allocations: 16.47 kB / 480.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3437, allocations: 2.25 kB / 480.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.3437, allocations: 7.984 kB / 480.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004259/0.348, allocations: 2.583 MB / 483.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.348, allocations: 9.688 kB / 483.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005588/0.3536, allocations: 0.7529 MB / 483.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.3556, allocations: 372.4 kB / 484.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-05/0.3557, allocations: 39.02 kB / 484.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.3658, allocations: 14.08 MB / 498.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.3658, allocations: 7.219 kB / 498.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/0.3698, allocations: 2.071 MB / 0.4888 GB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.37, allocations: 135.2 kB / 0.4889 GB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.3701, allocations: 34.97 kB / 0.4889 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007541/0.3709, allocations: 53.45 kB / 0.489 GB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/0.3712, allocations: 121.6 kB / 0.4891 GB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.3713, allocations: 41.77 kB / 0.4892 GB, free: 8.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.3715, allocations: 168.5 kB / 0.4893 GB, free: 8.707 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3715, allocations: 0 / 0.4893 GB, free: 8.707 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001157/0.3726, allocations: 268.3 kB / 0.4896 GB, free: 8.664 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 {(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.0002055/0.3728, allocations: 151.4 kB / 0.4897 GB, free: 8.535 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007262/0.3801, allocations: 2.012 MB / 0.4917 GB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3801, allocations: 0 / 0.4917 GB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006072/0.3862, allocations: 1.6 MB / 0.4932 GB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.3874, allocations: 185.5 kB / 0.4934 GB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/0.3906, allocations: 2.256 MB / 0.4956 GB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.3911, allocations: 0.9377 MB / 0.4965 GB, free: 1.664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/0.3915, allocations: 79.34 kB / 0.4966 GB, free: 1.586 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3915, allocations: 0 / 0.4966 GB, free: 1.586 MB / 366.1 MB Notification: Performance of Templates: time 0.0344/0.4259, allocations: 36.59 MB / 0.5323 GB, free: 12.95 MB / 414.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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)