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.0008864/0.0008862, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001051/0.001051, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007111/0.007111, allocations: 1.232 MB / 292.3 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002814, allocations: 8 kB / 353.5 MB, free: 2.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2932, allocations: 50.68 MB / 404.2 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002385/0.2957, allocations: 0.949 MB / 405.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.2969, allocations: 0.6016 MB / 405.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.29e-05/0.297, allocations: 1.062 kB / 405.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.2972, allocations: 23.89 kB / 405.8 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003634/0.2976, allocations: 69.62 kB / 405.9 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.819e-06/0.2976, allocations: 0 / 405.9 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.8e-05/0.2977, allocations: 37.36 kB / 405.9 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.824e-05/0.2978, allocations: 2.094 kB / 405.9 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.539e-05/0.2978, allocations: 19.27 kB / 405.9 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.128e-05/0.2979, allocations: 14.97 kB / 405.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-06/0.2979, allocations: 1.031 kB / 405.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002851/0.2982, allocations: 128.9 kB / 406.1 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.318e-05/0.2983, allocations: 16.67 kB / 406.1 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.2983, allocations: 28.11 kB / 406.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.2985, allocations: 97.72 kB / 406.2 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2986, allocations: 1 kB / 406.2 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2986, allocations: 0 / 406.2 MB, free: 9.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2986, allocations: 0 / 406.2 MB, free: 9.391 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.0003889/0.299, allocations: 357.4 kB / 406.6 MB, free: 9.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.299, allocations: 9.25 kB / 406.6 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.039e-05/0.2991, allocations: 32.28 kB / 406.6 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.2991, allocations: 3.094 kB / 406.6 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.2993, allocations: 182.1 kB / 406.8 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.2993, allocations: 5.188 kB / 406.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.2993, allocations: 1.75 kB / 406.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.2995, allocations: 48.98 kB / 406.8 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2995, allocations: 6.719 kB / 406.8 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.2995, allocations: 3.953 kB / 406.8 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.2995, allocations: 0.875 kB / 406.8 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.028e-05/0.2996, allocations: 29.06 kB / 406.9 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.2998, allocations: 173.6 kB / 407 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.3001, allocations: 70.91 kB / 407.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.173e-05/0.3001, allocations: 24.67 kB / 407.1 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.795e-05/0.3002, allocations: 14.91 kB / 407.2 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.3002, allocations: 35.56 kB / 407.2 MB, free: 8.414 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3002, allocations: 0 / 407.2 MB, free: 8.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.002177/0.3024, allocations: 0.6031 MB / 407.8 MB, free: 8.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.3024, allocations: 56.69 kB / 407.8 MB, free: 8.184 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.3026, allocations: 126.3 kB / 408 MB, free: 8.074 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.3026, allocations: 25.7 kB / 408 MB, free: 8.043 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.3026, allocations: 87.58 kB / 408.1 MB, free: 7.957 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.174e-05/0.3027, allocations: 16.09 kB / 408.1 MB, free: 7.945 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.687e-05/0.3027, allocations: 1.188 kB / 408.1 MB, free: 7.945 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.597e-05/0.3028, allocations: 317.6 kB / 408.4 MB, free: 7.629 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.3031, allocations: 154.3 kB / 408.6 MB, free: 7.598 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.3034, allocations: 154.9 kB / 408.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.3037, allocations: 157.5 kB / 408.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.3037, allocations: 0 / 408.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006048/0.3043, allocations: 375.1 kB / 409.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3043, allocations: 4.562 kB / 409.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3043, allocations: 0.7969 kB / 409.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3043, allocations: 0 / 409.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.3045, allocations: 39.61 kB / 409.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3045, allocations: 0.6094 kB / 409.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3047, allocations: 2.875 kB / 409.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.3047, allocations: 30.72 kB / 409.3 MB, free: 7.402 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.727e-05/0.3048, allocations: 119.7 kB / 409.4 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.393e-05/0.3049, allocations: 7.375 kB / 409.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005557/0.3054, allocations: 290.5 kB / 409.7 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3054, allocations: 0 / 409.7 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3054, allocations: 5.516 kB / 409.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3055, allocations: 0.9844 kB / 409.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009636/0.3064, allocations: 0.5832 MB / 410.3 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3064, allocations: 6 kB / 410.3 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3066, allocations: 27.62 kB / 410.3 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.3066, allocations: 5.297 kB / 410.3 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.3066, allocations: 10.53 kB / 410.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3066, allocations: 0.7031 kB / 410.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.3066, allocations: 1.469 kB / 410.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004838/0.3071, allocations: 330.9 kB / 410.7 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.3072, allocations: 85.67 kB / 410.8 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.3072, allocations: 4.656 kB / 410.8 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.3073, allocations: 8.188 kB / 410.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.3074, allocations: 9.75 kB / 410.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/0.3074, allocations: 20.91 kB / 410.8 MB, free: 6.465 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.723e-05/0.3075, allocations: 100.8 kB / 410.9 MB, free: 6.383 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3075, allocations: 0 / 410.9 MB, free: 6.383 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.3078, allocations: 26.52 kB / 410.9 MB, free: 6.379 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000737/0.3086, allocations: 0.8498 MB / 411.8 MB, free: 5.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004145/0.309, allocations: 219.1 kB / 412 MB, free: 5.629 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.309, allocations: 1.031 kB / 412 MB, free: 5.629 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.3092, allocations: 84.75 kB / 412.1 MB, free: 5.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.3094, allocations: 10.36 kB / 412.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.311, allocations: 1.076 MB / 413.2 MB, free: 5.082 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.3112, allocations: 0.6942 MB / 413.9 MB, free: 4.379 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.3113, allocations: 21.72 kB / 413.9 MB, free: 4.371 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3115, allocations: 28.55 kB / 413.9 MB, free: 4.359 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3115, allocations: 0 / 413.9 MB, free: 4.359 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.3262, allocations: 2.782 MB / 416.7 MB, free: 4.125 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/0.3264, allocations: 232.7 kB / 416.9 MB, free: 3.887 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'/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:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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:220: 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:234: 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:710: 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:729: 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:890: 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