Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop",fmuType="me",version="2.0",platforms={"static"}) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1034/0.1034, allocations: 21.62 MB / 36.56 MB, free: 1.105 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 182.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 272.1 MB, free: 1.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008515/0.0008514, allocations: 92.31 kB / 328.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003129, allocations: 11.98 kB / 397.1 MB, free: 46.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1102, allocations: 55.81 MB / 452.9 MB, free: 6.531 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.456, allocations: 79.85 MB / 0.5203 GB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.4563, allocations: 79.3 kB / 0.5204 GB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005875/0.4621, allocations: 2.627 MB / 0.5229 GB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4622, allocations: 0 / 0.5229 GB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.4622, allocations: 0 / 0.5229 GB, free: 12.61 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004492/0.4626, allocations: 441.1 kB / 0.5234 GB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4627, allocations: 7.75 kB / 0.5234 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.344e-05/0.4628, allocations: 52.59 kB / 0.5234 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.981e-05/0.4628, allocations: 15.59 kB / 0.5234 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.4629, allocations: 181.2 kB / 0.5236 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.463, allocations: 14.81 kB / 0.5236 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.463, allocations: 19.31 kB / 0.5236 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.4633, allocations: 169.1 kB / 0.5238 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4633, allocations: 0 / 0.5238 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4634, allocations: 7.375 kB / 0.5238 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.4634, allocations: 3.844 kB / 0.5238 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.4636, allocations: 108.7 kB / 0.5239 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007786/0.4644, allocations: 0.5635 MB / 0.5245 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.4646, allocations: 124.9 kB / 0.5246 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.4646, allocations: 3.844 kB / 0.5246 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.4647, allocations: 33.25 kB / 0.5246 GB, free: 11.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.4647, allocations: 0 / 0.5246 GB, free: 11.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003289/0.465, allocations: 159.9 kB / 0.5248 GB, free: 11.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.465, allocations: 59.12 kB / 0.5248 GB, free: 11.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.244e-05/0.4651, allocations: 118 kB / 0.5249 GB, free: 11.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.4651, allocations: 25.7 kB / 0.525 GB, free: 11.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.4652, allocations: 128.6 kB / 0.5251 GB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.4652, allocations: 55.47 kB / 0.5251 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.4652, allocations: 3.438 kB / 0.5252 GB, free: 11.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.995e-05/0.4653, allocations: 320.5 kB / 0.5255 GB, free: 10.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.562e-05/0.4654, allocations: 42.16 kB / 0.5255 GB, free: 10.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.525e-05/0.4655, allocations: 77.84 kB / 0.5256 GB, free: 10.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.012e-05/0.4655, allocations: 46.91 kB / 0.5256 GB, free: 10.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4656, allocations: 0 / 0.5256 GB, free: 10.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002178/0.4658, allocations: 167.8 kB / 0.5258 GB, free: 10.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.4658, allocations: 13.06 kB / 0.5258 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4658, allocations: 6.625 kB / 0.5258 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.4658, allocations: 0 / 0.5258 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.466, allocations: 43.44 kB / 0.5258 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.466, allocations: 3.531 kB / 0.5258 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.394e-05/0.4661, allocations: 18.47 kB / 0.5259 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.4661, allocations: 13.69 kB / 0.5259 GB, free: 10.71 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: Cz2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cz1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.4663, allocations: 153.1 kB / 0.526 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.4664, allocations: 11.41 kB / 0.526 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.704e-05/0.4664, allocations: 14.09 kB / 0.526 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4664, allocations: 3.844 kB / 0.526 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4665, allocations: 4 kB / 0.526 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.4665, allocations: 0 / 0.526 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.4667, allocations: 261.6 kB / 0.5263 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4667, allocations: 3.938 kB / 0.5263 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.4669, allocations: 29.69 kB / 0.5263 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.4669, allocations: 6.562 kB / 0.5263 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4669, allocations: 3.375 kB / 0.5263 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.4669, allocations: 3.938 kB / 0.5263 GB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4669, allocations: 2 kB / 0.5263 GB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000303/0.4672, allocations: 283.9 kB / 0.5266 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.642e-05/0.4673, allocations: 88.77 kB / 0.5267 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.4673, allocations: 3.969 kB / 0.5267 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.476e-05/0.4674, allocations: 9.875 kB / 0.5267 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.4674, allocations: 10.44 kB / 0.5267 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.4674, allocations: 7.406 kB / 0.5267 GB, free: 10.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.332e-05/0.4675, allocations: 93.02 kB / 0.5268 GB, free: 10.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4675, allocations: 0 / 0.5268 GB, free: 10.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002439/0.4677, allocations: 50.38 kB / 0.5269 GB, free: 10.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cz1.T,Cz2.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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004634/0.4682, allocations: 0.8152 MB / 0.5277 GB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.4684, allocations: 108.7 kB / 0.5278 GB, free: 9.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4685, allocations: 4 kB / 0.5278 GB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.354e-05/0.4686, allocations: 59 kB / 0.5278 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.4687, allocations: 8.094 kB / 0.5278 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.4701, allocations: 1.577 MB / 0.5294 GB, free: 8.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.4702, allocations: 0.728 MB / 0.5301 GB, free: 7.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.268e-05/0.4703, allocations: 12.56 kB / 0.5301 GB, free: 7.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/0.4704, allocations: 40.75 kB / 0.5301 GB, free: 7.445 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4704, allocations: 0 / 0.5301 GB, free: 7.445 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.4832, allocations: 2.315 MB / 0.5324 GB, free: 6.699 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.4834, allocations: 221 kB / 0.5326 GB, free: 6.457 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/1.993, allocations: 0 / 0.5326 GB, free: 6.457 MB / 362.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe 2>&1)