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.0008725/0.0008725, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0008803/0.0008804, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007512/0.007512, allocations: 1.228 MB / 292.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 11.94 kB / 353.5 MB, free: 2.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3449, allocations: 50.67 MB / 404.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.TestRecordFunctionInput.Examples.ShowSoftMagneticCharacteristic): time 0.001639/0.3465, allocations: 0.947 MB / 405.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.3477, allocations: 0.6051 MB / 405.7 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.15e-05/0.3478, allocations: 0.6562 kB / 405.7 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.348, allocations: 27.84 kB / 405.7 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003452/0.3484, allocations: 67.72 kB / 405.8 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.348e-06/0.3484, allocations: 0 / 405.8 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.965e-05/0.3485, allocations: 37.58 kB / 405.8 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.682e-05/0.3486, allocations: 2.188 kB / 405.8 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.693e-05/0.3487, allocations: 12.88 kB / 405.8 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.406e-05/0.3488, allocations: 17.44 kB / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-06/0.3488, allocations: 0 / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.3491, allocations: 138.1 kB / 406 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.165e-05/0.3491, allocations: 14.06 kB / 406 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.367e-05/0.3492, allocations: 32.11 kB / 406 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.3494, allocations: 92.61 kB / 406.1 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3494, allocations: 0 / 406.1 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3494, allocations: 0.75 kB / 406.1 MB, free: 9.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.3494, allocations: 0 / 406.1 MB, free: 9.402 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.0004095/0.3499, allocations: 357.6 kB / 406.5 MB, free: 9.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3499, allocations: 9.594 kB / 406.5 MB, free: 9.023 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.3499, allocations: 6 kB / 406.5 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.3501, allocations: 185.3 kB / 406.7 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3502, allocations: 5 kB / 406.7 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.3502, allocations: 0.9688 kB / 406.7 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.3503, allocations: 44.94 kB / 406.7 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3503, allocations: 0.7031 kB / 406.7 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3503, allocations: 5.062 kB / 406.7 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3503, allocations: 3.953 kB / 406.7 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.643e-05/0.3504, allocations: 26.03 kB / 406.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.3506, allocations: 176.1 kB / 406.9 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.3508, allocations: 74.75 kB / 407 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.499e-05/0.3509, allocations: 21.3 kB / 407 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.3509, allocations: 7.344 kB / 407 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.3509, allocations: 32.86 kB / 407.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3509, allocations: 0 / 407.1 MB, free: 8.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.002165/0.3531, allocations: 0.6086 MB / 407.7 MB, free: 8.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.3532, allocations: 56.56 kB / 407.7 MB, free: 8.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.613e-05/0.3533, allocations: 122.8 kB / 407.8 MB, free: 8.137 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.3533, allocations: 30.8 kB / 407.9 MB, free: 8.102 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/0.3533, allocations: 86.92 kB / 408 MB, free: 8.016 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.3534, allocations: 16.11 kB / 408 MB, free: 8.004 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.3534, allocations: 0 / 408 MB, free: 8.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.592e-05/0.3535, allocations: 318.2 kB / 408.3 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.3537, allocations: 157.1 kB / 408.4 MB, free: 7.652 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.354, allocations: 156.2 kB / 408.6 MB, free: 7.617 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.3542, allocations: 152.5 kB / 408.7 MB, free: 7.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.3543, allocations: 0 / 408.7 MB, free: 7.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006329/0.3549, allocations: 372.8 kB / 409.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3549, allocations: 5.281 kB / 409.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3549, allocations: 0.5156 kB / 409.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3549, allocations: 0 / 409.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.3551, allocations: 32.8 kB / 409.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/0.3552, allocations: 3.953 kB / 409.1 MB, free: 7.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.3553, allocations: 8.203 kB / 409.1 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.3553, allocations: 31.61 kB / 409.2 MB, free: 7.461 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.924e-05/0.3554, allocations: 115.4 kB / 409.3 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.3554, allocations: 3.156 kB / 409.3 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005134/0.356, allocations: 287.8 kB / 409.6 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.356, allocations: 0.9688 kB / 409.6 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.356, allocations: 0 / 409.6 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.356, allocations: 5.703 kB / 409.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009434/0.3569, allocations: 0.5911 MB / 410.2 MB, free: 6.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.357, allocations: 1.031 kB / 410.2 MB, free: 6.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3571, allocations: 27.91 kB / 410.2 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3571, allocations: 1.969 kB / 410.2 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.3571, allocations: 11.89 kB / 410.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3571, allocations: 0 / 410.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3572, allocations: 1.906 kB / 410.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004262/0.3576, allocations: 339.7 kB / 410.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.483e-05/0.3576, allocations: 79.62 kB / 410.6 MB, free: 6.543 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.3577, allocations: 5.922 kB / 410.6 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.3578, allocations: 8.516 kB / 410.6 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.3578, allocations: 13.48 kB / 410.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.3579, allocations: 16.66 kB / 410.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.818e-05/0.3579, allocations: 100.8 kB / 410.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3579, allocations: 0 / 410.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000293/0.3582, allocations: 22.27 kB / 410.8 MB, free: 6.449 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002859/0.3585, allocations: 127.2 kB / 410.9 MB, free: 6.348 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.359, allocations: 219 kB / 411.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.359, allocations: 1.031 kB / 411.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.3591, allocations: 84.88 kB / 411.2 MB, free: 6.293 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.3594, allocations: 5.266 kB / 411.2 MB, free: 6.293 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004359/0.3598, allocations: 256.9 kB / 411.5 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.36, allocations: 0.6896 MB / 412.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.86e-05/0.3601, allocations: 26.09 kB / 412.2 MB, free: 5.418 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.61e-05/0.3601, allocations: 27.28 kB / 412.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3602, allocations: 0 / 412.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of Templates: time 0.004668/0.3648, allocations: 1.773 MB / 414 MB, free: 5.27 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. -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:194: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:196:220: 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:196:234: 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:196:712: 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:196:731: 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:196:892: 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