Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001054/0.001054, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009482/0.0009481, allocations: 102.4 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002505/0.0002505, allocations: 4 kB / 358 MB, free: 9.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3329, allocations: 88.39 MB / 497.9 MB, free: 2.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.3332, allocations: 92.62 kB / 498 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2524/0.5857, allocations: 27.19 MB / 0.5129 GB, free: 86.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5857, allocations: 0 / 0.5129 GB, free: 86.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.5857, allocations: 15.72 kB / 0.5129 GB, free: 86.88 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.003308/0.589, allocations: 1.135 MB / 0.514 GB, free: 86.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.5891, allocations: 11.03 kB / 0.514 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002449/0.5893, allocations: 135.7 kB / 0.5141 GB, free: 86.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002147/0.5915, allocations: 316.8 kB / 0.5144 GB, free: 86.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.5918, allocations: 255.9 kB / 0.5147 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.254e-05/0.5919, allocations: 65.7 kB / 0.5147 GB, free: 85.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002206/0.5921, allocations: 88.31 kB / 0.5148 GB, free: 85.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.5939, allocations: 0.8703 MB / 0.5157 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.5939, allocations: 3.75 kB / 0.5157 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.24e-05/0.594, allocations: 33.31 kB / 0.5157 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.594, allocations: 25.59 kB / 0.5157 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.5957, allocations: 0.8347 MB / 0.5166 GB, free: 85.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003934/0.5997, allocations: 3.06 MB / 0.5195 GB, free: 84.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.6007, allocations: 1.024 MB / 0.5205 GB, free: 83.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.6008, allocations: 178.2 kB / 0.5207 GB, free: 83.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.6008, allocations: 38.56 kB / 0.5208 GB, free: 83.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.445e-06/0.6008, allocations: 0 / 0.5208 GB, free: 83.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.007522/0.6084, allocations: 2.695 MB / 0.5234 GB, free: 82.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.6084, allocations: 86.7 kB / 0.5235 GB, free: 82.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.6087, allocations: 275.1 kB / 0.5237 GB, free: 82.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.6087, allocations: 36.95 kB / 0.5238 GB, free: 81.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.6089, allocations: 358.3 kB / 0.5241 GB, free: 81.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.609, allocations: 210.5 kB / 0.5243 GB, free: 81.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.609, allocations: 15 kB / 0.5243 GB, free: 81.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.66e-05/0.6091, allocations: 354.9 kB / 0.5247 GB, free: 81.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.6098, allocations: 291.7 kB / 0.5249 GB, free: 81.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008117/0.6107, allocations: 0.5183 MB / 0.5254 GB, free: 80.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008307/0.6115, allocations: 369.2 kB / 0.5258 GB, free: 80.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.6115, allocations: 3.625 kB / 0.5258 GB, free: 80.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002019/0.6136, allocations: 0.9375 MB / 0.5267 GB, free: 80.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.6136, allocations: 6.875 kB / 0.5267 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.6136, allocations: 7.312 kB / 0.5267 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.6139, allocations: 69.66 kB / 0.5268 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/0.6148, allocations: 217.6 kB / 0.527 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.6163, allocations: 2.673 MB / 0.5296 GB, free: 77.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.617, allocations: 78.39 kB / 0.5297 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.955e-05/0.6171, allocations: 36.89 kB / 0.5297 GB, free: 77.45 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.0003254/0.6174, allocations: 221.2 kB / 0.5299 GB, free: 77.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.6175, allocations: 40.62 kB / 0.53 GB, free: 77.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.6194, allocations: 0.7914 MB / 0.5307 GB, free: 76.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.6194, allocations: 4 kB / 0.5308 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6194, allocations: 4 kB / 0.5308 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6194, allocations: 3.797 kB / 0.5308 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.6219, allocations: 1.458 MB / 0.5322 GB, free: 75.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.6219, allocations: 0 / 0.5322 GB, free: 75.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006734/0.6226, allocations: 149.4 kB / 0.5323 GB, free: 75.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001573/0.6228, allocations: 61.48 kB / 0.5324 GB, free: 75.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.6228, allocations: 15.8 kB / 0.5324 GB, free: 75.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.6241, allocations: 2.672 MB / 0.535 GB, free: 72.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6241, allocations: 0 / 0.535 GB, free: 72.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.6265, allocations: 1.152 MB / 0.5361 GB, free: 71.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.6267, allocations: 172.4 kB / 0.5363 GB, free: 71.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.6268, allocations: 15.94 kB / 0.5363 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.6273, allocations: 59.22 kB / 0.5364 GB, free: 71.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.6274, allocations: 46.27 kB / 0.5364 GB, free: 71.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.6275, allocations: 16 kB / 0.5364 GB, free: 71.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000166/0.6276, allocations: 206.2 kB / 0.5366 GB, free: 71.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6276, allocations: 0 / 0.5366 GB, free: 71.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007285/0.6284, allocations: 191.6 kB / 0.5368 GB, free: 70.83 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.002664/0.631, allocations: 1.772 MB / 0.5385 GB, free: 69.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.633, allocations: 0.9608 MB / 0.5395 GB, free: 68.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.633, allocations: 384 / 0.5395 GB, free: 68.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009129/0.6339, allocations: 0.5789 MB / 0.54 GB, free: 67.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.6343, allocations: 45.53 kB / 0.5401 GB, free: 67.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006389/0.6407, allocations: 8.243 MB / 0.5481 GB, free: 59.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.641, allocations: 0.8965 MB / 0.549 GB, free: 58.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004804/0.6415, allocations: 87.11 kB / 0.5491 GB, free: 58.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.6418, allocations: 227.3 kB / 0.5493 GB, free: 58.5 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6418, allocations: 0 / 0.5493 GB, free: 58.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.666, allocations: 10.38 MB / 0.5594 GB, free: 48.4 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.6662, allocations: 230 kB / 0.5597 GB, free: 48.17 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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_model.h:24: ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.o] Error 1