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.004767/0.004767, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00111/0.00111, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007733/0.007733, allocations: 1.237 MB / 291.8 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 63.42 kB / 403.3 MB, free: 9.121 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.08413, allocations: 49.7 MB / 453 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002105/0.08628, allocations: 1.23 MB / 454.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009755/0.08727, allocations: 0.6699 MB / 454.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.375e-05/0.08732, allocations: 3.938 kB / 454.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.08755, allocations: 31.89 kB / 454.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002955/0.08786, allocations: 99.56 kB / 455 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.466e-06/0.08788, allocations: 4 kB / 455 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.638e-05/0.08794, allocations: 15.94 kB / 455 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.709e-05/0.08798, allocations: 7.984 kB / 455 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.08805, allocations: 11.92 kB / 455.1 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.556e-05/0.08812, allocations: 15.94 kB / 455.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-06/0.08813, allocations: 4 kB / 455.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003243/0.08846, allocations: 219.5 kB / 455.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.771e-05/0.08852, allocations: 7.938 kB / 455.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.08855, allocations: 15.92 kB / 455.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.0888, allocations: 155.4 kB / 455.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.08881, allocations: 0 / 455.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08882, allocations: 0 / 455.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.08883, allocations: 7.984 kB / 455.5 MB, free: 1.609 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.0003883/0.08922, allocations: 355.1 kB / 455.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.08927, allocations: 19.89 kB / 455.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.471e-05/0.0893, allocations: 0.9375 kB / 455.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.08951, allocations: 188.3 kB / 456 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.74e-06/0.08952, allocations: 384 / 456 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.08955, allocations: 4.375 kB / 456 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.275e-05/0.08963, allocations: 46 kB / 456.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.08965, allocations: 0 / 456.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.08966, allocations: 0 / 456.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.08967, allocations: 0 / 456.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.331e-05/0.08974, allocations: 31.91 kB / 456.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.08993, allocations: 177.7 kB / 456.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.09017, allocations: 70.53 kB / 456.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.735e-05/0.09021, allocations: 20.94 kB / 456.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.09026, allocations: 4 kB / 456.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.09029, allocations: 42.5 kB / 456.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.09029, allocations: 0 / 456.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.002113/0.09241, allocations: 0.6024 MB / 457 MB, free: 15.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.09246, allocations: 51.41 kB / 457.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.09259, allocations: 137.7 kB / 457.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.09263, allocations: 25.7 kB / 457.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.693e-05/0.09268, allocations: 92.08 kB / 457.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.968e-05/0.09273, allocations: 11.86 kB / 457.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.09283, allocations: 45.67 kB / 457.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.09296, allocations: 318.8 kB / 457.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.0932, allocations: 155.8 kB / 457.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.09346, allocations: 159.8 kB / 458 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.09394, allocations: 304.8 kB / 458.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.09396, allocations: 4 kB / 458.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005804/0.09454, allocations: 369.3 kB / 458.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.09457, allocations: 8 kB / 458.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.09458, allocations: 288 / 458.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.0946, allocations: 0 / 458.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.0948, allocations: 35.89 kB / 458.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.09482, allocations: 4 kB / 458.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.09495, allocations: 4 kB / 458.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.09501, allocations: 31.97 kB / 458.7 MB, free: 14.12 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 9.44e-05/0.09511, allocations: 113.8 kB / 458.8 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.09515, allocations: 15.88 kB / 458.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.09563, allocations: 285.3 kB / 459.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.09564, allocations: 0 / 459.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.09565, allocations: 0 / 459.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.09566, allocations: 0 / 459.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009212/0.09658, allocations: 0.5907 MB / 459.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.0966, allocations: 0 / 459.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.09675, allocations: 27.91 kB / 459.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.09676, allocations: 0 / 459.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.09679, allocations: 7.984 kB / 459.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.09679, allocations: 0 / 459.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.0968, allocations: 7.984 kB / 459.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.09721, allocations: 329.3 kB / 460.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.09726, allocations: 93.05 kB / 460.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.0973, allocations: 4 kB / 460.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.09744, allocations: 7.938 kB / 460.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.09748, allocations: 7.984 kB / 460.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.09752, allocations: 19.98 kB / 460.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.349e-05/0.0976, allocations: 107.1 kB / 460.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09761, allocations: 0 / 460.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.0979, allocations: 31.88 kB / 460.4 MB, free: 12.38 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.0002432/0.09815, allocations: 123.2 kB / 460.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003435/0.0985, allocations: 215.9 kB / 460.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.09851, allocations: 0 / 460.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.09866, allocations: 87.88 kB / 460.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.09891, allocations: 9.141 kB / 460.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004636/0.09938, allocations: 239.8 kB / 461 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.09964, allocations: 0.6846 MB / 461.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8e-05/0.09973, allocations: 27.86 kB / 461.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.863e-05/0.09982, allocations: 31.41 kB / 461.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09983, allocations: 0 / 461.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Templates: time 0.004371/0.1042, allocations: 1.87 MB / 463.6 MB, free: 9.078 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