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.005163/0.005164, allocations: 102.2 kB / 15.73 MB, free: 6.492 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.001083/0.001083, allocations: 194.9 kB / 16.68 MB, free: 6.375 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.008154/0.008154, allocations: 1.234 MB / 291.8 MB, free: 1.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001232, allocations: 64.86 kB / 403.3 MB, free: 9.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1721, allocations: 49.7 MB / 453 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.004357/0.1765, allocations: 1.237 MB / 454.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1786, allocations: 0.6582 MB / 454.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.528e-05/0.1787, allocations: 3.938 kB / 454.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.1792, allocations: 35.83 kB / 454.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006673/0.1799, allocations: 91.64 kB / 455 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.313e-06/0.1799, allocations: 0 / 455 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.1801, allocations: 27.86 kB / 455 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.79e-05/0.1802, allocations: 0 / 455 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.1803, allocations: 23.97 kB / 455.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1804, allocations: 15.88 kB / 455.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.1805, allocations: 0 / 455.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006548/0.1811, allocations: 215.5 kB / 455.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.1812, allocations: 11.92 kB / 455.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.1813, allocations: 15.94 kB / 455.3 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.1818, allocations: 155.5 kB / 455.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1818, allocations: 0 / 455.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1818, allocations: 0 / 455.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1818, allocations: 0 / 455.5 MB, free: 1.555 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.0007179/0.1826, allocations: 363.2 kB / 455.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.1827, allocations: 11.89 kB / 455.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.1827, allocations: 8.844 kB / 455.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.1831, allocations: 184.2 kB / 456 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.1831, allocations: 4.375 kB / 456 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.1831, allocations: 384 / 456 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.1833, allocations: 49.98 kB / 456.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1833, allocations: 0 / 456.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.1833, allocations: 0 / 456.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1834, allocations: 8 kB / 456.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.978e-05/0.1835, allocations: 23.97 kB / 456.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.1838, allocations: 173.7 kB / 456.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.1842, allocations: 74.47 kB / 456.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.312e-05/0.1843, allocations: 20.84 kB / 456.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.365e-05/0.1844, allocations: 12.08 kB / 456.4 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.1844, allocations: 42.5 kB / 456.4 MB, free: 448 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.1844, allocations: 0 / 456.4 MB, free: 448 kB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.003596/0.188, allocations: 0.5984 MB / 457 MB, free: 15.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.1881, allocations: 55.41 kB / 457.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.1883, allocations: 133.7 kB / 457.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.1884, allocations: 25.7 kB / 457.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.1885, allocations: 88.14 kB / 457.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.241e-05/0.1885, allocations: 11.81 kB / 457.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1887, allocations: 45.67 kB / 457.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1889, allocations: 318.8 kB / 457.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.1893, allocations: 151.8 kB / 457.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.1898, allocations: 155.8 kB / 458 MB, free: 14.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008306/0.1906, allocations: 316.5 kB / 458.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1907, allocations: 0 / 458.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001061/0.1917, allocations: 369.5 kB / 458.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.1918, allocations: 4 kB / 458.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1918, allocations: 0 / 458.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.1918, allocations: 4 kB / 458.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003408/0.1922, allocations: 35.95 kB / 458.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.1922, allocations: 4 kB / 458.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.1924, allocations: 0 / 458.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.65e-05/0.1926, allocations: 35.97 kB / 458.7 MB, free: 14.06 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.0001727/0.1927, allocations: 117.8 kB / 458.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.1928, allocations: 7.844 kB / 458.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008393/0.1937, allocations: 281.3 kB / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1937, allocations: 0 / 459.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.1937, allocations: 11.98 kB / 459.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1937, allocations: 0 / 459.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.1954, allocations: 0.5867 MB / 459.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.1954, allocations: 0 / 459.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.1956, allocations: 23.97 kB / 459.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.1956, allocations: 0 / 459.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.1957, allocations: 7.984 kB / 459.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1957, allocations: 7.984 kB / 459.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1957, allocations: 3.938 kB / 459.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007082/0.1964, allocations: 329.1 kB / 460.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.1965, allocations: 85.02 kB / 460.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.1966, allocations: 7.984 kB / 460.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.1968, allocations: 7.938 kB / 460.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.1968, allocations: 11.98 kB / 460.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.1969, allocations: 16.17 kB / 460.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001092/0.197, allocations: 103.3 kB / 460.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.197, allocations: 0 / 460.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005073/0.1976, allocations: 31.88 kB / 460.4 MB, free: 12.32 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.0004096/0.198, allocations: 123.2 kB / 460.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005896/0.1986, allocations: 223.8 kB / 460.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.1986, allocations: 0 / 460.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.1988, allocations: 87.89 kB / 460.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.1992, allocations: 15.03 kB / 460.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006891/0.2, allocations: 220 kB / 461 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.2004, allocations: 0.6885 MB / 461.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.2006, allocations: 20 kB / 461.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.2008, allocations: 27.41 kB / 461.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2008, allocations: 4 kB / 461.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of Templates: time 0.007977/0.2088, allocations: 1.882 MB / 463.6 MB, free: 9.02 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