Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.001028/0.001028, allocations: 180.8 kB / 16.38 MB, free: 5.762 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.335/1.335, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008839/0.0008837, allocations: 88.67 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002762, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2781, allocations: 50.39 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.4134, allocations: 87.64 MB / 489.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.4137, allocations: 91.94 kB / 489.3 MB, free: 8.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2537/0.6675, allocations: 25.73 MB / 0.503 GB, free: 87.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.6675, allocations: 1.781 kB / 0.503 GB, free: 87.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.6675, allocations: 16.56 kB / 0.503 GB, free: 87.96 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.003123/0.6707, allocations: 1.142 MB / 0.5041 GB, free: 87.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.6707, allocations: 8.344 kB / 0.5041 GB, free: 87.44 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.6709, allocations: 133.2 kB / 0.5042 GB, free: 87.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001955/0.6729, allocations: 331.8 kB / 0.5046 GB, free: 87.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.6731, allocations: 255.5 kB / 0.5048 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-05/0.6732, allocations: 63.28 kB / 0.5049 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.6733, allocations: 78.31 kB / 0.5049 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.6749, allocations: 0.8847 MB / 0.5058 GB, free: 87.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.675, allocations: 8.922 kB / 0.5058 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.25e-05/0.675, allocations: 35.59 kB / 0.5058 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-05/0.6751, allocations: 19.88 kB / 0.5059 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.6771, allocations: 0.8337 MB / 0.5067 GB, free: 87.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.6807, allocations: 2.981 MB / 0.5096 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/0.6817, allocations: 1.011 MB / 0.5106 GB, free: 85.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.311e-05/0.6818, allocations: 95.33 kB / 0.5107 GB, free: 85.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.6818, allocations: 42.55 kB / 0.5107 GB, free: 85.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.014e-06/0.6818, allocations: 0 / 0.5107 GB, free: 85.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.007438/0.6893, allocations: 2.689 MB / 0.5133 GB, free: 84.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.6893, allocations: 88.23 kB / 0.5134 GB, free: 84.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.6896, allocations: 281.2 kB / 0.5137 GB, free: 84.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.6896, allocations: 44.91 kB / 0.5137 GB, free: 84.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.6898, allocations: 360.3 kB / 0.5141 GB, free: 83.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.6899, allocations: 209.4 kB / 0.5143 GB, free: 83.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-05/0.6899, allocations: 17.78 kB / 0.5143 GB, free: 83.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.69, allocations: 354.5 kB / 0.5146 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007039/0.6907, allocations: 290.4 kB / 0.5149 GB, free: 83.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000769/0.6915, allocations: 0.526 MB / 0.5154 GB, free: 83.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007647/0.6922, allocations: 356.4 kB / 0.5158 GB, free: 83.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.6922, allocations: 5.469 kB / 0.5158 GB, free: 83.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001864/0.6941, allocations: 0.9434 MB / 0.5167 GB, free: 83.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.6941, allocations: 15.12 kB / 0.5167 GB, free: 83.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.6942, allocations: 3.875 kB / 0.5167 GB, free: 83.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.6944, allocations: 73.25 kB / 0.5168 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.6952, allocations: 211 kB / 0.517 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.6965, allocations: 2.681 MB / 0.5196 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/0.6972, allocations: 79.25 kB / 0.5197 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.6973, allocations: 37.84 kB / 0.5197 GB, free: 80.57 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.0002619/0.6975, allocations: 213.5 kB / 0.5199 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.148e-05/0.6976, allocations: 44.67 kB / 0.5199 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.6994, allocations: 0.7893 MB / 0.5207 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.6994, allocations: 10.66 kB / 0.5207 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.6994, allocations: 0 / 0.5207 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.6994, allocations: 7.844 kB / 0.5207 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.7018, allocations: 1.47 MB / 0.5222 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.7018, allocations: 0 / 0.5222 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006668/0.7024, allocations: 141.4 kB / 0.5223 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001511/0.7026, allocations: 64.55 kB / 0.5224 GB, free: 79.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.7027, allocations: 15.17 kB / 0.5224 GB, free: 79.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.7038, allocations: 2.666 MB / 0.525 GB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7038, allocations: 5.922 kB / 0.525 GB, free: 77.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.7062, allocations: 1.152 MB / 0.5261 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.7063, allocations: 173.5 kB / 0.5263 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.7064, allocations: 11.25 kB / 0.5263 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000521/0.7069, allocations: 67.02 kB / 0.5264 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.707, allocations: 41.33 kB / 0.5264 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.55e-05/0.7071, allocations: 19.05 kB / 0.5264 GB, free: 76.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001689/0.7073, allocations: 218.2 kB / 0.5266 GB, free: 76.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.21e-07/0.7073, allocations: 0 / 0.5266 GB, free: 76.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006658/0.7079, allocations: 194.1 kB / 0.5268 GB, free: 76.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_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.002631/0.7106, allocations: 1.762 MB / 0.5285 GB, free: 75.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.7125, allocations: 0.9597 MB / 0.5295 GB, free: 75.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.7125, allocations: 384 / 0.5295 GB, free: 75.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.7134, allocations: 0.5702 MB / 0.53 GB, free: 74.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.7137, allocations: 44.27 kB / 0.5301 GB, free: 74.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006007/0.7197, allocations: 8.3 MB / 0.5382 GB, free: 67.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.72, allocations: 0.8953 MB / 0.539 GB, free: 66.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000502/0.7205, allocations: 93.92 kB / 0.5391 GB, free: 66.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.7208, allocations: 225.4 kB / 0.5393 GB, free: 66.49 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7208, allocations: 0 / 0.5393 GB, free: 66.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.7414, allocations: 10.44 MB / 0.5495 GB, free: 60.01 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.7416, allocations: 257.5 kB / 0.5498 GB, free: 59.67 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_ToroidalCoreQuadraticCrossSection.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_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_ToroidalCoreQuadraticCrossSection.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_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_ToroidalCoreQuadraticCrossSection.o] Error 1