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.001337/0.001337, allocations: 107.5 kB / 16.42 MB, free: 6.492 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.0009762/0.0009763, allocations: 189.5 kB / 17.35 MB, free: 5.754 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.322/1.322, 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.08579/0.08579, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.844e-05/2.846e-05, allocations: 2.281 kB / 437.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003283/0.00332, allocations: 1.995 MB / 439.7 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.006583, allocations: 1.798 MB / 441.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.006796, allocations: 7.938 kB / 441.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005684/0.007374, allocations: 170.8 kB / 441.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005848/0.007969, allocations: 218.9 kB / 441.8 MB, free: 7.633 MB / 318.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.0005851/0.008581, allocations: 375.5 kB / 442.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.009734, allocations: 1.171 MB / 443.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.01003, allocations: 169.6 kB / 443.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.01041, allocations: 394.7 kB / 443.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003753/0.0108, allocations: 342.3 kB / 444.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.784e-05/0.01089, allocations: 64 kB / 444.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.01106, allocations: 91.97 kB / 444.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0006935/0.01176, allocations: 1.011 MB / 445.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003731/0.01214, allocations: 0.6543 MB / 446.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.494e-05/0.01224, allocations: 87.62 kB / 446.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.978e-05/0.01233, allocations: 27.75 kB / 446.2 MB, free: 3.25 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 (90) * Number of variables: 90 (90) Notification: Performance of Bindings: time 0.002472/0.01481, allocations: 2.817 MB / 449 MB, free: 308 kB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001009/0.01492, allocations: 111.8 kB / 449.1 MB, free: 196 kB / 318.1 MB Notification: Performance of Early Inline: time 0.001084/0.01601, allocations: 1.116 MB / 450.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simplify1: time 0.0001147/0.01613, allocations: 111.8 kB / 450.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of Alias: time 0.002368/0.01851, allocations: 2.016 MB / 452.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplify2: time 0.0001014/0.01862, allocations: 91.83 kB / 452.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Events: time 0.0001662/0.0188, allocations: 127.8 kB / 452.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Detect States: time 0.0004214/0.01923, allocations: 392.3 kB / 453 MB, free: 12.04 MB / 334.1 MB Notification: Performance of Partitioning: time 0.0003264/0.01956, allocations: 301.2 kB / 453.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of Causalize: time 0.001152/0.02072, allocations: 0.9761 MB / 454.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008197/0.02155, allocations: 0.8546 MB / 455.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of Inline: time 0.002146/0.0237, allocations: 2.047 MB / 457.1 MB, free: 7.793 MB / 334.1 MB Notification: Performance of Partitioning: time 0.0001137/0.02383, allocations: 107.6 kB / 457.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of Cleanup: time 6.648e-05/0.0239, allocations: 67.86 kB / 457.3 MB, free: 7.617 MB / 334.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [ARRY] (1) D.Fcs1.bb = {D.Fcs1.b[1]} ($RES_BND_149) slice: {}; [ARRY] (1) D.Fcs2.a = D.Fcs2d ($RES_BND_144) slice: {}; Notification: Performance of Causalize: time 0.007456/0.03136, allocations: 6.29 MB / 463.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Tearing: time 8.536e-06/0.03139, allocations: 0 / 463.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Initialization: time 2.585e-06/0.0314, allocations: 4 kB / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of Tearing: time 4.689e-06/0.03141, allocations: 0 / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of Categorize: time 1.381e-05/0.03143, allocations: 0 / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of Solve: time 0.002363/0.03379, allocations: 2.906 MB / 466.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of Jacobian: time 0.0007443/0.03455, allocations: 0.7647 MB / 467.3 MB, free: 13.16 MB / 350.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 0 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 14 (14) {P.P11.x_scaled, P.P12.x_scaled, P.P21.x_scaled, P.P22.x_scaled, D.D12.x_scaled, D.D21.x_scaled, C1.xfb, C1.xBias, C1.u, C1.csfil, C2.xfb, C2.xBias, C2.u, C2.csfil} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 10 (10) {C1.HIsat, C1.LOsat, C2.HIsat, C2.LOsat, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 50 (scalar:44, array:6, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 102 (scalar:72, array:30, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 8 (linear: 0, nonlinear:8) Notification: Performance of backend: time 7.565e-05/0.03464, allocations: 53.95 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 0.003357/0.038, allocations: 3.547 MB / 470.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of Templates: time 0.01192/0.04994, allocations: 6.689 MB / 477.6 MB, free: 2.766 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=AES_AES_Coursework_Typical_control_structures_Decoupling -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=8 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.Typical_control_structures.Decoupling.o AES_AES.Coursework.Typical_control_structures.Decoupling.c AES_AES.Coursework.Typical_control_structures.Decoupling.c:142:269: error: invalid operands to binary expression ('modelica_real' (aka 'double') and 'real_array' (aka 'struct base_array_s')) (data->localData[0]->realVars[28] /* P.P11.y variable */) = DIVISION_SIM(sub_alloc_real_array(tmp4, mul_alloc_real_array_scalar(tmp9, (data->simulationInfo->realParameter[19] /* P.P11.d PARAM */))),((data->simulationInfo->realParameter[20] /* P.P11.a_end PARAM */)) * (tmp13),"P.P11.a_end * P.P11.x_scaled",equationIndexes) + ((data->simulationInfo->realParameter[19] /* P.P11.d PARAM */)) * ((data->localData[0]->realVars[43] /* C1.CS variable */)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/util/division.h:45:70: note: expanded from macro 'DIVISION_SIM' #define DIVISION_SIM(a,b,msg,equation) (__OMC_DIV_SIM(threadData, a, b, msg, equationIndexes, data->simulationInfo->noThrowDivZero, data->localData[0]->timeValue, initial())) ^ AES_AES.Coursework.Typical_control_structures.Decoupling.c:177:271: error: invalid operands to binary expression ('modelica_real' (aka 'double') and 'real_array' (aka 'struct base_array_s')) (data->localData[0]->realVars[30] /* P.P12.y variable */) = DIVISION_SIM(sub_alloc_real_array(tmp15, mul_alloc_real_array_scalar(tmp20, (data->simulationInfo->realParameter[28] /* P.P12.d PARAM */))),((data->simulationInfo->realParameter[29] /* P.P12.a_end PARAM */)) * (tmp24),"P.P12.a_end * P.P12.x_scaled",equationIndexes) + ((data->simulationInfo->realParameter[28] /* P.P12.d PARAM */)) * ((data->localData[0]->realVars[49] /* C2.CS variable */)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/util/division.h:45:70: note: expanded from macro 'DIVISION_SIM' #define DIVISION_SIM(a,b,msg,equation) (__OMC_DIV_SIM(threadData, a, b, msg, equationIndexes, data->simulationInfo->noThrowDivZero, data->localData[0]->timeValue, initial())) ^ AES_AES.Coursework.Typical_control_structures.Decoupling.c:291:271: error: invalid operands to binary expression ('modelica_real' (aka 'double') and 'real_array' (aka 'struct base_array_s')) (data->localData[0]->realVars[34] /* P.P22.y variable */) = DIVISION_SIM(sub_alloc_real_array(tmp28, mul_alloc_real_array_scalar(tmp33, (data->simulationInfo->realParameter[46] /* P.P22.d PARAM */))),((data->simulationInfo->realParameter[47] /* P.P22.a_end PARAM */)) * (tmp37),"P.P22.a_end * P.P22.x_scaled",equationIndexes) + ((data->simulationInfo->realParameter[46] /* P.P22.d PARAM */)) * ((data->localData[0]->realVars[49] /* C2.CS variable */)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/util/division.h:45:70: note: expanded from macro 'DIVISION_SIM' #define DIVISION_SIM(a,b,msg,equation) (__OMC_DIV_SIM(threadData, a, b, msg, equationIndexes, data->simulationInfo->noThrowDivZero, data->localData[0]->timeValue, initial())) ^ AES_AES.Coursework.Typical_control_structures.Decoupling.c:325:271: error: invalid operands to binary expression ('modelica_real' (aka 'double') and 'real_array' (aka 'struct base_array_s')) (data->localData[0]->realVars[32] /* P.P21.y variable */) = DIVISION_SIM(sub_alloc_real_array(tmp39, mul_alloc_real_array_scalar(tmp44, (data->simulationInfo->realParameter[37] /* P.P21.d PARAM */))),((data->simulationInfo->realParameter[38] /* P.P21.a_end PARAM */)) * (tmp48),"P.P21.a_end * P.P21.x_scaled",equationIndexes) + ((data->simulationInfo->realParameter[37] /* P.P21.d PARAM */)) * ((data->localData[0]->realVars[43] /* C1.CS variable */)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/util/division.h:45:70: note: expanded from macro 'DIVISION_SIM' #define DIVISION_SIM(a,b,msg,equation) (__OMC_DIV_SIM(threadData, a, b, msg, equationIndexes, data->simulationInfo->noThrowDivZero, data->localData[0]->timeValue, initial())) ^ 4 errors generated. make: *** [: AES_AES.Coursework.Typical_control_structures.Decoupling.o] Error 1