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: translateModel(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic") translateModel(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007513/0.007513, allocations: 1.233 MB / 291.6 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 352.3 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2811, allocations: 49.7 MB / 402 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002393/0.2836, allocations: 1.221 MB / 403.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2846, allocations: 0.6703 MB / 403.9 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.435e-05/0.2847, allocations: 0.5625 kB / 403.9 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.2849, allocations: 31.58 kB / 404 MB, free: 9.324 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003314/0.2853, allocations: 92.08 kB / 404 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.499e-06/0.2853, allocations: 3.938 kB / 404 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.991e-05/0.2853, allocations: 25.91 kB / 404.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.2854, allocations: 2.047 kB / 404.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.795e-05/0.2855, allocations: 19.47 kB / 404.1 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.854e-05/0.2856, allocations: 19.25 kB / 404.1 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.2856, allocations: 0.9375 kB / 404.1 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004241/0.286, allocations: 214.6 kB / 404.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.892e-05/0.2861, allocations: 8.156 kB / 404.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.2861, allocations: 16.66 kB / 404.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2864, allocations: 156.9 kB / 404.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2865, allocations: 1.156 kB / 404.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2865, allocations: 0 / 404.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.2865, allocations: 0 / 404.5 MB, free: 9.086 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.0004425/0.2869, allocations: 361.7 kB / 404.9 MB, free: 8.707 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.287, allocations: 13.83 kB / 404.9 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.287, allocations: 5.875 kB / 404.9 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.2873, allocations: 186.3 kB / 405.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.2873, allocations: 384 / 405.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.2873, allocations: 2.25 kB / 405.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.2874, allocations: 53.36 kB / 405.1 MB, free: 8.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2875, allocations: 3.938 kB / 405.1 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.2875, allocations: 5.156 kB / 405.1 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2875, allocations: 0 / 405.1 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.619e-05/0.2876, allocations: 33.73 kB / 405.2 MB, free: 8.434 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.2877, allocations: 168.3 kB / 405.3 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.288, allocations: 70.84 kB / 405.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.071e-05/0.2881, allocations: 16.97 kB / 405.4 MB, free: 8.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.291e-05/0.2881, allocations: 11.55 kB / 405.4 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.2881, allocations: 38.08 kB / 405.4 MB, free: 8.148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2881, allocations: 4 kB / 405.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.002125/0.2903, allocations: 0.5996 MB / 406.1 MB, free: 7.984 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.2903, allocations: 52.53 kB / 406.1 MB, free: 7.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.978e-05/0.2904, allocations: 122.9 kB / 406.2 MB, free: 7.816 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.2904, allocations: 26.36 kB / 406.3 MB, free: 7.785 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.666e-05/0.2905, allocations: 86.95 kB / 406.3 MB, free: 7.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.017e-05/0.2905, allocations: 16.06 kB / 406.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.116e-05/0.2906, allocations: 43.42 kB / 406.4 MB, free: 7.668 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/0.2907, allocations: 323.3 kB / 406.7 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.2909, allocations: 154.9 kB / 406.9 MB, free: 7.312 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.2911, allocations: 152.3 kB / 407 MB, free: 7.281 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004874/0.2916, allocations: 313.5 kB / 407.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2917, allocations: 1.906 kB / 407.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005497/0.2922, allocations: 370.3 kB / 407.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2922, allocations: 5.984 kB / 407.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2922, allocations: 1.062 kB / 407.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2923, allocations: 0 / 407.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.2925, allocations: 44.55 kB / 407.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2925, allocations: 2.719 kB / 407.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.2926, allocations: 7.531 kB / 407.7 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-05/0.2927, allocations: 27.08 kB / 407.8 MB, free: 7.078 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 7.29e-05/0.2927, allocations: 115 kB / 407.9 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.2928, allocations: 14.33 kB / 407.9 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004866/0.2933, allocations: 281.6 kB / 408.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2933, allocations: 1.531 kB / 408.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2933, allocations: 0.6094 kB / 408.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.2933, allocations: 5.281 kB / 408.2 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008556/0.2942, allocations: 0.5964 MB / 408.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2942, allocations: 0 / 408.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.2943, allocations: 34.09 kB / 408.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2943, allocations: 0 / 408.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.2944, allocations: 7.109 kB / 408.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2944, allocations: 1.844 kB / 408.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2944, allocations: 0.7031 kB / 408.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.2947, allocations: 332.5 kB / 409.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.2948, allocations: 84.06 kB / 409.2 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/0.2948, allocations: 2.766 kB / 409.2 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.295, allocations: 3.438 kB / 409.2 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.295, allocations: 14.14 kB / 409.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.295, allocations: 16.34 kB / 409.3 MB, free: 6.148 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.2951, allocations: 101.1 kB / 409.4 MB, free: 6.066 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.2951, allocations: 0 / 409.4 MB, free: 6.066 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.2954, allocations: 35.23 kB / 409.4 MB, free: 6.055 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.0002377/0.2956, allocations: 121 kB / 409.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003328/0.296, allocations: 216.7 kB / 409.7 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.296, allocations: 1.219 kB / 409.7 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.2961, allocations: 92.95 kB / 409.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.2963, allocations: 3.547 kB / 409.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.2967, allocations: 230.9 kB / 410 MB, free: 5.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.2968, allocations: 0.6898 MB / 410.7 MB, free: 5.051 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.114e-05/0.2969, allocations: 30.22 kB / 410.8 MB, free: 5.035 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.646e-05/0.297, allocations: 28.84 kB / 410.8 MB, free: 5.023 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.297, allocations: 0 / 410.8 MB, free: 5.023 MB / 286.1 MB Notification: Performance of Templates: time 0.004485/0.3015, allocations: 1.888 MB / 412.7 MB, free: 4.871 MB / 286.1 MB make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.o FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.c FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.c:212:19: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp17 = tmp15 - (tmp16); ~~~~~ ^ ~~~~~~~ FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.c:214:224: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp20 = (((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(tmp7 - (tmp8),tmp9 - (tmp10),"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))) * (tmp11 - (tmp12) - (tmp13 - (tmp14))),(tmp17 * tmp17),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp18))); ~~~~ ^ ~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/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:214:238: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp20 = (((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(tmp7 - (tmp8),tmp9 - (tmp10),"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))) * (tmp11 - (tmp12) - (tmp13 - (tmp14))),(tmp17 * tmp17),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp18))); ~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/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:214:724: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp20 = (((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(tmp7 - (tmp8),tmp9 - (tmp10),"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))) * (tmp11 - (tmp12) - (tmp13 - (tmp14))),(tmp17 * tmp17),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp18))); ~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/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:214:743: error: invalid operands to binary expression ('real_array' (aka 'struct base_array_s') and 'real_array') tmp20 = (((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(tmp7 - (tmp8),tmp9 - (tmp10),"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))) * (tmp11 - (tmp12) - (tmp13 - (tmp14))),(tmp17 * tmp17),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp18))); ~~~~~ ^ ~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/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:214:906: error: invalid operands to binary expression ('double' and 'real_array' (aka 'struct base_array_s')) tmp20 = (((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(tmp7 - (tmp8),tmp9 - (tmp10),"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))) * (tmp11 - (tmp12) - (tmp13 - (tmp14))),(tmp17 * tmp17),"(material.Hk[$cse1] - material.Hk[$cse1 - 1]) ^ 2.0",equationIndexes)) * (fabs((data->localData[0]->realVars[3] /* H DUMMY_STATE */)) - (tmp18))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~ 6 errors generated. make: *** [: FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.o] Error 1