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.001139/0.001139, allocations: 112.6 kB / 16.37 MB, free: 6 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.001235/0.001236, allocations: 196 kB / 17.31 MB, free: 5.613 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007676/0.007676, allocations: 1.233 MB / 292.4 MB, free: 13.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 353.8 MB, free: 244 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.204, allocations: 49.69 MB / 403.5 MB, free: 35.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.001862/0.2059, allocations: 1.235 MB / 404.7 MB, free: 34.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007289/0.2067, allocations: 0.6615 MB / 405.4 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.663e-05/0.2067, allocations: 0 / 405.4 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.2069, allocations: 35.83 kB / 405.4 MB, free: 33.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.2072, allocations: 87.66 kB / 405.5 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.507e-06/0.2072, allocations: 1.844 kB / 405.5 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.23e-05/0.2073, allocations: 31.78 kB / 405.5 MB, free: 33.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.337e-05/0.2073, allocations: 4 kB / 405.5 MB, free: 33.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.059e-05/0.2073, allocations: 11.97 kB / 405.5 MB, free: 33.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.143e-05/0.2074, allocations: 19.53 kB / 405.6 MB, free: 33.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.573e-06/0.2074, allocations: 0 / 405.6 MB, free: 33.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.2077, allocations: 219.5 kB / 405.8 MB, free: 32.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.2077, allocations: 11.98 kB / 405.8 MB, free: 32.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.231e-05/0.2077, allocations: 11.88 kB / 405.8 MB, free: 32.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.2079, allocations: 153.4 kB / 405.9 MB, free: 32.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.208, allocations: 4 kB / 406 MB, free: 32.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.208, allocations: 0 / 406 MB, free: 32.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.208, allocations: 0 / 406 MB, free: 32.82 MB / 302.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.0002746/0.2083, allocations: 361 kB / 406.3 MB, free: 32.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.736e-05/0.2083, allocations: 19.83 kB / 406.3 MB, free: 32.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.2083, allocations: 4.844 kB / 406.3 MB, free: 32.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.2085, allocations: 184.3 kB / 406.5 MB, free: 32.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.2085, allocations: 384 / 406.5 MB, free: 32.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.2085, allocations: 4.375 kB / 406.5 MB, free: 32.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.976e-05/0.2086, allocations: 53.92 kB / 406.6 MB, free: 32.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2086, allocations: 4 kB / 406.6 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.2086, allocations: 0 / 406.6 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.2086, allocations: 0 / 406.6 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.049e-05/0.2087, allocations: 27.97 kB / 406.6 MB, free: 32.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001129/0.2088, allocations: 173.7 kB / 406.8 MB, free: 31.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.209, allocations: 70.48 kB / 406.8 MB, free: 31.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.822e-05/0.209, allocations: 20.94 kB / 406.9 MB, free: 31.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.2091, allocations: 7.984 kB / 406.9 MB, free: 31.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.093e-05/0.2091, allocations: 38.5 kB / 406.9 MB, free: 31.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2091, allocations: 4 kB / 406.9 MB, free: 31.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.001814/0.2109, allocations: 0.6065 MB / 407.5 MB, free: 31.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.211, allocations: 55.41 kB / 407.6 MB, free: 31.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.983e-05/0.211, allocations: 121.8 kB / 407.7 MB, free: 30.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2111, allocations: 25.7 kB / 407.7 MB, free: 30.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.944e-05/0.2111, allocations: 92.12 kB / 407.8 MB, free: 30.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.2111, allocations: 11.81 kB / 407.8 MB, free: 30.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.681e-05/0.2112, allocations: 45.67 kB / 407.9 MB, free: 30.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.299e-05/0.2112, allocations: 318.8 kB / 408.2 MB, free: 30.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.2114, allocations: 155.8 kB / 408.3 MB, free: 30.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.2116, allocations: 155.8 kB / 408.5 MB, free: 30.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003542/0.212, allocations: 312.6 kB / 408.8 MB, free: 29.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.212, allocations: 0 / 408.8 MB, free: 29.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000438/0.2124, allocations: 381.3 kB / 409.1 MB, free: 29.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.2124, allocations: 8 kB / 409.2 MB, free: 29.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.2125, allocations: 0 / 409.2 MB, free: 29.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2125, allocations: 3.984 kB / 409.2 MB, free: 29.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.2127, allocations: 31.95 kB / 409.2 MB, free: 29.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2127, allocations: 7.938 kB / 409.2 MB, free: 29.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.2128, allocations: 4 kB / 409.2 MB, free: 29.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.2128, allocations: 27.97 kB / 409.2 MB, free: 29.32 MB / 302.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 5.853e-05/0.2129, allocations: 121.8 kB / 409.3 MB, free: 29.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.2129, allocations: 3.938 kB / 409.4 MB, free: 29.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003698/0.2133, allocations: 281.4 kB / 409.6 MB, free: 28.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2133, allocations: 0 / 409.6 MB, free: 28.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2133, allocations: 0 / 409.6 MB, free: 28.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2133, allocations: 11.92 kB / 409.6 MB, free: 28.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007594/0.2141, allocations: 0.5944 MB / 410.2 MB, free: 28.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2141, allocations: 0 / 410.2 MB, free: 28.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.2143, allocations: 23.97 kB / 410.3 MB, free: 28.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2143, allocations: 0 / 410.3 MB, free: 28.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.2143, allocations: 7.984 kB / 410.3 MB, free: 28.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2143, allocations: 7.938 kB / 410.3 MB, free: 28.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2143, allocations: 0 / 410.3 MB, free: 28.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.2146, allocations: 328.2 kB / 410.6 MB, free: 27.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.2146, allocations: 85.02 kB / 410.7 MB, free: 27.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.2147, allocations: 256 / 410.7 MB, free: 27.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.2148, allocations: 11.98 kB / 410.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.2148, allocations: 11.98 kB / 410.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.2149, allocations: 19.98 kB / 410.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.2149, allocations: 99.27 kB / 410.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2149, allocations: 4 kB / 410.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.2152, allocations: 27.94 kB / 410.8 MB, free: 27.57 MB / 302.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.000163/0.2153, allocations: 131 kB / 411 MB, free: 27.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.2156, allocations: 215.9 kB / 411.2 MB, free: 27.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2156, allocations: 0 / 411.2 MB, free: 27.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.193e-05/0.2157, allocations: 87.89 kB / 411.3 MB, free: 27.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.216, allocations: 10.31 kB / 411.3 MB, free: 27.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/0.2163, allocations: 224.1 kB / 411.5 MB, free: 26.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.341e-05/0.2164, allocations: 0.6885 MB / 412.2 MB, free: 26.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.577e-05/0.2165, allocations: 27.83 kB / 412.2 MB, free: 26.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.609e-05/0.2165, allocations: 27.41 kB / 412.2 MB, free: 26.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2165, allocations: 0 / 412.2 MB, free: 26.12 MB / 302.1 MB Notification: Performance of Templates: time 0.00344/0.22, allocations: 1.887 MB / 414.1 MB, free: 24.26 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/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/jenkins1/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/jenkins1/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/jenkins1/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/jenkins1/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