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.00125/0.00125, allocations: 106.7 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.001379/0.001379, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1038/0.1038, allocations: 22.33 MB / 313.5 MB, free: 8.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003062/0.003062, allocations: 67.88 kB / 437.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1131, allocations: 54.94 MB / 492.7 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003193/0.1163, allocations: 2.009 MB / 494.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002777/0.1191, allocations: 1.802 MB / 496.5 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.1193, allocations: 11.94 kB / 496.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004966/0.1198, allocations: 166.8 kB / 496.6 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00056/0.1204, allocations: 218.9 kB / 496.9 MB, free: 0.6133 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.000624/0.121, allocations: 391.4 kB / 497.2 MB, free: 236 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.1221, allocations: 1.058 MB / 498.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.1223, allocations: 122 kB / 498.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004506/0.1228, allocations: 414.6 kB / 498.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.1233, allocations: 406.2 kB / 499.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.621e-05/0.1234, allocations: 64 kB / 499.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.1235, allocations: 95.97 kB / 499.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.1238, allocations: 239.2 kB / 499.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.1241, allocations: 306.1 kB / 499.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007784/0.1249, allocations: 0.7197 MB / 0.4889 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1249, allocations: 0 / 0.4889 GB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1249, allocations: 7.938 kB / 0.4889 GB, free: 12.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1249, allocations: 0 / 0.4889 GB, free: 12.82 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.003266/0.1281, allocations: 1.234 MB / 0.4901 GB, free: 11.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1282, allocations: 8.031 kB / 0.4901 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.1283, allocations: 80.42 kB / 0.4902 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.1301, allocations: 0.7457 MB / 0.4909 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.1301, allocations: 29.38 kB / 0.491 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/0.1302, allocations: 44.38 kB / 0.491 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.131, allocations: 449 kB / 0.4914 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.131, allocations: 3.938 kB / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.1311, allocations: 16 kB / 0.4914 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1311, allocations: 11.94 kB / 0.4915 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007873/0.1318, allocations: 427.7 kB / 0.4919 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.1343, allocations: 1.625 MB / 0.4934 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007561/0.1351, allocations: 456.1 kB / 0.4939 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.1354, allocations: 197.5 kB / 0.4941 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.1355, allocations: 4 kB / 0.4941 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.1355, allocations: 38.56 kB / 0.4941 GB, free: 7.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.834e-06/0.1355, allocations: 0 / 0.4941 GB, free: 7.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001176/0.1367, allocations: 0.6305 MB / 0.4947 GB, free: 6.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.1367, allocations: 55.41 kB / 0.4948 GB, free: 6.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/0.1386, allocations: 0.8825 MB / 0.4956 GB, free: 5.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.1386, allocations: 37.7 kB / 0.4957 GB, free: 5.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.1389, allocations: 292.8 kB / 0.496 GB, free: 5.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.139, allocations: 166.6 kB / 0.4961 GB, free: 5.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.1392, allocations: 142.6 kB / 0.4963 GB, free: 5.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.1394, allocations: 382.7 kB / 0.4966 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000729/0.1402, allocations: 297.8 kB / 0.4969 GB, free: 4.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008428/0.141, allocations: 413.5 kB / 0.4973 GB, free: 3.926 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.005146/0.1462, allocations: 1.679 MB / 0.4989 GB, free: 2.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.1462, allocations: 7.938 kB / 0.4989 GB, free: 2.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001875/0.148, allocations: 0.8285 MB / 0.4998 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1481, allocations: 15.06 kB / 0.4998 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1481, allocations: 0 / 0.4998 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/0.1481, allocations: 8 kB / 0.4998 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009606/0.1491, allocations: 196.1 kB / 0.5 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.1491, allocations: 15.94 kB / 0.5 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.1501, allocations: 171.4 kB / 0.5001 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.1502, allocations: 27.94 kB / 0.5002 GB, free: 0.9102 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.0003825/0.1506, allocations: 241.5 kB / 0.5004 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.1507, allocations: 67.53 kB / 0.5005 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.1517, allocations: 0.5307 MB / 0.501 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.1517, allocations: 7.984 kB / 0.501 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1517, allocations: 0 / 0.501 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1517, allocations: 3.938 kB / 0.501 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2044/0.3561, allocations: 0.5883 MB / 0.5016 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.3562, allocations: 0 / 0.5016 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/0.3568, allocations: 91.62 kB / 0.5017 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.926e-06/0.3568, allocations: 2.031 kB / 0.5017 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-05/0.3568, allocations: 13.47 kB / 0.5017 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3568, allocations: 2.031 kB / 0.5017 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3568, allocations: 2.312 kB / 0.5017 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.358, allocations: 0.8408 MB / 0.5025 GB, free: 22.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.3582, allocations: 160 kB / 0.5026 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.855e-05/0.3583, allocations: 16.52 kB / 0.5027 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007016/0.359, allocations: 88.36 kB / 0.5027 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.061e-05/0.3591, allocations: 31.98 kB / 0.5028 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.3591, allocations: 15.28 kB / 0.5028 GB, free: 22.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.3605, allocations: 0.649 MB / 0.5034 GB, free: 22.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3605, allocations: 3.875 kB / 0.5034 GB, free: 22.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004917/0.361, allocations: 131.6 kB / 0.5036 GB, free: 22.26 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.0001558/0.3612, allocations: 115.8 kB / 0.5037 GB, free: 22.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3623, allocations: 0.5614 MB / 0.5042 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3623, allocations: 1.422 kB / 0.5042 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.3626, allocations: 230.4 kB / 0.5044 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005447/0.3632, allocations: 98.08 kB / 0.5045 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.3649, allocations: 1.333 MB / 0.5058 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.3652, allocations: 0.9566 MB / 0.5068 GB, free: 20.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003257/0.3656, allocations: 109.5 kB / 0.5069 GB, free: 20.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3658, allocations: 48.47 kB / 0.5069 GB, free: 20.89 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3658, allocations: 2.25 kB / 0.5069 GB, free: 20.89 MB / 382.1 MB Notification: Performance of Templates: time 0.01385/0.3796, allocations: 6.52 MB / 0.5133 GB, free: 20.59 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)