Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.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/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-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: "" <> buildModelFMU(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001312/0.001312, allocations: 191.6 kB / 16.25 MB, free: 6.629 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.184/1.184, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.06311/0.06311, allocations: 1.236 MB / 291.3 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 55.91 kB / 351.9 MB, free: 6.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08628, allocations: 49.69 MB / 401.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.001742/0.08805, allocations: 1.293 MB / 402.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008111/0.08887, allocations: 0.6583 MB / 403.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.508e-05/0.08891, allocations: 4 kB / 403.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002089/0.08912, allocations: 35.83 kB / 403.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002547/0.08939, allocations: 83.72 kB / 403.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.486e-06/0.0894, allocations: 0 / 403.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.893e-05/0.08946, allocations: 23.92 kB / 403.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.973e-05/0.08949, allocations: 0 / 403.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.47e-05/0.08955, allocations: 15.92 kB / 403.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.657e-05/0.08961, allocations: 15.86 kB / 403.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.08962, allocations: 0 / 403.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.08987, allocations: 207.5 kB / 404 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.08991, allocations: 11.92 kB / 404 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.08994, allocations: 15.88 kB / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.09012, allocations: 127.8 kB / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.09013, allocations: 0 / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09014, allocations: 0 / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.09015, allocations: 4 kB / 404.1 MB, free: 2.703 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003431/0.0905, allocations: 343.3 kB / 404.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.09054, allocations: 12.03 kB / 404.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.821e-05/0.09058, allocations: 38.75 kB / 404.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.196e-05/0.0906, allocations: 8.844 kB / 404.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.09078, allocations: 192.1 kB / 404.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-06/0.09079, allocations: 4.375 kB / 404.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.09081, allocations: 4.375 kB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.594e-05/0.09089, allocations: 45.81 kB / 404.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.09091, allocations: 0 / 404.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-06/0.09092, allocations: 0 / 404.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.09092, allocations: 0 / 404.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.3e-05/0.09098, allocations: 31.91 kB / 404.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.09113, allocations: 177.6 kB / 404.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.09132, allocations: 70.53 kB / 405 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.274e-05/0.09137, allocations: 20.94 kB / 405 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.718e-05/0.09141, allocations: 11.98 kB / 405 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.09143, allocations: 34.5 kB / 405.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.09144, allocations: 4 kB / 405.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.001968/0.09341, allocations: 0.5946 MB / 405.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.09345, allocations: 55.41 kB / 405.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.555e-05/0.09354, allocations: 121.8 kB / 405.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.09358, allocations: 29.7 kB / 405.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.344e-05/0.09361, allocations: 92.08 kB / 406 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.09366, allocations: 19.73 kB / 406 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/0.09375, allocations: 37.69 kB / 406 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.835e-05/0.09384, allocations: 326.8 kB / 406.3 MB, free: 244 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.09405, allocations: 151.8 kB / 406.5 MB, free: 92 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/0.09428, allocations: 159.9 kB / 406.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.0947, allocations: 308.6 kB / 407 MB, free: 15.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.09471, allocations: 0 / 407 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004978/0.09521, allocations: 369.5 kB / 407.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.09523, allocations: 7.984 kB / 407.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.09524, allocations: 4 kB / 407.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.09526, allocations: 0 / 407.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.09544, allocations: 31.91 kB / 407.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.09546, allocations: 11.94 kB / 407.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.09558, allocations: 0 / 407.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.09564, allocations: 35.97 kB / 407.4 MB, free: 15.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.906e-05/0.09572, allocations: 113.8 kB / 407.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.09575, allocations: 11.83 kB / 407.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004165/0.09618, allocations: 281.3 kB / 407.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.09619, allocations: 288 / 407.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.0962, allocations: 4 kB / 407.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.09621, allocations: 4 kB / 407.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008168/0.09703, allocations: 0.5906 MB / 408.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.09704, allocations: 3.984 kB / 408.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.09719, allocations: 23.92 kB / 408.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.0972, allocations: 0 / 408.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.09722, allocations: 11.92 kB / 408.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.09723, allocations: 7.984 kB / 408.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09724, allocations: 0 / 408.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.09759, allocations: 332.2 kB / 408.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.09763, allocations: 85.02 kB / 408.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.09766, allocations: 4 kB / 408.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.0978, allocations: 4.188 kB / 408.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/0.09784, allocations: 11.98 kB / 408.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.09787, allocations: 23.92 kB / 408.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.045e-05/0.09793, allocations: 103.2 kB / 409 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09793, allocations: 4 kB / 409 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.09818, allocations: 20 kB / 409 MB, free: 13.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($cse1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0005476/0.09874, allocations: 0.8498 MB / 409.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002791/0.09903, allocations: 223.8 kB / 410.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.09904, allocations: 0 / 410.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.09915, allocations: 83.95 kB / 410.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.09936, allocations: 14.92 kB / 410.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.1012, allocations: 2.18 MB / 412.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.1014, allocations: 0.6924 MB / 413.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.149e-05/0.1015, allocations: 20.12 kB / 413.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.4e-05/0.1016, allocations: 31.39 kB / 413.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1016, allocations: 0 / 413.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3738/0.4754, allocations: 2.953 MB / 416.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.4757, allocations: 255.6 kB / 416.3 MB, free: 6.199 MB / 350.1 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.o FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c In file included from FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:7: In file included from ./FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:161: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:205:19: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp15 = tmp13 - (tmp14); ~~~~~ ^ ~~~~~~~ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:207:224: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp18 = (((modelica_real)sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */)))) * (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1) + (DIVISION_SIM(tmp5 - (tmp6),tmp7 - (tmp8),"material.Hk[$cse1] - material.Hk[$cse1 - 1]",equationIndexes)) * ((sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */))) * (50000.0) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) + (DIVISION_SIM((real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */))-1) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) * (tmp9 - (tmp10) - (tmp11 - (tmp12))),(tmp15 * tmp15),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp16))); ~~~~ ^ ~~~~~~ ./util/division.h:45:67: 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())) ^ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:207:238: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp18 = (((modelica_real)sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */)))) * (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1) + (DIVISION_SIM(tmp5 - (tmp6),tmp7 - (tmp8),"material.Hk[$cse1] - material.Hk[$cse1 - 1]",equationIndexes)) * ((sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */))) * (50000.0) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) + (DIVISION_SIM((real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */))-1) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) * (tmp9 - (tmp10) - (tmp11 - (tmp12))),(tmp15 * tmp15),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp16))); ~~~~ ^ ~~~~~~ ./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())) ^ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:207:722: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp18 = (((modelica_real)sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */)))) * (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1) + (DIVISION_SIM(tmp5 - (tmp6),tmp7 - (tmp8),"material.Hk[$cse1] - material.Hk[$cse1 - 1]",equationIndexes)) * ((sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */))) * (50000.0) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) + (DIVISION_SIM((real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */))-1) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) * (tmp9 - (tmp10) - (tmp11 - (tmp12))),(tmp15 * tmp15),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp16))); ~~~~ ^ ~~~~~~~ ./util/division.h:45:67: 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())) ^ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:207:741: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp18 = (((modelica_real)sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */)))) * (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1) + (DIVISION_SIM(tmp5 - (tmp6),tmp7 - (tmp8),"material.Hk[$cse1] - material.Hk[$cse1 - 1]",equationIndexes)) * ((sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */))) * (50000.0) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) + (DIVISION_SIM((real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */))-1) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) * (tmp9 - (tmp10) - (tmp11 - (tmp12))),(tmp15 * tmp15),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp16))); ~~~~~ ^ ~~~~~~~ ./util/division.h:45:67: 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())) ^ FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.c:207:904: error: invalid operands to binary expression ('double' and 'real_array' (aka 'struct base_array_s')) tmp18 = (((modelica_real)sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */)))) * (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1) + (DIVISION_SIM(tmp5 - (tmp6),tmp7 - (tmp8),"material.Hk[$cse1] - material.Hk[$cse1 - 1]",equationIndexes)) * ((sign((data->localData[0]->realVars[3] /* H DUMMY_STATE */))) * (50000.0) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) + (DIVISION_SIM((real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */))-1) - (real_get(_OMC_LIT6, ((data->localData[0]->integerVars[0] /* $cse1 DISCRETE */) - ((modelica_integer) 1))-1))) * (tmp9 - (tmp10) - (tmp11 - (tmp12))),(tmp15 * tmp15),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp16))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ 2 warnings and 6 errors generated. make: *** [: FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic.o] Error 1