Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",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.001068/0.001068, allocations: 181.1 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.395/1.395, 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.0008521/0.0008523, allocations: 89.8 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002911, allocations: 7.984 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2483, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.3685, allocations: 95.96 MB / 497.5 MB, free: 428 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.3688, allocations: 87.95 kB / 497.6 MB, free: 340 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2978/0.6666, allocations: 37.25 MB / 0.5223 GB, free: 90.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6666, allocations: 7.453 kB / 0.5224 GB, free: 90.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.161e-05/0.6667, allocations: 25.06 kB / 0.5224 GB, free: 90.35 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.003643/0.6703, allocations: 1.704 MB / 0.524 GB, free: 89.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.6704, allocations: 6.656 kB / 0.524 GB, free: 89.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002999/0.6707, allocations: 216.6 kB / 0.5243 GB, free: 88.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002267/0.673, allocations: 456.2 kB / 0.5247 GB, free: 88.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.6741, allocations: 0.7385 MB / 0.5254 GB, free: 87.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.6742, allocations: 152.6 kB / 0.5256 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.6744, allocations: 151.9 kB / 0.5257 GB, free: 87.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.6765, allocations: 1.343 MB / 0.527 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.6766, allocations: 7.984 kB / 0.527 GB, free: 86.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.6767, allocations: 60 kB / 0.5271 GB, free: 86.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.6767, allocations: 36 kB / 0.5271 GB, free: 86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002239/0.679, allocations: 1.339 MB / 0.5284 GB, free: 84.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006618/0.6856, allocations: 4.95 MB / 0.5333 GB, free: 79.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/0.6879, allocations: 1.94 MB / 0.5351 GB, free: 77.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.6881, allocations: 106.9 kB / 0.5352 GB, free: 77.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.6892, allocations: 0.746 MB / 0.536 GB, free: 76.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.396e-06/0.6893, allocations: 0 / 0.536 GB, free: 76.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01273/0.702, allocations: 5.581 MB / 0.5414 GB, free: 70.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.7021, allocations: 153.8 kB / 0.5416 GB, free: 70.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006326/0.7028, allocations: 0.5345 MB / 0.5421 GB, free: 70.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.291e-05/0.7029, allocations: 61.69 kB / 0.5422 GB, free: 70.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003307/0.7032, allocations: 0.5646 MB / 0.5427 GB, free: 69.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000277/0.7035, allocations: 0.5353 MB / 0.5432 GB, free: 68.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/0.7036, allocations: 36 kB / 0.5433 GB, free: 68.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7037, allocations: 410.7 kB / 0.5437 GB, free: 68.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009421/0.7046, allocations: 0.5232 MB / 0.5442 GB, free: 68.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.7057, allocations: 0.8402 MB / 0.545 GB, free: 67.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.7068, allocations: 0.634 MB / 0.5456 GB, free: 66.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.7068, allocations: 0 / 0.5456 GB, free: 66.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003834/0.7106, allocations: 2.03 MB / 0.5476 GB, free: 64.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.7107, allocations: 8 kB / 0.5476 GB, free: 64.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.7107, allocations: 12 kB / 0.5476 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001985/0.7127, allocations: 0.5327 MB / 0.5481 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.7139, allocations: 291.5 kB / 0.5484 GB, free: 63.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008518/0.7224, allocations: 8.757 MB / 0.557 GB, free: 54.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.7239, allocations: 80.03 kB / 0.557 GB, free: 54.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.724, allocations: 67.98 kB / 0.5571 GB, free: 54.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007467/0.7247, allocations: 357.4 kB / 0.5574 GB, free: 53.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.7249, allocations: 110.7 kB / 0.5575 GB, free: 53.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00393/0.7288, allocations: 1.902 MB / 0.5594 GB, free: 51.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.7289, allocations: 16 kB / 0.5594 GB, free: 51.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.7289, allocations: 4 kB / 0.5594 GB, free: 51.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.7289, allocations: 11.97 kB / 0.5594 GB, free: 51.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005753/0.7347, allocations: 3.408 MB / 0.5628 GB, free: 48.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.7347, allocations: 0 / 0.5628 GB, free: 48.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009553/0.7357, allocations: 211.7 kB / 0.563 GB, free: 48.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.7376, allocations: 0.5055 MB / 0.5635 GB, free: 47.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.7377, allocations: 35.97 kB / 0.5635 GB, free: 47.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0074/0.7451, allocations: 8.473 MB / 0.5718 GB, free: 38.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.7452, allocations: 4 kB / 0.5718 GB, free: 38.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/0.7503, allocations: 2.65 MB / 0.5744 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004909/0.7508, allocations: 291.6 kB / 0.5746 GB, free: 35.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.751, allocations: 40 kB / 0.5747 GB, free: 35.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007426/0.7517, allocations: 72.05 kB / 0.5747 GB, free: 35.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.752, allocations: 129 kB / 0.5749 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.059e-05/0.7521, allocations: 51.97 kB / 0.5749 GB, free: 35.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004279/0.7525, allocations: 419.1 kB / 0.5753 GB, free: 34.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7525, allocations: 0 / 0.5753 GB, free: 34.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001423/0.7539, allocations: 431.9 kB / 0.5757 GB, free: 34.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005047/0.759, allocations: 3.373 MB / 0.579 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003259/0.7623, allocations: 2.102 MB / 0.5811 GB, free: 28.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.7623, allocations: 4.688 kB / 0.5811 GB, free: 28.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001885/0.7642, allocations: 1.431 MB / 0.5825 GB, free: 27.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.7648, allocations: 90.92 kB / 0.5826 GB, free: 27.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006399/0.7713, allocations: 9.609 MB / 0.5919 GB, free: 17.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.7719, allocations: 1.209 MB / 0.5931 GB, free: 16.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007326/0.7726, allocations: 160.5 kB / 0.5933 GB, free: 16.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.7732, allocations: 0.5188 MB / 0.5938 GB, free: 15.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7732, allocations: 0 / 0.5938 GB, free: 15.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04781/0.821, allocations: 25.94 MB / 0.6191 GB, free: 5.836 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.8213, allocations: 231.8 kB / 0.6193 GB, free: 5.594 MB / 394.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_NonLinearInductor.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_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_NonLinearInductor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_functions.h:413:1: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24i' _omcQComplexOutput_24currentSensorQS_24i omc__omcQComplexOutput_24currentSensorQS_24i (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_NonLinearInductor.o] Error 1