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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001658/0.001664, allocations: 180.7 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009683/0.009683, allocations: 1.236 MB / 17.97 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 222.9 MB / 241.9 MB, free: 9.715 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009764/0.0009764, allocations: 103.8 kB / 292.4 MB, free: 9.805 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.91 kB / 352.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2155, allocations: 49.7 MB / 402.6 MB, free: 31.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002047/0.2176, allocations: 1.29 MB / 403.8 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008018/0.2184, allocations: 0.6696 MB / 404.5 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.663e-05/0.2184, allocations: 0 / 404.5 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.2187, allocations: 27.91 kB / 404.5 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.219, allocations: 83.72 kB / 404.6 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.166e-06/0.219, allocations: 3.938 kB / 404.6 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.955e-05/0.2191, allocations: 43.88 kB / 404.7 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.275e-05/0.2191, allocations: 0 / 404.7 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.081e-05/0.2192, allocations: 19.88 kB / 404.7 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.283e-05/0.2193, allocations: 19.91 kB / 404.7 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.2193, allocations: 0 / 404.7 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002781/0.2196, allocations: 211.4 kB / 404.9 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.2196, allocations: 15.97 kB / 404.9 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.2196, allocations: 15.88 kB / 405 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.2198, allocations: 121.7 kB / 405.1 MB, free: 29.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2199, allocations: 0 / 405.1 MB, free: 29.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2199, allocations: 0 / 405.1 MB, free: 29.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.2199, allocations: 4 kB / 405.1 MB, free: 29.31 MB / 298.7 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.0003196/0.2202, allocations: 355.3 kB / 405.4 MB, free: 28.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2202, allocations: 12.03 kB / 405.4 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.2203, allocations: 4.844 kB / 405.4 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.2204, allocations: 188.2 kB / 405.6 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.2204, allocations: 384 / 405.6 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.2205, allocations: 12.36 kB / 405.6 MB, free: 28.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.699e-05/0.2205, allocations: 53.92 kB / 405.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2206, allocations: 0 / 405.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.2206, allocations: 3.938 kB / 405.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2206, allocations: 0 / 405.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.027e-05/0.2206, allocations: 23.98 kB / 405.7 MB, free: 28.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.2208, allocations: 169.7 kB / 405.9 MB, free: 28.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.221, allocations: 74.58 kB / 406 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.183e-05/0.221, allocations: 20.94 kB / 406 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.2211, allocations: 11.92 kB / 406 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.2211, allocations: 38.5 kB / 406 MB, free: 28.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2211, allocations: 0 / 406 MB, free: 28.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.001837/0.2229, allocations: 0.6023 MB / 406.6 MB, free: 27.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.707e-05/0.223, allocations: 55.41 kB / 406.7 MB, free: 27.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.732e-05/0.223, allocations: 121.8 kB / 406.8 MB, free: 27.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.2231, allocations: 29.7 kB / 406.8 MB, free: 27.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.398e-05/0.2231, allocations: 92.12 kB / 406.9 MB, free: 27.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/0.2231, allocations: 11.8 kB / 406.9 MB, free: 27.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.2232, allocations: 45.67 kB / 407 MB, free: 27.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.296e-05/0.2233, allocations: 318.8 kB / 407.3 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.2234, allocations: 151.8 kB / 407.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.2236, allocations: 159.8 kB / 407.6 MB, free: 26.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.224, allocations: 312.6 kB / 407.9 MB, free: 26.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.224, allocations: 0 / 407.9 MB, free: 26.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004253/0.2244, allocations: 373.1 kB / 408.3 MB, free: 25.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2244, allocations: 8 kB / 408.3 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2244, allocations: 0 / 408.3 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2244, allocations: 0 / 408.3 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2246, allocations: 31.95 kB / 408.3 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2246, allocations: 256 / 408.3 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.2248, allocations: 4 kB / 408.3 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.2248, allocations: 35.98 kB / 408.3 MB, free: 25.82 MB / 298.7 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 6.701e-05/0.2249, allocations: 113.8 kB / 408.4 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.2249, allocations: 7.938 kB / 408.5 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004067/0.2253, allocations: 289.3 kB / 408.7 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2253, allocations: 3.938 kB / 408.7 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2254, allocations: 0 / 408.7 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2254, allocations: 0 / 408.7 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007529/0.2261, allocations: 0.6022 MB / 409.3 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2261, allocations: 0 / 409.3 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.2263, allocations: 23.97 kB / 409.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2263, allocations: 0 / 409.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.2263, allocations: 4 kB / 409.4 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2263, allocations: 3.984 kB / 409.4 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2263, allocations: 4 kB / 409.4 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005196/0.2268, allocations: 1.006 MB / 410.4 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.101e-05/0.2269, allocations: 81.39 kB / 410.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.2269, allocations: 3.984 kB / 410.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.227, allocations: 7.938 kB / 410.5 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.048e-05/0.2271, allocations: 11.97 kB / 410.5 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.2271, allocations: 19.98 kB / 410.5 MB, free: 23.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.517e-05/0.2271, allocations: 95.27 kB / 410.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2271, allocations: 0 / 410.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.2275, allocations: 36 kB / 410.6 MB, free: 23.36 MB / 298.7 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.0001416/0.2276, allocations: 119.1 kB / 410.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.2279, allocations: 220 kB / 411 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2279, allocations: 0 / 411 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.771e-05/0.228, allocations: 84.02 kB / 411 MB, free: 22.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001994/0.2282, allocations: 15.11 kB / 411.1 MB, free: 22.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.2285, allocations: 360.5 kB / 411.4 MB, free: 22.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.2287, allocations: 0.6926 MB / 412.1 MB, free: 21.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.6e-05/0.2287, allocations: 23.98 kB / 412.1 MB, free: 21.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.2288, allocations: 27.41 kB / 412.2 MB, free: 21.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2288, allocations: 0 / 412.2 MB, free: 21.76 MB / 298.7 MB Notification: Performance of Templates: time 0.00344/0.2323, allocations: 1.862 MB / 414 MB, free: 19.94 MB / 298.7 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@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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:195: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:197: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@2/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:197: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@2/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:197: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@2/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:197: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@2/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:197: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