Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008474/0.0008473, allocations: 100.9 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 8 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.378, allocations: 87.53 MB / 489.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.3784, allocations: 95.92 kB / 489.2 MB, free: 8.789 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2918/0.6702, allocations: 25.64 MB / 0.5028 GB, free: 87.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.6703, allocations: 3.562 kB / 0.5028 GB, free: 87.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.17e-05/0.6703, allocations: 12.31 kB / 0.5028 GB, free: 87.97 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00347/0.6738, allocations: 1.134 MB / 0.5039 GB, free: 87.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/0.6738, allocations: 13.22 kB / 0.5039 GB, free: 87.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.674, allocations: 129.6 kB / 0.504 GB, free: 87.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/0.6761, allocations: 322.4 kB / 0.5044 GB, free: 87.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.6764, allocations: 246.5 kB / 0.5046 GB, free: 87.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.6764, allocations: 64.75 kB / 0.5047 GB, free: 87.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.6766, allocations: 86.95 kB / 0.5047 GB, free: 87.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.6784, allocations: 0.8846 MB / 0.5056 GB, free: 87.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.6785, allocations: 5.078 kB / 0.5056 GB, free: 87.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.05e-05/0.6786, allocations: 31.81 kB / 0.5056 GB, free: 87.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.994e-05/0.6786, allocations: 22.81 kB / 0.5057 GB, free: 87.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001951/0.6806, allocations: 0.831 MB / 0.5065 GB, free: 87.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.6848, allocations: 2.974 MB / 0.5094 GB, free: 85.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.6859, allocations: 1.011 MB / 0.5104 GB, free: 85.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.219e-05/0.686, allocations: 93.59 kB / 0.5104 GB, free: 85.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.686, allocations: 46.05 kB / 0.5105 GB, free: 85.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.854e-06/0.686, allocations: 0 / 0.5105 GB, free: 85.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.007616/0.6937, allocations: 2.688 MB / 0.5131 GB, free: 84.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.6937, allocations: 85.33 kB / 0.5132 GB, free: 84.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.694, allocations: 268.7 kB / 0.5135 GB, free: 84.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.694, allocations: 37.39 kB / 0.5135 GB, free: 84.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.6942, allocations: 362.6 kB / 0.5138 GB, free: 84.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.6943, allocations: 216.3 kB / 0.514 GB, free: 83.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.6943, allocations: 12 kB / 0.5141 GB, free: 83.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.6944, allocations: 353.3 kB / 0.5144 GB, free: 83.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.6951, allocations: 294.2 kB / 0.5147 GB, free: 83.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007811/0.6959, allocations: 0.5203 MB / 0.5152 GB, free: 83.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007905/0.6967, allocations: 364.3 kB / 0.5155 GB, free: 83.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6967, allocations: 0 / 0.5155 GB, free: 83.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001965/0.6987, allocations: 0.9408 MB / 0.5164 GB, free: 83.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.731e-05/0.6987, allocations: 7.781 kB / 0.5165 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.6988, allocations: 7.719 kB / 0.5165 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002936/0.6991, allocations: 70.62 kB / 0.5165 GB, free: 83.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/0.7, allocations: 213.5 kB / 0.5167 GB, free: 83.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.7014, allocations: 2.678 MB / 0.5193 GB, free: 80.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007064/0.7021, allocations: 75.3 kB / 0.5194 GB, free: 80.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.7021, allocations: 37.33 kB / 0.5195 GB, free: 80.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003063/0.7025, allocations: 210.9 kB / 0.5197 GB, free: 80.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.281e-05/0.7025, allocations: 46.88 kB / 0.5197 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.7044, allocations: 0.7866 MB / 0.5205 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.7044, allocations: 13.06 kB / 0.5205 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.7044, allocations: 0.9375 kB / 0.5205 GB, free: 80.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.7044, allocations: 7.234 kB / 0.5205 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.7068, allocations: 1.463 MB / 0.5219 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.738e-06/0.7068, allocations: 0 / 0.5219 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/0.7075, allocations: 148.4 kB / 0.5221 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.7076, allocations: 55.11 kB / 0.5221 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.7077, allocations: 16.36 kB / 0.5221 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.7089, allocations: 2.666 MB / 0.5247 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7089, allocations: 3.953 kB / 0.5247 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/0.7113, allocations: 1.155 MB / 0.5259 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.7115, allocations: 162.4 kB / 0.526 GB, free: 76.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.7116, allocations: 11.53 kB / 0.526 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.7121, allocations: 63.22 kB / 0.5261 GB, free: 76.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.7123, allocations: 50.69 kB / 0.5261 GB, free: 76.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.7123, allocations: 19.47 kB / 0.5262 GB, free: 76.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.7125, allocations: 206.1 kB / 0.5264 GB, free: 76.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7125, allocations: 3.75 kB / 0.5264 GB, free: 76.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006813/0.7132, allocations: 187.5 kB / 0.5265 GB, free: 76.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002732/0.7159, allocations: 1.761 MB / 0.5283 GB, free: 75.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.7178, allocations: 0.9555 MB / 0.5292 GB, free: 75.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7178, allocations: 0 / 0.5292 GB, free: 75.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008923/0.7187, allocations: 0.5767 MB / 0.5297 GB, free: 74.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.719, allocations: 35.41 kB / 0.5298 GB, free: 74.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/0.7253, allocations: 8.247 MB / 0.5378 GB, free: 67.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.7257, allocations: 0.8932 MB / 0.5387 GB, free: 66.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005043/0.7262, allocations: 93.5 kB / 0.5388 GB, free: 66.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/0.7265, allocations: 233.2 kB / 0.539 GB, free: 66.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7265, allocations: 0 / 0.539 GB, free: 66.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.7502, allocations: 10.31 MB / 0.5491 GB, free: 60.33 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.7504, allocations: 241.4 kB / 0.5493 GB, free: 60.09 MB / 378.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_functions.h:388:1: error: unknown type name '_omcQComplexOutput_24voltageSensor_24v' _omcQComplexOutput_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.o] Error 1