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.001074/0.001074, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001109/0.001109, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.223/1.223, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007179/0.007179, allocations: 1.223 MB / 291.2 MB, free: 1.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 55.91 kB / 351.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07724/0.07839, allocations: 49.69 MB / 401.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002031/0.08045, allocations: 1.295 MB / 402.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008833/0.08135, allocations: 0.67 MB / 403.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.119e-05/0.08138, allocations: 0 / 403.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002107/0.0816, allocations: 35.89 kB / 403.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.08186, allocations: 87.7 kB / 403.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.595e-06/0.08187, allocations: 0 / 403.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.734e-05/0.08193, allocations: 35.91 kB / 403.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.078e-05/0.08197, allocations: 4 kB / 403.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.75e-05/0.08203, allocations: 23.84 kB / 403.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.396e-05/0.08209, allocations: 11.94 kB / 403.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.0821, allocations: 0 / 403.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002923/0.0824, allocations: 215.4 kB / 403.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.492e-05/0.08244, allocations: 7.984 kB / 403.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.08248, allocations: 15.88 kB / 403.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.08268, allocations: 127.8 kB / 404 MB, free: 2.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.0827, allocations: 4 kB / 404 MB, free: 2.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0827, allocations: 0 / 404 MB, free: 2.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.08271, allocations: 0 / 404 MB, free: 2.801 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.0003349/0.08305, allocations: 355.3 kB / 404.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.08309, allocations: 8.031 kB / 404.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.137e-05/0.08313, allocations: 30.75 kB / 404.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.08315, allocations: 8.844 kB / 404.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.08334, allocations: 204.1 kB / 404.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.08335, allocations: 4.375 kB / 404.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.08337, allocations: 384 / 404.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.919e-05/0.08347, allocations: 53.73 kB / 404.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.08348, allocations: 0 / 404.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.08349, allocations: 0 / 404.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.0835, allocations: 4 kB / 404.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.279e-05/0.08356, allocations: 27.97 kB / 404.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.08372, allocations: 169.7 kB / 404.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.08393, allocations: 70.53 kB / 404.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.423e-05/0.08398, allocations: 20.94 kB / 404.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.08402, allocations: 15.98 kB / 404.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.08406, allocations: 38.44 kB / 404.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.08406, allocations: 0 / 404.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.002076/0.08614, allocations: 0.5985 MB / 405.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.08619, allocations: 55.41 kB / 405.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.333e-05/0.08627, allocations: 121.8 kB / 405.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.08631, allocations: 29.7 kB / 405.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.08635, allocations: 84.14 kB / 405.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.052e-05/0.0864, allocations: 23.73 kB / 405.9 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.08649, allocations: 37.69 kB / 405.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.08658, allocations: 322.8 kB / 406.2 MB, free: 336 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.08681, allocations: 155.8 kB / 406.4 MB, free: 180 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.08704, allocations: 155.8 kB / 406.5 MB, free: 24 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.08749, allocations: 308.8 kB / 406.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.0875, allocations: 4 kB / 406.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005362/0.08805, allocations: 377.1 kB / 407.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.08807, allocations: 4 kB / 407.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.08808, allocations: 7.875 kB / 407.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.08809, allocations: 0 / 407.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.0883, allocations: 35.95 kB / 407.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.08831, allocations: 0 / 407.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.08844, allocations: 4 kB / 407.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.0885, allocations: 35.97 kB / 407.3 MB, free: 15.25 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 8.876e-05/0.08859, allocations: 113.8 kB / 407.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.08863, allocations: 3.938 kB / 407.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.08908, allocations: 289.2 kB / 407.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.0891, allocations: 4 kB / 407.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.08911, allocations: 0 / 407.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.08911, allocations: 0 / 407.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008729/0.08999, allocations: 0.5867 MB / 408.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.09, allocations: 0 / 408.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.09015, allocations: 23.97 kB / 408.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.09017, allocations: 4 kB / 408.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.09019, allocations: 11.98 kB / 408.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.0902, allocations: 0 / 408.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.0902, allocations: 0 / 408.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003719/0.09058, allocations: 332.4 kB / 408.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.09062, allocations: 89 kB / 408.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.09066, allocations: 4 kB / 408.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.0908, allocations: 4 kB / 408.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.09084, allocations: 11.98 kB / 408.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.09087, allocations: 19.98 kB / 408.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.076e-05/0.09093, allocations: 99.2 kB / 408.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09093, allocations: 0 / 408.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.09121, allocations: 28 kB / 408.9 MB, free: 13.54 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.0006499/0.09186, allocations: 0.854 MB / 409.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.09218, allocations: 215.8 kB / 409.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.09219, allocations: 7.938 kB / 409.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.09231, allocations: 87.88 kB / 410 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.09254, allocations: 10.78 kB / 410 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.09455, allocations: 2.17 MB / 412.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.09479, allocations: 0.6887 MB / 412.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.969e-05/0.09489, allocations: 24.12 kB / 412.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.09502, allocations: 31.39 kB / 413 MB, free: 9.316 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09502, allocations: 0 / 413 MB, free: 9.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.1068, allocations: 2.885 MB / 415.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.107, allocations: 250.8 kB / 416.1 MB, free: 6.348 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: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