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.000987/0.000987, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001381/0.001381, allocations: 192.9 kB / 16.14 MB, free: 6.699 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.226/1.226, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006837/0.006837, allocations: 1.23 MB / 291.2 MB, free: 1.324 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009871/0.0009871, allocations: 55.91 kB / 351.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09175, allocations: 49.69 MB / 401.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.002155/0.09393, allocations: 1.301 MB / 402.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009072/0.09486, allocations: 0.6661 MB / 403.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.571e-05/0.09491, allocations: 4 kB / 403.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.09513, allocations: 31.89 kB / 403.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.09543, allocations: 79.72 kB / 403.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.555e-06/0.09544, allocations: 0 / 403.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.554e-05/0.0955, allocations: 35.91 kB / 403.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.072e-05/0.09554, allocations: 7.984 kB / 403.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.051e-05/0.0956, allocations: 15.86 kB / 403.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.41e-05/0.09566, allocations: 15.92 kB / 403.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.915e-06/0.09568, allocations: 0 / 403.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.09598, allocations: 223.4 kB / 403.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.324e-05/0.09603, allocations: 7.984 kB / 403.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.58e-05/0.09606, allocations: 19.88 kB / 403.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001936/0.09626, allocations: 123.8 kB / 403.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.09627, allocations: 0 / 403.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.09627, allocations: 0 / 403.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.09628, allocations: 0 / 403.9 MB, free: 2.918 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002945/0.09658, allocations: 347.4 kB / 404.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.09661, allocations: 8.031 kB / 404.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.09665, allocations: 16.83 kB / 404.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.09681, allocations: 188.2 kB / 404.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.09682, allocations: 384 / 404.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.09684, allocations: 12.25 kB / 404.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.596e-05/0.09692, allocations: 49.98 kB / 404.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.09694, allocations: 0 / 404.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.09695, allocations: 7.938 kB / 404.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-06/0.09696, allocations: 0 / 404.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.186e-05/0.09702, allocations: 23.98 kB / 404.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.09716, allocations: 173.7 kB / 404.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.09736, allocations: 74.52 kB / 404.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.994e-05/0.0974, allocations: 20.94 kB / 404.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.09744, allocations: 15.97 kB / 404.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.09747, allocations: 34.5 kB / 404.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.09747, allocations: 0 / 404.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.001975/0.09945, allocations: 0.5985 MB / 405.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.09949, allocations: 55.39 kB / 405.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.767e-05/0.09957, allocations: 117.8 kB / 405.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.09961, allocations: 25.7 kB / 405.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.029e-05/0.09964, allocations: 92.12 kB / 405.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.09969, allocations: 19.75 kB / 405.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.12e-05/0.09977, allocations: 37.69 kB / 405.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.09986, allocations: 318.8 kB / 406.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.1001, allocations: 159.8 kB / 406.2 MB, free: 352 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.1003, allocations: 151.8 kB / 406.4 MB, free: 200 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.1007, allocations: 312.8 kB / 406.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1007, allocations: 4 kB / 406.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005217/0.1013, allocations: 381.1 kB / 407 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.1013, allocations: 4 kB / 407.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1013, allocations: 0 / 407.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.663e-06/0.1013, allocations: 0 / 407.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.1015, allocations: 31.95 kB / 407.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1015, allocations: 4 kB / 407.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1016, allocations: 8 kB / 407.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.1017, allocations: 31.92 kB / 407.1 MB, free: 15.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.1018, allocations: 121.8 kB / 407.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.1018, allocations: 4.219 kB / 407.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004294/0.1023, allocations: 285.3 kB / 407.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1023, allocations: 3.984 kB / 407.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1023, allocations: 4 kB / 407.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1023, allocations: 0 / 407.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008528/0.1032, allocations: 0.5945 MB / 408.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1032, allocations: 3.938 kB / 408.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.1033, allocations: 23.97 kB / 408.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1033, allocations: 0 / 408.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1034, allocations: 8 kB / 408.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1034, allocations: 0 / 408.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1034, allocations: 3.984 kB / 408.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/0.1037, allocations: 332.3 kB / 408.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.267e-05/0.1038, allocations: 85.08 kB / 408.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.1038, allocations: 4 kB / 408.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.104, allocations: 4 kB / 408.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.104, allocations: 15.98 kB / 408.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.104, allocations: 15.98 kB / 408.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.389e-05/0.1041, allocations: 99.27 kB / 408.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1041, allocations: 0 / 408.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.1044, allocations: 31.92 kB / 408.7 MB, free: 13.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($cse1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00016/0.1045, allocations: 115.2 kB / 408.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.1048, allocations: 215.8 kB / 409.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1048, allocations: 0 / 409.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.105, allocations: 87.94 kB / 409.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.1052, allocations: 2.844 kB / 409.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003729/0.1056, allocations: 253.7 kB / 409.4 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.1058, allocations: 0.6887 MB / 410.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.665e-05/0.1059, allocations: 23.92 kB / 410.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.19e-05/0.106, allocations: 27.41 kB / 410.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.106, allocations: 0 / 410.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of Templates: time 0.003686/0.1097, allocations: 1.82 MB / 412 MB, free: 10.45 MB / 350.1 MB make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=FluxTubesExtension_FluxTubesExtension_TestRecordFunctionInput_Examples_ShowSoftMagneticCharacteristic -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.o FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.c FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.c: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/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/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/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/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