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.001093/0.001093, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007135/0.007135, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.00683/0.00683, allocations: 1.221 MB / 292.6 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002911, allocations: 8 kB / 354.2 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.235, allocations: 50.68 MB / 404.9 MB, free: 9.961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.001184/0.2362, allocations: 0.9473 MB / 405.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008833/0.2371, allocations: 0.664 MB / 406.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.099e-05/0.2372, allocations: 0 / 406.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.2374, allocations: 31.92 kB / 406.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.2376, allocations: 84.39 kB / 406.6 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.524e-06/0.2376, allocations: 0 / 406.6 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.985e-05/0.2377, allocations: 40.12 kB / 406.6 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.771e-05/0.2377, allocations: 3.141 kB / 406.6 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.144e-05/0.2378, allocations: 18.77 kB / 406.6 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.2379, allocations: 16.77 kB / 406.7 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.2379, allocations: 5 kB / 406.7 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002749/0.2381, allocations: 213.3 kB / 406.9 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.362e-05/0.2382, allocations: 7.828 kB / 406.9 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.816e-05/0.2382, allocations: 42.64 kB / 406.9 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.2384, allocations: 121.3 kB / 407 MB, free: 9.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.2384, allocations: 0 / 407 MB, free: 9.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2384, allocations: 0 / 407 MB, free: 9.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.2384, allocations: 2.094 kB / 407 MB, free: 9.523 MB / 286.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.0002397/0.2387, allocations: 351.5 kB / 407.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2387, allocations: 15.86 kB / 407.4 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.986e-05/0.2387, allocations: 35.47 kB / 407.4 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.981e-05/0.2388, allocations: 3.75 kB / 407.4 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.2389, allocations: 181.2 kB / 407.6 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.2389, allocations: 1.531 kB / 407.6 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.2389, allocations: 4.719 kB / 407.6 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.278e-05/0.239, allocations: 55.25 kB / 407.7 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.239, allocations: 3.938 kB / 407.7 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.239, allocations: 0.9375 kB / 407.7 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.239, allocations: 0 / 407.7 MB, free: 8.848 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.843e-05/0.2391, allocations: 31.3 kB / 407.7 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001104/0.2392, allocations: 176.9 kB / 407.9 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.2394, allocations: 69.56 kB / 407.9 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.095e-05/0.2395, allocations: 21.91 kB / 408 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.2395, allocations: 6.797 kB / 408 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.088e-05/0.2395, allocations: 36.2 kB / 408 MB, free: 8.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.2395, allocations: 7.984 kB / 408 MB, free: 8.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.001973/0.2415, allocations: 0.6006 MB / 408.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.2415, allocations: 53.17 kB / 408.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.575e-05/0.2416, allocations: 128 kB / 408.8 MB, free: 8.207 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.2416, allocations: 26.73 kB / 408.8 MB, free: 8.176 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.023e-05/0.2417, allocations: 87.89 kB / 408.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.2417, allocations: 14.36 kB / 408.9 MB, free: 8.078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.514e-05/0.2418, allocations: 15.75 kB / 408.9 MB, free: 8.059 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.647e-05/0.2418, allocations: 319.8 kB / 409.2 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.242, allocations: 156.5 kB / 409.4 MB, free: 7.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.2422, allocations: 161 kB / 409.6 MB, free: 7.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.2426, allocations: 310.4 kB / 409.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.2427, allocations: 0 / 409.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005173/0.2432, allocations: 371.6 kB / 410.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.2432, allocations: 6.031 kB / 410.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2432, allocations: 1.875 kB / 410.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2432, allocations: 0 / 410.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.2434, allocations: 31.64 kB / 410.3 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2434, allocations: 4 kB / 410.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.2436, allocations: 7.844 kB / 410.3 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.2436, allocations: 37.03 kB / 410.3 MB, free: 7.465 MB / 286.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 6.715e-05/0.2437, allocations: 111.2 kB / 410.4 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.2437, allocations: 14.78 kB / 410.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.2442, allocations: 281.5 kB / 410.7 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.2442, allocations: 2.203 kB / 410.7 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2442, allocations: 0 / 410.7 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2442, allocations: 4.703 kB / 410.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008011/0.245, allocations: 0.5927 MB / 411.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.245, allocations: 1.25 kB / 411.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.2451, allocations: 24.41 kB / 411.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2452, allocations: 0 / 411.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.2452, allocations: 7.797 kB / 411.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-06/0.2452, allocations: 5.562 kB / 411.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2452, allocations: 0 / 411.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.2455, allocations: 337.2 kB / 411.7 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.097e-05/0.2456, allocations: 87.59 kB / 411.8 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.2456, allocations: 6.25 kB / 411.8 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.2457, allocations: 3.891 kB / 411.8 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.2458, allocations: 9.375 kB / 411.8 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.2458, allocations: 16.73 kB / 411.8 MB, free: 6.535 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.385e-05/0.2459, allocations: 108.9 kB / 411.9 MB, free: 6.445 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2459, allocations: 0 / 411.9 MB, free: 6.445 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.2461, allocations: 22.5 kB / 411.9 MB, free: 6.445 MB / 286.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.0004904/0.2466, allocations: 0.8591 MB / 412.8 MB, free: 5.723 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.2469, allocations: 216 kB / 413 MB, free: 5.688 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.247, allocations: 0 / 413 MB, free: 5.688 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.2471, allocations: 85.78 kB / 413.1 MB, free: 5.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.2473, allocations: 9.5 kB / 413.1 MB, free: 5.664 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.2493, allocations: 2.199 MB / 415.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.2494, allocations: 0.6869 MB / 416 MB, free: 3.531 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.072e-05/0.2495, allocations: 22.8 kB / 416 MB, free: 3.523 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.532e-05/0.2496, allocations: 27.38 kB / 416 MB, free: 3.512 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2496, allocations: 0 / 416 MB, free: 3.512 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01381/0.2634, allocations: 2.784 MB / 418.8 MB, free: 3.273 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.2637, allocations: 256.8 kB / 419.1 MB, free: 3.008 MB / 286.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:155: ./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:188: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:190: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:190: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:190: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:190: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:190: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