Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",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.104/0.104, allocations: 21.62 MB / 36.56 MB, free: 1.07 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.00106/0.00106, allocations: 178.4 kB / 42.83 MB, free: 3.793 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.394/1.394, allocations: 223.2 MB / 272.1 MB, free: 1.395 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.000845/0.0008451, allocations: 103.2 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002962, allocations: 8 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 55.82 MB / 452.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4381, allocations: 81 MB / 0.5214 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.4383, allocations: 84.92 kB / 0.5215 GB, free: 13.04 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.02844/0.4668, allocations: 10.31 MB / 0.5316 GB, free: 9.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4668, allocations: 0 / 0.5316 GB, free: 9.941 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.815e-05/0.4669, allocations: 27.14 kB / 0.5316 GB, free: 9.934 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00245/0.4693, allocations: 1.072 MB / 0.5326 GB, free: 9.168 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.4694, allocations: 7.656 kB / 0.5326 GB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.4695, allocations: 73.81 kB / 0.5327 GB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.4697, allocations: 77.28 kB / 0.5328 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.4715, allocations: 0.7897 MB / 0.5336 GB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.4716, allocations: 27.47 kB / 0.5336 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.4716, allocations: 42.19 kB / 0.5336 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005815/0.4722, allocations: 432.9 kB / 0.534 GB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4722, allocations: 0 / 0.534 GB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.4723, allocations: 19.48 kB / 0.5341 GB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.4723, allocations: 8.281 kB / 0.5341 GB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005756/0.4729, allocations: 378.4 kB / 0.5344 GB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.4748, allocations: 1.555 MB / 0.5359 GB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.4753, allocations: 438.2 kB / 0.5364 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.4754, allocations: 8.531 kB / 0.5364 GB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.4754, allocations: 37.39 kB / 0.5364 GB, free: 7.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.4754, allocations: 0 / 0.5364 GB, free: 7.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008464/0.4763, allocations: 0.5753 MB / 0.537 GB, free: 7.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.4763, allocations: 59.16 kB / 0.537 GB, free: 7.129 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.4774, allocations: 0.6979 MB / 0.5377 GB, free: 6.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.4775, allocations: 36.61 kB / 0.5377 GB, free: 6.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.4776, allocations: 309.8 kB / 0.538 GB, free: 6.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.736e-05/0.4777, allocations: 160.9 kB / 0.5382 GB, free: 6.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.4778, allocations: 10.62 kB / 0.5382 GB, free: 6.574 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.938e-05/0.4779, allocations: 381.5 kB / 0.5386 GB, free: 6.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002477/0.4781, allocations: 170.3 kB / 0.5387 GB, free: 6.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.4784, allocations: 276.8 kB / 0.539 GB, free: 6.078 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.4807, allocations: 0.9604 MB / 0.5399 GB, free: 5.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.4807, allocations: 0 / 0.5399 GB, free: 5.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007251/0.4815, allocations: 0.5747 MB / 0.5405 GB, free: 5.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.4815, allocations: 9.219 kB / 0.5405 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.4815, allocations: 4.75 kB / 0.5405 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4815, allocations: 7.922 kB / 0.5405 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008213/0.4824, allocations: 193.6 kB / 0.5407 GB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.4834, allocations: 1.47 MB / 0.5421 GB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/0.484, allocations: 108.1 kB / 0.5422 GB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.563e-05/0.484, allocations: 18.72 kB / 0.5423 GB, free: 4.203 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.Fcs2.y = D.Fcs2.y_start C1.u = C1.CSstart. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000269/0.4843, allocations: 230.7 kB / 0.5425 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.527e-05/0.4844, allocations: 66.05 kB / 0.5425 GB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006614/0.485, allocations: 0.4998 MB / 0.543 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.485, allocations: 3.875 kB / 0.543 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.4851, allocations: 3.984 kB / 0.543 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4851, allocations: 3.938 kB / 0.543 GB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.4856, allocations: 0.5809 MB / 0.5436 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4856, allocations: 0 / 0.5436 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005382/0.4861, allocations: 91.98 kB / 0.5437 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.4861, allocations: 3.875 kB / 0.5437 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.4862, allocations: 10.72 kB / 0.5437 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4862, allocations: 3.953 kB / 0.5437 GB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4862, allocations: 4.781 kB / 0.5437 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000808/0.487, allocations: 0.7598 MB / 0.5445 GB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.4871, allocations: 150.8 kB / 0.5446 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.4872, allocations: 14.19 kB / 0.5446 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.4878, allocations: 72.41 kB / 0.5447 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/0.4878, allocations: 39 kB / 0.5447 GB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.4879, allocations: 11.31 kB / 0.5447 GB, free: 3.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001009/0.4889, allocations: 0.5632 MB / 0.5453 GB, free: 2.902 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4889, allocations: 7.812 kB / 0.5453 GB, free: 2.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004018/0.4893, allocations: 99.97 kB / 0.5454 GB, free: 2.891 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],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 (45): * Single equations (assignments): 45 * 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.00103/0.4903, allocations: 1.325 MB / 0.5467 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007916/0.4911, allocations: 488.8 kB / 0.5471 GB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4912, allocations: 0 / 0.5471 GB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.4914, allocations: 218.2 kB / 0.5474 GB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.4918, allocations: 87.94 kB / 0.5474 GB, free: 1.961 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.5021, allocations: 6.322 MB / 0.5536 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.5028, allocations: 0.9768 MB / 0.5546 GB, free: 13.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005184/0.5033, allocations: 108.9 kB / 0.5547 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.5037, allocations: 229.7 kB / 0.5549 GB, free: 13.07 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5037, allocations: 0 / 0.5549 GB, free: 13.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.5289, allocations: 11.27 MB / 0.5659 GB, free: 1.969 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/0.5292, allocations: 195.4 kB / 0.5661 GB, free: 1.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/2.682, allocations: 0 / 0.5661 GB, free: 1.73 MB / 378.7 MB (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)