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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008537/0.0008537, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005049/0.005049, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.179/1.179, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1678/0.1678, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002941, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2129, allocations: 55.98 MB / 438.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.002235/0.2151, allocations: 3.641 MB / 442.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2162, allocations: 1.274 MB / 443.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2164, allocations: 2.688 kB / 443.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.728e-05/0.2164, allocations: 57.64 kB / 443.7 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002711/0.2167, allocations: 189 kB / 443.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.217, allocations: 259.3 kB / 444.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004989/0.2176, allocations: 1.019 MB / 445.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.2178, allocations: 354.9 kB / 445.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.2181, allocations: 339.5 kB / 445.8 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.2184, allocations: 384.4 kB / 446.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.2184, allocations: 50.89 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.964e-05/0.2185, allocations: 43 kB / 446.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.074e-05/0.2186, allocations: 139.9 kB / 446.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.2188, allocations: 393.4 kB / 446.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.2193, allocations: 0.8946 MB / 447.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2193, allocations: 3.906 kB / 447.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2193, allocations: 3.422 kB / 447.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2193, allocations: 0 / 447.7 MB, free: 33.89 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.001381/0.2207, allocations: 0.8615 MB / 448.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.2207, allocations: 12.5 kB / 448.6 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.928e-05/0.2208, allocations: 131.8 kB / 448.7 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.036e-05/0.2209, allocations: 75.08 kB / 448.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.221, allocations: 245.6 kB / 449 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.2211, allocations: 62.25 kB / 449.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.651e-05/0.2212, allocations: 80.5 kB / 449.1 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008955/0.2221, allocations: 0.6906 MB / 449.8 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.2221, allocations: 3.938 kB / 449.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.2222, allocations: 40.69 kB / 449.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.2222, allocations: 17.44 kB / 449.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009072/0.2231, allocations: 0.6942 MB / 450.6 MB, free: 32.3 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.002367/0.2255, allocations: 2.308 MB / 452.9 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/0.2263, allocations: 0.6881 MB / 453.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.2267, allocations: 329.7 kB / 453.9 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.76e-05/0.2268, allocations: 14.95 kB / 453.9 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.2268, allocations: 42.84 kB / 454 MB, free: 30.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 1.933e-06/0.2268, allocations: 4 kB / 454 MB, free: 30.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006052/0.2328, allocations: 3.115 MB / 457.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.2329, allocations: 63.34 kB / 457.1 MB, free: 28.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.233, allocations: 211.9 kB / 457.3 MB, free: 28.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.2331, allocations: 44.8 kB / 457.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.2332, allocations: 227.9 kB / 457.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.2333, allocations: 388 kB / 458 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.874e-05/0.2334, allocations: 82.84 kB / 458.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.29e-05/0.2335, allocations: 361.5 kB / 458.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.2339, allocations: 294.3 kB / 458.7 MB, free: 27.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004788/0.2344, allocations: 388.3 kB / 459.1 MB, free: 27.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.2446, allocations: 2.304 MB / 461.4 MB, free: 26.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2446, allocations: 1.406 kB / 461.4 MB, free: 26.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00198/0.2466, allocations: 1.048 MB / 462.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.2466, allocations: 6.562 kB / 462.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2466, allocations: 1.219 kB / 462.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.2476, allocations: 228.4 kB / 462.7 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005142/0.2528, allocations: 0.7527 MB / 463.4 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/0.2602, allocations: 13.91 MB / 477.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.2607, allocations: 50.16 kB / 477.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-05/0.2608, allocations: 35.06 kB / 477.4 MB, free: 11.98 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 {(3,4,77.8%), (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.0003157/0.2611, allocations: 244 kB / 477.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.298e-05/0.2612, allocations: 53.81 kB / 477.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.2637, allocations: 1.258 MB / 479 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.2637, allocations: 10.47 kB / 479 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2638, allocations: 6.188 kB / 479 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.2638, allocations: 5.484 kB / 479 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.2673, allocations: 2.384 MB / 481.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.2673, allocations: 15 kB / 481.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004569/0.2719, allocations: 0.7024 MB / 482.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/0.2739, allocations: 379.8 kB / 482.5 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.2739, allocations: 28.19 kB / 482.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008638/0.2826, allocations: 14.07 MB / 496.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.2826, allocations: 15.19 kB / 496.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.2856, allocations: 1.831 MB / 498.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.2858, allocations: 130.2 kB / 498.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.246e-05/0.2859, allocations: 26.33 kB / 498.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.2865, allocations: 46.75 kB / 498.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.2867, allocations: 119.3 kB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.296e-05/0.2868, allocations: 39.02 kB / 498.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.2869, allocations: 155.1 kB / 498.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2869, allocations: 0 / 498.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008743/0.2878, allocations: 234.8 kB / 499.1 MB, free: 10.2 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 {(3,4,77.8%), (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.003377/0.2912, allocations: 2.408 MB / 0.4898 GB, free: 8.562 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.V.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.006362/0.2975, allocations: 1.892 MB / 0.4916 GB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.2975, allocations: 1.25 kB / 0.4916 GB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005462/0.303, allocations: 1.545 MB / 0.4932 GB, free: 6.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.304, allocations: 172.7 kB / 0.4933 GB, free: 6.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008933/0.313, allocations: 6.516 MB / 0.4997 GB, free: 128 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3134, allocations: 0.913 MB / 0.5006 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.314, allocations: 89.02 kB / 0.5007 GB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.3143, allocations: 219.4 kB / 0.5009 GB, free: 14.89 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3143, allocations: 0 / 0.5009 GB, free: 14.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.338/3.653, allocations: 15.76 MB / 0.5163 GB, free: 15.4 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002757/3.653, allocations: 246.1 kB / 0.5165 GB, free: 15.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.775/6.428, allocations: 0 / 0.5165 GB, free: 15.14 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)