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.00814/0.00814, allocations: 96.38 kB / 15.73 MB, free: 5.996 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.002034/0.002035, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007877/0.007877, allocations: 1.232 MB / 291.8 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 62.27 kB / 403.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1172, allocations: 49.71 MB / 453 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002461/0.1197, allocations: 1.226 MB / 454.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1209, allocations: 0.6659 MB / 454.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.878e-05/0.121, allocations: 0 / 454.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.1212, allocations: 35.89 kB / 454.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00034/0.1216, allocations: 99.52 kB / 455 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.098e-06/0.1216, allocations: 0 / 455 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.724e-05/0.1217, allocations: 27.91 kB / 455 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.899e-05/0.1217, allocations: 4 kB / 455 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.518e-05/0.1218, allocations: 15.92 kB / 455.1 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.555e-05/0.1219, allocations: 15.92 kB / 455.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.1219, allocations: 0 / 455.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003174/0.1222, allocations: 211.5 kB / 455.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.465e-05/0.1223, allocations: 19.91 kB / 455.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.1223, allocations: 7.938 kB / 455.3 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.1226, allocations: 159.5 kB / 455.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.1227, allocations: 0 / 455.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1227, allocations: 3.938 kB / 455.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.1227, allocations: 4 kB / 455.5 MB, free: 1.562 MB / 318.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.0004625/0.1232, allocations: 363.1 kB / 455.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1232, allocations: 11.89 kB / 455.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.621e-05/0.1232, allocations: 4.938 kB / 455.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.1235, allocations: 184.3 kB / 456 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.1235, allocations: 384 / 456 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.1235, allocations: 384 / 456 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.1236, allocations: 53.92 kB / 456.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1237, allocations: 8 kB / 456.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1237, allocations: 0 / 456.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1237, allocations: 0 / 456.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.699e-05/0.1238, allocations: 19.98 kB / 456.1 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.124, allocations: 173.7 kB / 456.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.1242, allocations: 70.53 kB / 456.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.886e-05/0.1243, allocations: 24.94 kB / 456.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1243, allocations: 11.92 kB / 456.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1244, allocations: 38.5 kB / 456.4 MB, free: 468 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1244, allocations: 0 / 456.4 MB, free: 468 kB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.002114/0.1265, allocations: 0.6063 MB / 457 MB, free: 15.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.1265, allocations: 51.41 kB / 457.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1266, allocations: 125.8 kB / 457.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1267, allocations: 33.64 kB / 457.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.981e-05/0.1267, allocations: 88.12 kB / 457.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.1268, allocations: 19.86 kB / 457.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1269, allocations: 45.67 kB / 457.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.127, allocations: 314.8 kB / 457.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.1272, allocations: 151.8 kB / 457.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.1274, allocations: 155.8 kB / 458 MB, free: 14.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004402/0.1279, allocations: 312.6 kB / 458.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.1279, allocations: 0 / 458.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005459/0.1285, allocations: 373.2 kB / 458.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1285, allocations: 4 kB / 458.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1285, allocations: 4 kB / 458.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1285, allocations: 0 / 458.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1287, allocations: 36.2 kB / 458.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1287, allocations: 0 / 458.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.1288, allocations: 8 kB / 458.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.129, allocations: 27.98 kB / 458.7 MB, free: 14.07 MB / 334.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 0.0001093/0.1291, allocations: 117.8 kB / 458.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.1291, allocations: 11.89 kB / 458.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004772/0.1296, allocations: 289.3 kB / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1296, allocations: 0 / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1296, allocations: 0 / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1296, allocations: 0 / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000981/0.1306, allocations: 0.5907 MB / 459.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1306, allocations: 0 / 459.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.1308, allocations: 23.97 kB / 459.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1308, allocations: 4 kB / 459.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.1308, allocations: 7.984 kB / 459.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.1308, allocations: 0 / 459.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1308, allocations: 4.031 kB / 459.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.1313, allocations: 333 kB / 460.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.1313, allocations: 81.06 kB / 460.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.1313, allocations: 8 kB / 460.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.1315, allocations: 4 kB / 460.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.1315, allocations: 11.97 kB / 460.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.1316, allocations: 19.94 kB / 460.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.141e-05/0.1316, allocations: 103.2 kB / 460.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1316, allocations: 0 / 460.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.1319, allocations: 35.81 kB / 460.4 MB, free: 12.34 MB / 334.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.0003003/0.1322, allocations: 115.2 kB / 460.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003671/0.1326, allocations: 224 kB / 460.7 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1326, allocations: 4 kB / 460.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.1328, allocations: 79.95 kB / 460.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.133, allocations: 11.05 kB / 460.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004716/0.1335, allocations: 243.7 kB / 461 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.1338, allocations: 0.6846 MB / 461.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.258e-05/0.1339, allocations: 24 kB / 461.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.362e-05/0.134, allocations: 27.41 kB / 461.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.134, allocations: 0 / 461.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Templates: time 0.004983/0.139, allocations: 1.886 MB / 463.6 MB, free: 9.023 MB / 334.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 */))) * (5e4) - (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 */))) * (5e4) - (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:720: 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 */))) * (5e4) - (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:739: 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 */))) * (5e4) - (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:902: 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 */))) * (5e4) - (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