Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 103.2 kB / 16.42 MB, free: 6.484 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.001542/0.001542, allocations: 192.2 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.279/1.279, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08833/0.08833, allocations: 22.33 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.416e-05, allocations: 4.953 kB / 437.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002534/0.002567, allocations: 1.399 MB / 439.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.004311, allocations: 1.369 MB / 440.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.004437, allocations: 4 kB / 440.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003645/0.004808, allocations: 87.34 kB / 440.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.005046, allocations: 91.47 kB / 440.6 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.005345, allocations: 171.7 kB / 440.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004568/0.005811, allocations: 427.6 kB / 441.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.005996, allocations: 91.41 kB / 441.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.006151, allocations: 143.4 kB / 441.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.00634, allocations: 139.3 kB / 441.6 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.11e-05/0.006388, allocations: 20 kB / 441.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.441e-05/0.00643, allocations: 24 kB / 441.6 MB, free: 7.887 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.000308/0.006743, allocations: 474.1 kB / 442.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001577/0.006907, allocations: 311.3 kB / 442.4 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.457e-05/0.006968, allocations: 39.81 kB / 442.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.974e-05/0.007024, allocations: 23.81 kB / 442.4 MB, free: 7.047 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: 43 (43) * Number of variables: 43 (43) Notification: Performance of Bindings: time 0.001053/0.008082, allocations: 1.263 MB / 443.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FunctionAlias: time 4.091e-05/0.008129, allocations: 39.95 kB / 443.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0003835/0.008519, allocations: 463.4 kB / 444.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of simplify1: time 4.831e-05/0.008573, allocations: 43.94 kB / 444.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of Alias: time 0.001102/0.00968, allocations: 0.9691 MB / 445.2 MB, free: 3.953 MB / 318.1 MB Notification: Performance of simplify2: time 4.847e-05/0.00974, allocations: 39.95 kB / 445.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of Events: time 6.408e-05/0.00981, allocations: 31.95 kB / 445.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001783/0.009994, allocations: 138.2 kB / 445.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001418/0.01014, allocations: 128.1 kB / 445.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of Causalize: time 0.0004662/0.01062, allocations: 407.8 kB / 445.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0002657/0.01089, allocations: 328.1 kB / 446.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of Inline: time 0.0006601/0.01156, allocations: 0.6967 MB / 446.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of Partitioning: time 4.845e-05/0.01162, allocations: 50.3 kB / 447 MB, free: 2.07 MB / 318.1 MB Notification: Performance of Cleanup: time 2.253e-05/0.01164, allocations: 23.95 kB / 447 MB, free: 2.047 MB / 318.1 MB Notification: Performance of Causalize: time 0.001678/0.01333, allocations: 1.518 MB / 448.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of Tearing: time 5.169e-06/0.01334, allocations: 4 kB / 448.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of Initialization: time 1.873e-06/0.01336, allocations: 4 kB / 448.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of Tearing: time 1.483e-06/0.01337, allocations: 3.938 kB / 448.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of Categorize: time 6.732e-06/0.01338, allocations: 0 / 448.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of Solve: time 0.0004091/0.01379, allocations: 430.7 kB / 449 MB, free: 36 kB / 318.1 MB Notification: Performance of Jacobian: time 0.0002905/0.01409, allocations: 386.1 kB / 449.3 MB, free: 15.61 MB / 334.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: ............................. 4 (4) {N.y, g1.x_scaled, g2.x_scaled, beta1.u} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 1 (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: ........... 21 (scalar:19, array:2, 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: ........... 36 (scalar:29, array:7, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 4.334e-05/0.01414, allocations: 34.92 kB / 449.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of SimCode: time 0.001125/0.01527, allocations: 1.634 MB / 451 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Templates: time 0.004366/0.01965, allocations: 2.013 MB / 453 MB, free: 11.87 MB / 334.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=1 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.c 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_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=1 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_functions.o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_functions.c 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_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=1 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_records.o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_records.c 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_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=1 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_01exo.o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_01exo.c 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_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=1 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_02nls.o AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_02nls.c AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_02nls.c:38:10: error: assigning to 'double' from incompatible type 'real_array' (aka 'struct base_array_s') res[0] = sub_alloc_real_array(division_alloc_real_array_scalar(threadData,tmp0,(data->simulationInfo->realParameter[20] /* g2.a_end PARAM */),"g2.a_end"), tmp1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec_02nls.o] Error 1