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: translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") [/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.09091/0.09091, allocations: 21.61 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.0009704/0.0009704, allocations: 183.1 kB / 42.82 MB, free: 3.789 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.204/1.204, allocations: 223.2 MB / 272.2 MB, free: 1.336 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.0008329/0.0008329, allocations: 96.31 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003152/0.0003152, allocations: 8 kB / 397 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07834/0.07868, allocations: 55.82 MB / 452.9 MB, free: 6.621 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2727/0.3515, allocations: 81 MB / 0.5213 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3517, allocations: 83.17 kB / 0.5214 GB, free: 13.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.02691/0.3786, allocations: 10.31 MB / 0.5315 GB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3786, allocations: 7.875 kB / 0.5315 GB, free: 10.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.445e-05/0.3787, allocations: 23.22 kB / 0.5315 GB, free: 10.05 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.00191/0.3806, allocations: 1.065 MB / 0.5326 GB, free: 9.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.3806, allocations: 7.812 kB / 0.5326 GB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.3807, allocations: 77.69 kB / 0.5326 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.3823, allocations: 0.791 MB / 0.5334 GB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.3823, allocations: 28.12 kB / 0.5334 GB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.3824, allocations: 46.5 kB / 0.5335 GB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3829, allocations: 429 kB / 0.5339 GB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.383, allocations: 0 / 0.5339 GB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.383, allocations: 14.81 kB / 0.5339 GB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.383, allocations: 11.52 kB / 0.5339 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.3835, allocations: 375.4 kB / 0.5343 GB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.3853, allocations: 1.565 MB / 0.5358 GB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005158/0.3858, allocations: 438.5 kB / 0.5362 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.3858, allocations: 3.906 kB / 0.5362 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.316e-05/0.3859, allocations: 37.84 kB / 0.5363 GB, free: 7.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.383e-06/0.3859, allocations: 0 / 0.5363 GB, free: 7.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0007891/0.3867, allocations: 0.5778 MB / 0.5368 GB, free: 7.359 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.912e-05/0.3867, allocations: 55.25 kB / 0.5369 GB, free: 7.297 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.3877, allocations: 0.7001 MB / 0.5376 GB, free: 7.043 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3878, allocations: 32.45 kB / 0.5376 GB, free: 7.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.3879, allocations: 314.2 kB / 0.5379 GB, free: 6.859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/0.388, allocations: 156.7 kB / 0.538 GB, free: 6.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/0.388, allocations: 11.22 kB / 0.5381 GB, free: 6.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.966e-05/0.3881, allocations: 384.4 kB / 0.5384 GB, free: 6.414 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.3883, allocations: 170.9 kB / 0.5386 GB, free: 6.391 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.3886, allocations: 276.8 kB / 0.5388 GB, free: 6.25 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.3909, allocations: 0.9582 MB / 0.5398 GB, free: 6.051 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3909, allocations: 0 / 0.5398 GB, free: 6.051 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006806/0.3916, allocations: 0.5714 MB / 0.5403 GB, free: 5.906 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3916, allocations: 11.53 kB / 0.5404 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3916, allocations: 6.188 kB / 0.5404 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3916, allocations: 11.78 kB / 0.5404 GB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007609/0.3924, allocations: 184.8 kB / 0.5405 GB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009986/0.3934, allocations: 1.477 MB / 0.542 GB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.3939, allocations: 108.1 kB / 0.5421 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.394, allocations: 18.56 kB / 0.5421 GB, free: 4.375 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.0002369/0.3942, allocations: 232.6 kB / 0.5423 GB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.3943, allocations: 61.53 kB / 0.5424 GB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006387/0.3949, allocations: 0.4973 MB / 0.5429 GB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.395, allocations: 7.797 kB / 0.5429 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.395, allocations: 0 / 0.5429 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.395, allocations: 0 / 0.5429 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004701/0.3955, allocations: 0.5707 MB / 0.5434 GB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3955, allocations: 3.938 kB / 0.5434 GB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004876/0.396, allocations: 99.89 kB / 0.5435 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.396, allocations: 3.719 kB / 0.5435 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.396, allocations: 15.83 kB / 0.5436 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.396, allocations: 3.469 kB / 0.5436 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.396, allocations: 3.953 kB / 0.5436 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007737/0.3968, allocations: 0.7565 MB / 0.5443 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.3969, allocations: 157.6 kB / 0.5445 GB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.808e-05/0.397, allocations: 18.7 kB / 0.5445 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.3975, allocations: 62.27 kB / 0.5445 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.3976, allocations: 38.69 kB / 0.5446 GB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.3976, allocations: 30.75 kB / 0.5446 GB, free: 3.266 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009245/0.3985, allocations: 0.5629 MB / 0.5451 GB, free: 3.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3985, allocations: 3.969 kB / 0.5451 GB, free: 3.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000345/0.3989, allocations: 98 kB / 0.5452 GB, free: 3.055 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.000106/0.399, allocations: 124.4 kB / 0.5454 GB, free: 2.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007243/0.3997, allocations: 483.1 kB / 0.5458 GB, free: 2.863 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3998, allocations: 3.875 kB / 0.5458 GB, free: 2.863 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.4, allocations: 208.3 kB / 0.546 GB, free: 2.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.4004, allocations: 80.47 kB / 0.5461 GB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.4017, allocations: 1.448 MB / 0.5475 GB, free: 1.969 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.402, allocations: 0.9671 MB / 0.5485 GB, free: 1.152 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.4023, allocations: 102.5 kB / 0.5486 GB, free: 1.113 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.4024, allocations: 49.86 kB / 0.5486 GB, free: 1.102 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4024, allocations: 0 / 0.5486 GB, free: 1.102 MB / 362.7 MB Notification: Performance of Templates: time 0.008102/0.4105, allocations: 4.966 MB / 0.5535 GB, free: 13.63 MB / 378.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)