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.001151/0.001151, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009753/0.009753, allocations: 169.4 kB / 16.26 MB, free: 6.332 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.006974/0.006973, allocations: 1.226 MB / 292.7 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003367, allocations: 12 kB / 354.1 MB, free: 1.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2923, allocations: 50.67 MB / 404.7 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.001847/0.2942, allocations: 0.959 MB / 405.7 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.2955, allocations: 0.6535 MB / 406.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.261e-05/0.2956, allocations: 3.375 kB / 406.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002799/0.2959, allocations: 35.39 kB / 406.4 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.2962, allocations: 77.2 kB / 406.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.946e-06/0.2962, allocations: 3.938 kB / 406.5 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.634e-05/0.2963, allocations: 39.38 kB / 406.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.658e-05/0.2963, allocations: 2.781 kB / 406.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.491e-05/0.2964, allocations: 19.61 kB / 406.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.079e-05/0.2965, allocations: 16.83 kB / 406.6 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.874e-06/0.2965, allocations: 1.062 kB / 406.6 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003815/0.2969, allocations: 215.9 kB / 406.8 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.41e-05/0.2969, allocations: 12.36 kB / 406.8 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.297, allocations: 43.12 kB / 406.8 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.2973, allocations: 120.7 kB / 406.9 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2973, allocations: 0 / 406.9 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2973, allocations: 0 / 406.9 MB, free: 9.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2973, allocations: 1.344 kB / 406.9 MB, free: 9.543 MB / 286.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.0003442/0.2976, allocations: 353.6 kB / 407.3 MB, free: 9.168 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2977, allocations: 8.906 kB / 407.3 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.2977, allocations: 3.312 kB / 407.3 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.2979, allocations: 188.3 kB / 407.5 MB, free: 8.961 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.2979, allocations: 5.312 kB / 407.5 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.298, allocations: 1.406 kB / 407.5 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.103e-05/0.298, allocations: 49.8 kB / 407.5 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.2981, allocations: 3.984 kB / 407.5 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.2981, allocations: 9.125 kB / 407.6 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2981, allocations: 0 / 407.6 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/0.2982, allocations: 33.59 kB / 407.6 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.2983, allocations: 173.2 kB / 407.8 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.2986, allocations: 71.39 kB / 407.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.264e-05/0.2986, allocations: 14.73 kB / 407.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.2987, allocations: 12.44 kB / 407.8 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.2987, allocations: 39.62 kB / 407.9 MB, free: 8.605 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2987, allocations: 0 / 407.9 MB, free: 8.605 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.002306/0.301, allocations: 0.6036 MB / 408.5 MB, free: 8.441 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.301, allocations: 53.16 kB / 408.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3012, allocations: 124.6 kB / 408.7 MB, free: 8.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.3012, allocations: 26.73 kB / 408.7 MB, free: 8.242 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.063e-05/0.3012, allocations: 87.62 kB / 408.8 MB, free: 8.156 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.3013, allocations: 15.31 kB / 408.8 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.3013, allocations: 15.52 kB / 408.8 MB, free: 8.125 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.682e-05/0.3014, allocations: 318.8 kB / 409.1 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.3017, allocations: 160.7 kB / 409.3 MB, free: 7.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.302, allocations: 152.8 kB / 409.4 MB, free: 7.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005295/0.3025, allocations: 309.2 kB / 409.7 MB, free: 7.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/0.3025, allocations: 1.344 kB / 409.7 MB, free: 7.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006456/0.3032, allocations: 373 kB / 410.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.3032, allocations: 7.594 kB / 410.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3032, allocations: 0 / 410.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3032, allocations: 7.938 kB / 410.1 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.3035, allocations: 36.78 kB / 410.1 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.3035, allocations: 0 / 410.1 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.3036, allocations: 9.406 kB / 410.2 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-05/0.3037, allocations: 27.45 kB / 410.2 MB, free: 7.535 MB / 286.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.0001275/0.3038, allocations: 115.6 kB / 410.3 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.3039, allocations: 10.75 kB / 410.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007259/0.3046, allocations: 283.4 kB / 410.6 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.3046, allocations: 13.88 kB / 410.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3047, allocations: 320 / 410.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3047, allocations: 0.5625 kB / 410.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.3059, allocations: 0.5977 MB / 411.2 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3059, allocations: 0 / 411.2 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.3061, allocations: 28.77 kB / 411.2 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3061, allocations: 0.6094 kB / 411.2 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/0.3061, allocations: 6.906 kB / 411.2 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3061, allocations: 2 kB / 411.2 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3062, allocations: 4.781 kB / 411.2 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/0.3067, allocations: 331.2 kB / 411.6 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.897e-05/0.3067, allocations: 84.28 kB / 411.6 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.3068, allocations: 1.75 kB / 411.6 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.3069, allocations: 8.312 kB / 411.6 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.307, allocations: 10 kB / 411.7 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.307, allocations: 20.69 kB / 411.7 MB, free: 6.594 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.218e-05/0.3071, allocations: 101.4 kB / 411.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3071, allocations: 0 / 411.8 MB, free: 6.512 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.3074, allocations: 25.78 kB / 411.8 MB, free: 6.508 MB / 286.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.0002436/0.3077, allocations: 121.1 kB / 411.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004627/0.3081, allocations: 215.9 kB / 412.1 MB, free: 6.375 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3081, allocations: 4 kB / 412.1 MB, free: 6.371 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.3083, allocations: 89.94 kB / 412.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.3086, allocations: 2.719 kB / 412.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006021/0.3092, allocations: 255.6 kB / 412.5 MB, free: 6.188 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.3094, allocations: 0.6951 MB / 413.2 MB, free: 5.484 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.648e-05/0.3095, allocations: 25.92 kB / 413.2 MB, free: 5.473 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3096, allocations: 22.94 kB / 413.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3096, allocations: 0 / 413.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of Templates: time 0.005891/0.3155, allocations: 1.792 MB / 415 MB, free: 5.309 MB / 286.1 MB make -j1 -f FluxTubesExtension_FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic.makefile Environment - environmentSimulation: 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