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.004859/0.004859, allocations: 101 kB / 15.87 MB, free: 6.324 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.001202/0.001203, allocations: 193.2 kB / 16.79 MB, free: 6.254 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.308/1.308, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1921/0.1921, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 380.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2506, allocations: 54.95 MB / 435.7 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003827/0.2545, allocations: 4.04 MB / 439.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.256, allocations: 1.285 MB / 441 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.2562, allocations: 5.875 kB / 441 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.2563, allocations: 53.48 kB / 441.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.2567, allocations: 195.1 kB / 441.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000402/0.2571, allocations: 255.3 kB / 441.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005846/0.2577, allocations: 1.033 MB / 442.6 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005064/0.2582, allocations: 357.8 kB / 442.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003566/0.2586, allocations: 337.9 kB / 443.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.259, allocations: 398.2 kB / 443.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.219e-05/0.2591, allocations: 44.94 kB / 443.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.2592, allocations: 45.34 kB / 443.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.2594, allocations: 146 kB / 443.9 MB, free: 34.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003603/0.2597, allocations: 377.6 kB / 444.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005341/0.2603, allocations: 0.7152 MB / 444.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2603, allocations: 0 / 444.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.2603, allocations: 0 / 444.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.2603, allocations: 3.938 kB / 445 MB, free: 33.97 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001978/0.2623, allocations: 0.9869 MB / 445.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.2623, allocations: 17.66 kB / 446 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.2625, allocations: 73.66 kB / 446 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.2627, allocations: 240 kB / 446.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.2628, allocations: 68.38 kB / 446.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.2629, allocations: 82.06 kB / 446.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.2639, allocations: 0.686 MB / 447.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2639, allocations: 4 kB / 447.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-05/0.264, allocations: 36.59 kB / 447.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.264, allocations: 17.88 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009942/0.265, allocations: 0.7018 MB / 447.9 MB, free: 32.4 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: 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.002844/0.2679, allocations: 2.286 MB / 450.1 MB, free: 30.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.2688, allocations: 0.679 MB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/0.2692, allocations: 336.1 kB / 451.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.113e-05/0.2693, allocations: 16.47 kB / 451.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.2693, allocations: 38.38 kB / 451.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.124e-06/0.2693, allocations: 0 / 451.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006598/0.276, allocations: 3.101 MB / 454.3 MB, free: 28.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.276, allocations: 64.34 kB / 454.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.2762, allocations: 211.2 kB / 454.6 MB, free: 28.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/0.2763, allocations: 45.3 kB / 454.6 MB, free: 28.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.301e-05/0.2764, allocations: 227.4 kB / 454.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.2766, allocations: 382.9 kB / 455.2 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.2768, allocations: 147.9 kB / 455.4 MB, free: 28.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.323e-05/0.2769, allocations: 355.2 kB / 455.7 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/0.2774, allocations: 297.1 kB / 456 MB, free: 27.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.278, allocations: 392 kB / 456.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.289, allocations: 2.253 MB / 458.6 MB, free: 26.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.2891, allocations: 3.938 kB / 458.6 MB, free: 26.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002165/0.2912, allocations: 1.043 MB / 459.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.2913, allocations: 6.062 kB / 459.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2913, allocations: 0 / 459.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009874/0.2923, allocations: 221.1 kB / 459.9 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00586/0.2982, allocations: 0.7504 MB / 460.6 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00888/0.3071, allocations: 13.86 MB / 474.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007712/0.3079, allocations: 54.44 kB / 474.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.617e-05/0.3079, allocations: 29.7 kB / 474.6 MB, free: 12.07 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = max(0.0, 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 = 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 (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.0004603/0.3084, allocations: 268.7 kB / 474.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3085, allocations: 48.67 kB / 474.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.3113, allocations: 1.246 MB / 476.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.3113, allocations: 11.19 kB / 476.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3113, allocations: 1.219 kB / 476.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.3113, allocations: 6.188 kB / 476.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003916/0.3152, allocations: 2.379 MB / 478.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.3153, allocations: 7.672 kB / 478.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005256/0.3205, allocations: 0.7031 MB / 479.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001914/0.3225, allocations: 356.2 kB / 479.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.259e-05/0.3226, allocations: 28.64 kB / 479.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009759/0.3323, allocations: 14.03 MB / 493.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/0.3324, allocations: 16.7 kB / 493.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/0.336, allocations: 1.82 MB / 495.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.3362, allocations: 133.4 kB / 495.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3363, allocations: 30.59 kB / 495.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.337, allocations: 43.59 kB / 495.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002999/0.3373, allocations: 117.8 kB / 495.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/0.3373, allocations: 38.42 kB / 495.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001733/0.3375, allocations: 161.6 kB / 496 MB, free: 10.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3375, allocations: 0 / 496 MB, free: 10.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3387, allocations: 237.8 kB / 496.2 MB, free: 10.3 MB / 366.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.0001977/0.3389, allocations: 139.4 kB / 496.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007252/0.3462, allocations: 1.862 MB / 498.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/0.3462, allocations: 1.406 kB / 498.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006185/0.3524, allocations: 1.49 MB / 499.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.3536, allocations: 169.7 kB / 499.9 MB, free: 8.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.357, allocations: 2.115 MB / 0.4903 GB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.3576, allocations: 0.909 MB / 0.4911 GB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.3579, allocations: 53.36 kB / 0.4912 GB, free: 6.281 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3579, allocations: 3.938 kB / 0.4912 GB, free: 6.277 MB / 366.1 MB Notification: Performance of Templates: time 0.03146/0.3893, allocations: 33.04 MB / 0.5235 GB, free: 6.012 MB / 398.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)