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.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,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",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.1324/0.1324, allocations: 21.62 MB / 36.56 MB, free: 1.102 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.001069/0.001069, allocations: 178.4 kB / 42.83 MB, free: 3.781 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.341/1.341, allocations: 223.2 MB / 272.1 MB, free: 1.727 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.0008861/0.0008861, allocations: 107.6 kB / 328.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003439, allocations: 8 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1022, allocations: 55.82 MB / 452.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.4414, allocations: 82.66 MB / 0.5231 GB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/0.4418, allocations: 94 kB / 0.5231 GB, free: 13 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:49:3-49:23:writable] Warning: Connecting two signal sources while connecting iBias to Bias. Notification: Performance of FrontEnd - DAE generated: time 0.02174/0.4636, allocations: 8.002 MB / 0.531 GB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4636, allocations: 0 / 0.531 GB, free: 10.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.534e-05/0.4636, allocations: 19.59 kB / 0.531 GB, free: 10.45 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001214/0.4649, allocations: 0.7596 MB / 0.5317 GB, free: 9.855 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4649, allocations: 11.66 kB / 0.5317 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.337e-05/0.465, allocations: 77.02 kB / 0.5318 GB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.981e-05/0.4651, allocations: 56.09 kB / 0.5319 GB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007539/0.4658, allocations: 479.5 kB / 0.5323 GB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.4659, allocations: 35.5 kB / 0.5323 GB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.244e-05/0.4659, allocations: 46.59 kB / 0.5324 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.4665, allocations: 408.2 kB / 0.5328 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.4666, allocations: 3.875 kB / 0.5328 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.4666, allocations: 19.34 kB / 0.5328 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4666, allocations: 7.688 kB / 0.5328 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005316/0.4671, allocations: 282.2 kB / 0.5331 GB, free: 9.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.4687, allocations: 1.389 MB / 0.5344 GB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.4691, allocations: 260 kB / 0.5347 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.4692, allocations: 4.172 kB / 0.5347 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.4692, allocations: 30.89 kB / 0.5347 GB, free: 8.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.473e-06/0.4692, allocations: 3.938 kB / 0.5347 GB, free: 8.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007246/0.4699, allocations: 407.4 kB / 0.5351 GB, free: 8.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.47, allocations: 59.2 kB / 0.5352 GB, free: 8.062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004197/0.4704, allocations: 368.4 kB / 0.5355 GB, free: 7.906 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.4704, allocations: 31.27 kB / 0.5355 GB, free: 7.875 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.4706, allocations: 255.2 kB / 0.5358 GB, free: 7.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.293e-05/0.4706, allocations: 145.1 kB / 0.5359 GB, free: 7.613 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.4707, allocations: 13.94 kB / 0.5359 GB, free: 7.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.623e-05/0.4708, allocations: 358.2 kB / 0.5363 GB, free: 7.281 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.471, allocations: 106.8 kB / 0.5364 GB, free: 7.266 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.4712, allocations: 249 kB / 0.5366 GB, free: 7.094 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.4729, allocations: 0.6094 MB / 0.5372 GB, free: 6.984 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4729, allocations: 0 / 0.5372 GB, free: 6.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006269/0.4736, allocations: 447.8 kB / 0.5376 GB, free: 6.871 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4736, allocations: 7.688 kB / 0.5376 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4736, allocations: 3.844 kB / 0.5377 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4736, allocations: 8.344 kB / 0.5377 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.4741, allocations: 123.7 kB / 0.5378 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.4741, allocations: 15.61 kB / 0.5378 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.4745, allocations: 64.94 kB / 0.5379 GB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.4745, allocations: 18.91 kB / 0.5379 GB, free: 6.809 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: D.Fcs1.y = D.Fcs1.y_start D.Fcs2.y = D.Fcs2.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 10 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002521/0.4748, allocations: 195 kB / 0.5381 GB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.739e-05/0.4748, allocations: 38.47 kB / 0.5381 GB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005565/0.4754, allocations: 376.6 kB / 0.5385 GB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.4754, allocations: 4.719 kB / 0.5385 GB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4754, allocations: 3.938 kB / 0.5385 GB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.4754, allocations: 11.92 kB / 0.5385 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004135/0.4758, allocations: 457.4 kB / 0.5389 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.4759, allocations: 0 / 0.5389 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.4763, allocations: 91.83 kB / 0.539 GB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4763, allocations: 4 kB / 0.539 GB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.4764, allocations: 14.92 kB / 0.539 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.4764, allocations: 3.844 kB / 0.539 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4764, allocations: 0 / 0.539 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006364/0.477, allocations: 0.5573 MB / 0.5396 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.857e-05/0.4771, allocations: 127 kB / 0.5397 GB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.4772, allocations: 10.59 kB / 0.5397 GB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.4775, allocations: 23 kB / 0.5397 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.4775, allocations: 31.27 kB / 0.5397 GB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.4775, allocations: 18.78 kB / 0.5398 GB, free: 5.863 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003249/0.4779, allocations: 285.8 kB / 0.54 GB, free: 5.738 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4779, allocations: 0 / 0.54 GB, free: 5.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.4783, allocations: 97.31 kB / 0.5401 GB, free: 5.727 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Cz1.T,Cz2.T,C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * 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.0008264/0.4791, allocations: 1.117 MB / 0.5412 GB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.4796, allocations: 330.7 kB / 0.5415 GB, free: 4.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4797, allocations: 3.938 kB / 0.5415 GB, free: 4.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.4799, allocations: 158.1 kB / 0.5417 GB, free: 4.895 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.4802, allocations: 52.55 kB / 0.5417 GB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.484, allocations: 5.274 MB / 0.5469 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.4842, allocations: 0.867 MB / 0.5477 GB, free: 224 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.4845, allocations: 62.64 kB / 0.5478 GB, free: 188 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.4847, allocations: 170.5 kB / 0.548 GB, free: 164 kB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4847, allocations: 0 / 0.548 GB, free: 164 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.5042, allocations: 7.285 MB / 0.5551 GB, free: 11.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.5044, allocations: 214.2 kB / 0.5553 GB, free: 11.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/2.562, allocations: 0 / 0.5553 GB, free: 11.45 MB / 378.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.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_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)