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.001009/0.001009, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001172/0.001172, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007263/0.007263, allocations: 1.237 MB / 291.3 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.91 kB / 351.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09732, allocations: 49.7 MB / 401.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002508/0.09986, allocations: 1.297 MB / 402.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009093/0.1008, allocations: 0.6544 MB / 403.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.768e-05/0.1008, allocations: 4 kB / 403.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.1011, allocations: 31.89 kB / 403.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002706/0.1014, allocations: 75.73 kB / 403.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.005e-06/0.1014, allocations: 4 kB / 403.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.984e-05/0.1014, allocations: 27.84 kB / 403.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.024e-05/0.1015, allocations: 4 kB / 403.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.969e-05/0.1015, allocations: 19.91 kB / 403.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.318e-05/0.1016, allocations: 15.94 kB / 403.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.1016, allocations: 0 / 403.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.1019, allocations: 203.4 kB / 403.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.819e-05/0.1019, allocations: 7.984 kB / 403.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.406e-05/0.102, allocations: 15.88 kB / 403.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1022, allocations: 127.8 kB / 404 MB, free: 2.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1022, allocations: 4 kB / 404 MB, free: 2.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1022, allocations: 0 / 404 MB, free: 2.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1022, allocations: 0 / 404 MB, free: 2.805 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.0003664/0.1026, allocations: 351.3 kB / 404.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.1026, allocations: 15.89 kB / 404.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.1026, allocations: 4.844 kB / 404.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.1028, allocations: 196.1 kB / 404.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.1028, allocations: 8.375 kB / 404.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.1029, allocations: 384 / 404.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.131e-05/0.103, allocations: 50 kB / 404.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.103, allocations: 0 / 404.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-06/0.103, allocations: 0 / 404.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.103, allocations: 4 kB / 404.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.615e-05/0.103, allocations: 31.95 kB / 404.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.1032, allocations: 169.7 kB / 404.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.1034, allocations: 78.47 kB / 404.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.229e-05/0.1035, allocations: 20.94 kB / 404.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1035, allocations: 7.984 kB / 404.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.1036, allocations: 38.5 kB / 405 MB, free: 1.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.1036, allocations: 7.938 kB / 405 MB, free: 1.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.002095/0.1057, allocations: 0.5946 MB / 405.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.1057, allocations: 51.41 kB / 405.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.849e-05/0.1058, allocations: 125.8 kB / 405.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.1058, allocations: 29.7 kB / 405.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.484e-05/0.1059, allocations: 88.14 kB / 405.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.1059, allocations: 15.73 kB / 405.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-05/0.106, allocations: 45.69 kB / 405.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.1061, allocations: 318.8 kB / 406.2 MB, free: 380 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.1063, allocations: 151.8 kB / 406.4 MB, free: 228 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.1065, allocations: 159.8 kB / 406.5 MB, free: 68 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.107, allocations: 308.5 kB / 406.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.107, allocations: 0 / 406.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005244/0.1075, allocations: 373.2 kB / 407.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.1075, allocations: 4 kB / 407.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1075, allocations: 4 kB / 407.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1076, allocations: 7.984 kB / 407.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.1078, allocations: 27.97 kB / 407.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1078, allocations: 3.938 kB / 407.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.1079, allocations: 4 kB / 407.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.674e-05/0.108, allocations: 31.97 kB / 407.3 MB, free: 15.31 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.614e-05/0.1081, allocations: 113.8 kB / 407.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.1081, allocations: 11.92 kB / 407.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004417/0.1086, allocations: 285.6 kB / 407.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1086, allocations: 4 kB / 407.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1086, allocations: 4 kB / 407.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1086, allocations: 0 / 407.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000913/0.1095, allocations: 0.5828 MB / 408.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1095, allocations: 7.984 kB / 408.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.1097, allocations: 19.98 kB / 408.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.1097, allocations: 0 / 408.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.1097, allocations: 7.984 kB / 408.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1097, allocations: 0 / 408.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1097, allocations: 4.031 kB / 408.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.1101, allocations: 340.1 kB / 408.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.1102, allocations: 85.02 kB / 408.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.1102, allocations: 7.938 kB / 408.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1103, allocations: 4 kB / 408.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.1104, allocations: 7.984 kB / 408.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.1104, allocations: 15.98 kB / 408.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.808e-05/0.1105, allocations: 103.3 kB / 408.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1105, allocations: 4 kB / 408.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.1108, allocations: 27.94 kB / 408.9 MB, free: 13.58 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.0002123/0.111, allocations: 115.2 kB / 409 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003548/0.1113, allocations: 223.8 kB / 409.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1114, allocations: 4 kB / 409.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.1115, allocations: 87.88 kB / 409.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.1117, allocations: 10.98 kB / 409.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004584/0.1122, allocations: 247.9 kB / 409.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1125, allocations: 0.6846 MB / 410.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.125e-05/0.1126, allocations: 28.2 kB / 410.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.156e-05/0.1127, allocations: 27.41 kB / 410.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1127, allocations: 0 / 410.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Templates: time 0.004046/0.1167, allocations: 1.881 MB / 412.2 MB, free: 10.26 MB / 350.1 MB make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile clang -Os -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