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.001329/0.00133, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001585/0.001585, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2302/0.2302, allocations: 22.34 MB / 313.3 MB, free: 13.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004699/0.00047, allocations: 12 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3368, allocations: 55.97 MB / 437.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.00275/0.3396, allocations: 3.118 MB / 441 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.341, allocations: 1.279 MB / 442.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.3412, allocations: 9.656 kB / 442.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.698e-05/0.3413, allocations: 54.58 kB / 442.3 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002852/0.3416, allocations: 225.2 kB / 442.6 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.3419, allocations: 188.8 kB / 442.8 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.3423, allocations: 0.6646 MB / 443.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.3427, allocations: 343.2 kB / 443.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.3429, allocations: 336.7 kB / 444.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.3433, allocations: 369.8 kB / 444.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.3433, allocations: 43.47 kB / 444.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.501e-05/0.3434, allocations: 46.12 kB / 444.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-05/0.3435, allocations: 142.3 kB / 444.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.455e-05/0.3436, allocations: 163.1 kB / 444.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.344, allocations: 0.7007 MB / 445.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.344, allocations: 4 kB / 445.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.344, allocations: 0 / 445.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.3441, allocations: 0 / 445.5 MB, free: 34.75 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.3456, allocations: 0.8652 MB / 446.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3457, allocations: 10.41 kB / 446.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.3458, allocations: 132.6 kB / 446.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.3459, allocations: 71.91 kB / 446.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.3461, allocations: 243.1 kB / 446.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.993e-05/0.3462, allocations: 65.38 kB / 446.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.559e-05/0.3463, allocations: 84.86 kB / 447 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009709/0.3472, allocations: 0.6711 MB / 447.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3473, allocations: 0 / 447.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.3473, allocations: 35.59 kB / 447.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.3474, allocations: 20.28 kB / 447.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009466/0.3483, allocations: 0.6855 MB / 448.4 MB, free: 33.18 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002698/0.351, allocations: 2.024 MB / 450.4 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009089/0.3519, allocations: 0.6721 MB / 451.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.854e-05/0.352, allocations: 15.05 kB / 451.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.352, allocations: 58.08 kB / 451.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.194e-06/0.352, allocations: 0 / 451.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006578/0.3586, allocations: 3.1 MB / 454.3 MB, free: 30.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.3587, allocations: 68.5 kB / 454.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3589, allocations: 197.7 kB / 454.5 MB, free: 29.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.3589, allocations: 45.17 kB / 454.6 MB, free: 29.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.359, allocations: 231.1 kB / 454.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.3592, allocations: 383.2 kB / 455.2 MB, free: 29.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.3593, allocations: 19.19 kB / 455.2 MB, free: 29.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.484e-05/0.3594, allocations: 357.3 kB / 455.5 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/0.3598, allocations: 292 kB / 455.8 MB, free: 28.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.3603, allocations: 374.7 kB / 456.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006029/0.3609, allocations: 363.5 kB / 456.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.237e-06/0.3609, allocations: 0 / 456.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002316/0.3633, allocations: 1.045 MB / 457.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.3633, allocations: 6.25 kB / 457.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3633, allocations: 4.938 kB / 457.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.3644, allocations: 226.4 kB / 457.8 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005228/0.3697, allocations: 0.7545 MB / 458.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008933/0.3786, allocations: 13.96 MB / 472.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008057/0.3795, allocations: 49.11 kB / 472.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.005e-05/0.3795, allocations: 32.83 kB / 472.6 MB, free: 13.84 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: 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 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 AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 4,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005091/0.3801, allocations: 259.1 kB / 472.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3802, allocations: 47.94 kB / 472.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.3829, allocations: 1.25 MB / 474.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.383, allocations: 10.75 kB / 474.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.383, allocations: 3.156 kB / 474.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.383, allocations: 5.812 kB / 474.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004213/0.3872, allocations: 2.381 MB / 476.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.3873, allocations: 7.125 kB / 476.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004816/0.3921, allocations: 0.7008 MB / 477.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/0.3943, allocations: 375.5 kB / 477.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001569/0.3945, allocations: 31.56 kB / 477.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.406, allocations: 14.14 MB / 491.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.406, allocations: 8.859 kB / 491.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003881/0.4099, allocations: 2.152 MB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.4102, allocations: 133.6 kB / 494.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4103, allocations: 35.88 kB / 494.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006916/0.411, allocations: 50.75 kB / 494.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/0.4114, allocations: 114.4 kB / 494.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.4115, allocations: 34.95 kB / 494.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.4117, allocations: 156.3 kB / 494.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4117, allocations: 4 kB / 494.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001279/0.413, allocations: 231.7 kB / 494.7 MB, free: 11.52 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.005288/0.4183, allocations: 4.729 MB / 499.5 MB, free: 7.457 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.007367/0.4257, allocations: 1.886 MB / 0.4896 GB, free: 6.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.4257, allocations: 1.156 kB / 0.4896 GB, free: 6.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005995/0.4317, allocations: 1.535 MB / 0.4911 GB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4329, allocations: 153 kB / 0.4912 GB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.4413, allocations: 4.681 MB / 0.4958 GB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.442, allocations: 0.9216 MB / 0.4967 GB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006785/0.4427, allocations: 92.88 kB / 0.4968 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.443, allocations: 214.4 kB / 0.497 GB, free: 1.523 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4431, allocations: 0 / 0.497 GB, free: 1.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/0.5644, allocations: 15.36 MB / 0.512 GB, free: 3.059 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002648/0.5648, allocations: 214.7 kB / 0.5122 GB, free: 2.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.745, allocations: 2.391 kB / 0.5122 GB, free: 2.82 MB / 382.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/linux/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) Environment - environmentSimulation: