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.00114/0.00114, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001075/0.001075, allocations: 200.5 kB / 16.26 MB, free: 6.625 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.156/1.156, allocations: 222.9 MB / 239.9 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.173/0.173, allocations: 22.35 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 71.89 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2033, allocations: 54.93 MB / 435.3 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003132/0.2064, allocations: 4.049 MB / 439.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2076, allocations: 1.279 MB / 440.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.2077, allocations: 2.875 kB / 440.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.2078, allocations: 60.95 kB / 440.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.2081, allocations: 195.2 kB / 440.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003354/0.2085, allocations: 250.7 kB / 441.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005061/0.209, allocations: 1.089 MB / 442.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003143/0.2093, allocations: 432.5 kB / 442.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.2096, allocations: 409.9 kB / 443.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002876/0.2099, allocations: 417.2 kB / 443.5 MB, free: 34.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.074e-05/0.2099, allocations: 94.66 kB / 443.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.21, allocations: 92.38 kB / 443.7 MB, free: 34.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.579e-05/0.2101, allocations: 195.9 kB / 443.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002139/0.2104, allocations: 424.3 kB / 444.3 MB, free: 33.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.2108, allocations: 0.9461 MB / 445.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2108, allocations: 7.938 kB / 445.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2108, allocations: 2.969 kB / 445.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.2108, allocations: 0 / 445.2 MB, free: 33.52 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.001534/0.2124, allocations: 0.9853 MB / 446.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.2124, allocations: 7.625 kB / 446.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.356e-05/0.2125, allocations: 129.2 kB / 446.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.333e-05/0.2126, allocations: 73.41 kB / 446.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.2127, allocations: 248.5 kB / 446.7 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.2128, allocations: 62.03 kB / 446.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.109e-05/0.2128, allocations: 80.69 kB / 446.8 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/0.2137, allocations: 0.6962 MB / 447.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2138, allocations: 2.594 kB / 447.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.478e-05/0.2138, allocations: 33.56 kB / 447.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.2138, allocations: 23.52 kB / 447.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008935/0.2147, allocations: 0.6967 MB / 448.3 MB, free: 31.86 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.002373/0.2171, allocations: 2.286 MB / 450.5 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.2179, allocations: 0.6872 MB / 451.2 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003799/0.2183, allocations: 328.2 kB / 451.5 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.65e-05/0.2184, allocations: 22.72 kB / 451.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.2184, allocations: 42.19 kB / 451.6 MB, free: 29.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 1.893e-06/0.2184, allocations: 2.656 kB / 451.6 MB, free: 29.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006016/0.2245, allocations: 3.09 MB / 454.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.2245, allocations: 70.92 kB / 454.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.2246, allocations: 205.1 kB / 455 MB, free: 28.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.92e-05/0.2247, allocations: 45.08 kB / 455 MB, free: 28.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.2248, allocations: 227.6 kB / 455.2 MB, free: 27.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.2249, allocations: 386.2 kB / 455.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.2251, allocations: 150 kB / 455.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.13e-05/0.2252, allocations: 354.2 kB / 456.1 MB, free: 27.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.2256, allocations: 297 kB / 456.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.2261, allocations: 385.8 kB / 456.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00961/0.2357, allocations: 2.258 MB / 459 MB, free: 26.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2357, allocations: 7.938 kB / 459 MB, free: 26.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001895/0.2376, allocations: 1.041 MB / 460.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2376, allocations: 5.531 kB / 460.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2377, allocations: 1.156 kB / 460.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000913/0.2386, allocations: 212.3 kB / 460.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005389/0.244, allocations: 0.7559 MB / 461.1 MB, free: 25.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007578/0.2516, allocations: 14.94 MB / 476 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.2521, allocations: 50.31 kB / 476 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.538e-05/0.2522, allocations: 31.56 kB / 476.1 MB, free: 10.46 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.0003071/0.2525, allocations: 256.4 kB / 476.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.545e-05/0.2526, allocations: 51.75 kB / 476.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002389/0.255, allocations: 1.245 MB / 477.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.255, allocations: 11.66 kB / 477.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.255, allocations: 2.812 kB / 477.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.255, allocations: 5.391 kB / 477.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/0.2584, allocations: 2.381 MB / 480 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.2584, allocations: 7.094 kB / 480 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005027/0.2635, allocations: 0.7023 MB / 480.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/0.2653, allocations: 364.2 kB / 481.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/0.2653, allocations: 32.59 kB / 481.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009029/0.2744, allocations: 15.11 MB / 496.2 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.2744, allocations: 11.28 kB / 496.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.2774, allocations: 1.822 MB / 498.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.606e-05/0.2775, allocations: 128.4 kB / 498.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.239e-05/0.2776, allocations: 31.84 kB / 498.2 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005952/0.2782, allocations: 51.55 kB / 498.3 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.2784, allocations: 115.7 kB / 498.4 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.215e-05/0.2785, allocations: 38.64 kB / 498.4 MB, free: 7.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.2786, allocations: 154.6 kB / 498.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2787, allocations: 0 / 498.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008658/0.2795, allocations: 238.2 kB / 498.8 MB, free: 7.617 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.003246/0.2828, allocations: 2.412 MB / 0.4895 GB, free: 5.973 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006895/0.2897, allocations: 1.925 MB / 0.4913 GB, free: 5.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2897, allocations: 1.188 kB / 0.4913 GB, free: 5.129 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005536/0.2952, allocations: 1.526 MB / 0.4928 GB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.2961, allocations: 175.9 kB / 0.493 GB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008364/0.3045, allocations: 6.42 MB / 0.4993 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.3049, allocations: 0.9094 MB / 0.5002 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.3054, allocations: 97.02 kB / 0.5003 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003077/0.3057, allocations: 218.3 kB / 0.5005 GB, free: 12.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3058, allocations: 0 / 0.5005 GB, free: 12.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/0.3409, allocations: 16.5 MB / 0.5166 GB, free: 12.51 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.3411, allocations: 243.5 kB / 0.5168 GB, free: 12.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.436, allocations: 0 / 0.5168 GB, free: 12.25 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)