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.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001122/0.001122, allocations: 195 kB / 16.14 MB, free: 6.648 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.163/1.163, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1658/0.1658, allocations: 22.36 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 59.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1996, allocations: 54.94 MB / 435.2 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003293/0.2029, allocations: 4.04 MB / 439.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.2044, allocations: 1.283 MB / 440.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.2046, allocations: 2.719 kB / 440.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2048, allocations: 59.84 kB / 440.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.2051, allocations: 192.5 kB / 440.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.2054, allocations: 259.6 kB / 441 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.2059, allocations: 1.023 MB / 442 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.2062, allocations: 367.4 kB / 442.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2065, allocations: 336.2 kB / 442.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.2067, allocations: 393 kB / 443.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.107e-05/0.2068, allocations: 45.06 kB / 443.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.2069, allocations: 50 kB / 443.2 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.619e-05/0.207, allocations: 144.7 kB / 443.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.2072, allocations: 378.1 kB / 443.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.2077, allocations: 0.9082 MB / 444.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2077, allocations: 6.875 kB / 444.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.2077, allocations: 0 / 444.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.2077, allocations: 0 / 444.6 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.001572/0.2093, allocations: 0.9852 MB / 445.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2093, allocations: 12.56 kB / 445.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.646e-05/0.2094, allocations: 130 kB / 445.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/0.2095, allocations: 73.69 kB / 445.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2096, allocations: 245.4 kB / 446 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.2097, allocations: 64.97 kB / 446.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.2098, allocations: 82.19 kB / 446.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008804/0.2107, allocations: 0.6905 MB / 446.9 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2107, allocations: 0 / 446.9 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/0.2107, allocations: 40.8 kB / 446.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.2108, allocations: 18.28 kB / 446.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009254/0.2117, allocations: 0.7 MB / 447.6 MB, free: 32.31 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.002439/0.2141, allocations: 2.29 MB / 449.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008471/0.215, allocations: 0.6763 MB / 450.6 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.2154, allocations: 335 kB / 450.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.512e-05/0.2155, allocations: 10.98 kB / 450.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.2155, allocations: 50.12 kB / 451 MB, free: 30.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 1.913e-06/0.2155, allocations: 2.625 kB / 451 MB, free: 30.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006112/0.2216, allocations: 3.092 MB / 454.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.2217, allocations: 67.06 kB / 454.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2218, allocations: 203.5 kB / 454.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.683e-05/0.2219, allocations: 44.8 kB / 454.4 MB, free: 28.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.2219, allocations: 227.5 kB / 454.6 MB, free: 28.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.2221, allocations: 384.5 kB / 455 MB, free: 28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.2223, allocations: 146.8 kB / 455.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.178e-05/0.2223, allocations: 361 kB / 455.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004555/0.2228, allocations: 294.8 kB / 455.8 MB, free: 27.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.2233, allocations: 392.6 kB / 456.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00994/0.2333, allocations: 2.251 MB / 458.4 MB, free: 26.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2333, allocations: 0 / 458.4 MB, free: 26.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001909/0.2352, allocations: 1.041 MB / 459.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2352, allocations: 5.75 kB / 459.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2352, allocations: 1.125 kB / 459.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009145/0.2362, allocations: 215.3 kB / 459.7 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005464/0.2416, allocations: 0.7532 MB / 460.4 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007307/0.2489, allocations: 13.88 MB / 474.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/0.2495, allocations: 54.34 kB / 474.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.2495, allocations: 36.84 kB / 474.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 {(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.0002964/0.2498, allocations: 247.5 kB / 474.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.944e-05/0.2499, allocations: 48.95 kB / 474.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.2524, allocations: 1.254 MB / 475.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.2524, allocations: 11.97 kB / 475.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2524, allocations: 5.125 kB / 476 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.2524, allocations: 5.031 kB / 476 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/0.2559, allocations: 2.377 MB / 478.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.2559, allocations: 6.875 kB / 478.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004955/0.2609, allocations: 0.6984 MB / 479 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001802/0.2627, allocations: 355.7 kB / 479.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-05/0.2627, allocations: 32.09 kB / 479.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008385/0.2711, allocations: 14.03 MB / 493.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.2711, allocations: 18.95 kB / 493.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/0.2742, allocations: 1.816 MB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.2743, allocations: 129.1 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.189e-05/0.2744, allocations: 31.09 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005943/0.275, allocations: 51.14 kB / 495.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.2752, allocations: 113.2 kB / 495.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-05/0.2753, allocations: 39.08 kB / 495.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.2754, allocations: 158 kB / 495.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2754, allocations: 0 / 495.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000858/0.2763, allocations: 237.2 kB / 496 MB, free: 10.22 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.003338/0.2796, allocations: 2.402 MB / 498.4 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00657/0.2862, allocations: 1.884 MB / 0.4886 GB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2862, allocations: 0.9688 kB / 0.4886 GB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00549/0.2917, allocations: 1.517 MB / 0.4901 GB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009026/0.2926, allocations: 175.8 kB / 0.4902 GB, free: 6.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008568/0.3012, allocations: 6.415 MB / 0.4965 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.3016, allocations: 0.9095 MB / 0.4974 GB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005275/0.3022, allocations: 92.97 kB / 0.4975 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003193/0.3025, allocations: 218.8 kB / 0.4977 GB, free: 15.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3025, allocations: 4 kB / 0.4977 GB, free: 15.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.3285, allocations: 15.92 MB / 0.5132 GB, free: 15.94 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.3287, allocations: 239.5 kB / 0.5135 GB, free: 15.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.384, allocations: 3.938 kB / 0.5135 GB, free: 15.68 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)