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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 105.8 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08787/0.08787, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 75.86 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1082, allocations: 54.94 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003462/0.1117, allocations: 2.005 MB / 494.7 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003135/0.1148, allocations: 1.798 MB / 496.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005582/0.1154, allocations: 11.94 kB / 496.5 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007425/0.1162, allocations: 170.8 kB / 496.6 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008608/0.1171, allocations: 218.9 kB / 496.9 MB, free: 0.5508 MB / 366.1 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.0008112/0.118, allocations: 375.5 kB / 497.2 MB, free: 188 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.1193, allocations: 1.062 MB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.1197, allocations: 166 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006243/0.1203, allocations: 410.6 kB / 498.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000692/0.121, allocations: 402.2 kB / 499.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.1213, allocations: 68 kB / 499.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002585/0.1215, allocations: 91.97 kB / 499.4 MB, free: 14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003095/0.1218, allocations: 243.3 kB / 499.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.1222, allocations: 298.1 kB / 499.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008113/0.123, allocations: 0.724 MB / 0.4889 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.123, allocations: 0 / 0.4889 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.123, allocations: 4 kB / 0.4889 GB, free: 12.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.1231, allocations: 0 / 0.4889 GB, free: 12.74 MB / 382.1 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.003508/0.1266, allocations: 1.219 MB / 0.4901 GB, free: 11.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1266, allocations: 8.031 kB / 0.4901 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.1268, allocations: 76 kB / 0.4902 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.1287, allocations: 0.7335 MB / 0.4909 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/0.1287, allocations: 33.38 kB / 0.4909 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.705e-05/0.1288, allocations: 44.31 kB / 0.491 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007858/0.1296, allocations: 456.9 kB / 0.4914 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1296, allocations: 0 / 0.4914 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.1297, allocations: 16 kB / 0.4914 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1297, allocations: 12 kB / 0.4914 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000772/0.1305, allocations: 419.7 kB / 0.4918 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.133, allocations: 1.625 MB / 0.4934 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006935/0.1337, allocations: 472 kB / 0.4939 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.134, allocations: 201.5 kB / 0.4941 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.194e-05/0.1341, allocations: 7.984 kB / 0.4941 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.1341, allocations: 38.56 kB / 0.4941 GB, free: 7.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.783e-06/0.1341, allocations: 0 / 0.4941 GB, free: 7.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001118/0.1352, allocations: 0.6224 MB / 0.4947 GB, free: 6.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.1353, allocations: 63.33 kB / 0.4948 GB, free: 6.516 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.1371, allocations: 0.8786 MB / 0.4956 GB, free: 5.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.473e-05/0.1372, allocations: 37.7 kB / 0.4957 GB, free: 5.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.1374, allocations: 288.4 kB / 0.496 GB, free: 5.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.1376, allocations: 161.7 kB / 0.4961 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.1378, allocations: 142.6 kB / 0.4962 GB, free: 4.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1379, allocations: 382.6 kB / 0.4966 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.1386, allocations: 293.8 kB / 0.4969 GB, free: 4.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007338/0.1393, allocations: 413.6 kB / 0.4973 GB, free: 3.867 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004602/0.144, allocations: 1.682 MB / 0.4989 GB, free: 2.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.144, allocations: 4 kB / 0.4989 GB, free: 2.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001731/0.1457, allocations: 0.8279 MB / 0.4997 GB, free: 1.273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.1458, allocations: 8 kB / 0.4997 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1458, allocations: 0 / 0.4997 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.1458, allocations: 8 kB / 0.4998 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.1467, allocations: 208.1 kB / 0.5 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.1467, allocations: 12 kB / 0.5 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.1478, allocations: 167.3 kB / 0.5001 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.1478, allocations: 27.94 kB / 0.5001 GB, free: 0.8516 MB / 382.1 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.000371/0.1482, allocations: 241.5 kB / 0.5004 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.1484, allocations: 67.14 kB / 0.5004 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009282/0.1493, allocations: 0.5269 MB / 0.501 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.1493, allocations: 4 kB / 0.501 GB, free: 0 / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.1493, allocations: 0 / 0.501 GB, free: 0 / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/0.3865, allocations: 5.828 kB / 0.501 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009423/0.3875, allocations: 0.5925 MB / 0.5015 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3875, allocations: 0 / 0.5015 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/0.3881, allocations: 91.48 kB / 0.5016 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.3881, allocations: 2.172 kB / 0.5016 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.3881, allocations: 16.98 kB / 0.5017 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.3882, allocations: 2.562 kB / 0.5017 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3882, allocations: 3.75 kB / 0.5017 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3893, allocations: 0.829 MB / 0.5025 GB, free: 22.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3894, allocations: 163.3 kB / 0.5026 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.101e-05/0.3895, allocations: 13.41 kB / 0.5026 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.3902, allocations: 91.45 kB / 0.5027 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.3903, allocations: 24.06 kB / 0.5027 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.3903, allocations: 16.25 kB / 0.5028 GB, free: 22.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.3918, allocations: 0.6582 MB / 0.5034 GB, free: 22.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.3918, allocations: 0 / 0.5034 GB, free: 22.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004799/0.3923, allocations: 123.3 kB / 0.5035 GB, free: 22.21 MB / 382.1 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.0001744/0.3924, allocations: 119.2 kB / 0.5036 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3937, allocations: 0.592 MB / 0.5042 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3937, allocations: 3.594 kB / 0.5042 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.394, allocations: 238.1 kB / 0.5044 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.3946, allocations: 96.73 kB / 0.5045 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.3964, allocations: 1.353 MB / 0.5059 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.3968, allocations: 0.9494 MB / 0.5068 GB, free: 20.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.397, allocations: 53.97 kB / 0.5068 GB, free: 20.85 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.397, allocations: 3.25 kB / 0.5068 GB, free: 20.85 MB / 382.1 MB Notification: Performance of Templates: time 0.01513/0.4121, allocations: 8.192 MB / 0.5148 GB, free: 19.56 MB / 382.1 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)