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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.09239/0.09239, allocations: 21.61 MB / 37.41 MB, free: 0.7422 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 184.5 kB / 43.63 MB, free: 3.57 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 254.8 MB, free: 14.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009555/0.0009557, allocations: 106.2 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 54.39 kB / 372.3 MB, free: 59.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07198/0.07312, allocations: 51.97 MB / 424.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00247/0.07562, allocations: 2.029 MB / 426.3 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.07739, allocations: 1.837 MB / 428.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.07755, allocations: 7.938 kB / 428.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004028/0.07796, allocations: 143.2 kB / 428.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003697/0.07835, allocations: 191.3 kB / 428.5 MB, free: 10.25 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.07875, allocations: 351.5 kB / 428.8 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005825/0.07934, allocations: 1.003 MB / 429.9 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.07954, allocations: 157.6 kB / 430 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/0.07978, allocations: 342.6 kB / 430.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.08008, allocations: 382.2 kB / 430.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.08014, allocations: 28 kB / 430.7 MB, free: 8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.08026, allocations: 55.97 kB / 430.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.08041, allocations: 203.3 kB / 431 MB, free: 7.746 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.08056, allocations: 266.2 kB / 431.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.08093, allocations: 0.6774 MB / 431.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.08094, allocations: 0 / 431.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.08094, allocations: 0 / 431.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.08095, allocations: 0 / 431.9 MB, free: 6.805 MB / 298.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.002559/0.08352, allocations: 1.211 MB / 433.1 MB, free: 5.539 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.08355, allocations: 8.031 kB / 433.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.007e-05/0.08365, allocations: 80 kB / 433.2 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.08496, allocations: 0.7295 MB / 434 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.085, allocations: 33.38 kB / 434 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.08507, allocations: 48.38 kB / 434 MB, free: 4.602 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.08559, allocations: 445 kB / 434.5 MB, free: 4.148 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.08561, allocations: 3.938 kB / 434.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.905e-05/0.08565, allocations: 16 kB / 434.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.08566, allocations: 8 kB / 434.5 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005576/0.08622, allocations: 427.7 kB / 434.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.08793, allocations: 1.641 MB / 436.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.08845, allocations: 483.2 kB / 437 MB, free: 1.512 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.08869, allocations: 200.7 kB / 437.2 MB, free: 1.312 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.08873, allocations: 4 kB / 437.2 MB, free: 1.309 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.08875, allocations: 42.59 kB / 437.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.503e-06/0.08876, allocations: 4 kB / 437.3 MB, free: 1.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008366/0.0896, allocations: 0.6223 MB / 437.9 MB, free: 0.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.08964, allocations: 55.41 kB / 438 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.09106, allocations: 0.8747 MB / 438.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.09111, allocations: 37.7 kB / 438.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.09129, allocations: 296.4 kB / 439.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.916e-05/0.0914, allocations: 161.7 kB / 439.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.09157, allocations: 134.6 kB / 439.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.09172, allocations: 390.7 kB / 439.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.09233, allocations: 297.8 kB / 440.1 MB, free: 14.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006473/0.09298, allocations: 409.5 kB / 440.5 MB, free: 13.92 MB / 314.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004188/0.09718, allocations: 1.679 MB / 442.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.0972, allocations: 0 / 442.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001566/0.09877, allocations: 0.8283 MB / 443 MB, free: 11.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.09881, allocations: 8 kB / 443 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.09883, allocations: 4 kB / 443 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.09885, allocations: 4 kB / 443 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008634/0.09972, allocations: 195.8 kB / 443.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.09975, allocations: 11.94 kB / 443.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008823/0.1006, allocations: 183.4 kB / 443.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.1007, allocations: 23.94 kB / 443.4 MB, free: 10.91 MB / 314.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 system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000365/0.1011, allocations: 241.5 kB / 443.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1012, allocations: 71.16 kB / 443.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008733/0.1021, allocations: 0.5231 MB / 444.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.1021, allocations: 11.92 kB / 444.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1021, allocations: 0 / 444.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1021, allocations: 3.938 kB / 444.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006409/0.1027, allocations: 0.5946 MB / 444.9 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.1027, allocations: 0 / 444.9 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.1033, allocations: 95.89 kB / 445 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1033, allocations: 0 / 445 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.1033, allocations: 19.98 kB / 445 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1033, allocations: 0 / 445 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1033, allocations: 3.984 kB / 445 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007212/0.1106, allocations: 4.933 MB / 449.9 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.1108, allocations: 160.1 kB / 450.1 MB, free: 4.031 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.653e-05/0.1108, allocations: 15.98 kB / 450.1 MB, free: 4.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.1116, allocations: 87.81 kB / 450.2 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.1117, allocations: 31.95 kB / 450.2 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.1118, allocations: 12 kB / 450.2 MB, free: 3.887 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001639/0.1134, allocations: 0.6511 MB / 450.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1134, allocations: 0 / 450.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006921/0.1141, allocations: 179.8 kB / 451.1 MB, free: 3.062 MB / 314.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 (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001758/0.1143, allocations: 119.1 kB / 451.2 MB, free: 2.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.1156, allocations: 0.5815 MB / 451.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1156, allocations: 0 / 451.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.116, allocations: 243.8 kB / 452 MB, free: 2.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.1166, allocations: 96.47 kB / 452.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.1187, allocations: 1.833 MB / 453.9 MB, free: 160 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.1192, allocations: 0.9689 MB / 454.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003315/0.1195, allocations: 123.3 kB / 455 MB, free: 15.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.1197, allocations: 55.42 kB / 455.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1197, allocations: 4 kB / 455.1 MB, free: 14.97 MB / 330.7 MB Notification: Performance of Templates: time 0.01214/0.1318, allocations: 7.927 MB / 463 MB, free: 7.039 MB / 330.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)