Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.001036/0.001036, allocations: 180.3 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.315/1.315, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0009734/0.0009733, allocations: 97.12 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.000231, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2169, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.3283, allocations: 93.19 MB / 494.8 MB, free: 3.254 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.3286, allocations: 87.95 kB / 494.9 MB, free: 3.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2754/0.604, allocations: 30.27 MB / 0.5128 GB, free: 90.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6041, allocations: 4 kB / 0.5128 GB, free: 90.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.96e-05/0.6041, allocations: 19.22 kB / 0.5128 GB, free: 90.42 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002835/0.6069, allocations: 1.279 MB / 0.5141 GB, free: 89.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.607, allocations: 11.56 kB / 0.5141 GB, free: 89.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.6072, allocations: 167.4 kB / 0.5143 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/0.6096, allocations: 394.5 kB / 0.5146 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007281/0.6103, allocations: 494.2 kB / 0.5151 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.6104, allocations: 87.23 kB / 0.5152 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.6105, allocations: 119.5 kB / 0.5153 GB, free: 89.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.6122, allocations: 0.9649 MB / 0.5163 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.6122, allocations: 0 / 0.5163 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.97e-05/0.6123, allocations: 47.41 kB / 0.5163 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.6123, allocations: 30.11 kB / 0.5163 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.6139, allocations: 0.9788 MB / 0.5173 GB, free: 89.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.6194, allocations: 3.739 MB / 0.5209 GB, free: 87.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.621, allocations: 1.545 MB / 0.5224 GB, free: 86.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.6212, allocations: 96.67 kB / 0.5225 GB, free: 85.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007991/0.622, allocations: 477.2 kB / 0.523 GB, free: 85.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.768e-06/0.622, allocations: 0 / 0.523 GB, free: 85.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007625/0.6296, allocations: 3.914 MB / 0.5268 GB, free: 83.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.6297, allocations: 144.9 kB / 0.527 GB, free: 83.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.6301, allocations: 350.8 kB / 0.5273 GB, free: 83.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.25e-05/0.6302, allocations: 45.7 kB / 0.5273 GB, free: 83.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.6304, allocations: 417.2 kB / 0.5277 GB, free: 82.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.6307, allocations: 425.1 kB / 0.5281 GB, free: 82.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.6307, allocations: 24 kB / 0.5282 GB, free: 82.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.6308, allocations: 373.8 kB / 0.5285 GB, free: 81.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.6314, allocations: 351.3 kB / 0.5288 GB, free: 81.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006553/0.6321, allocations: 0.5336 MB / 0.5294 GB, free: 81.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000697/0.6328, allocations: 428.6 kB / 0.5298 GB, free: 80.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.6328, allocations: 0 / 0.5298 GB, free: 80.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002275/0.6351, allocations: 1.367 MB / 0.5311 GB, free: 79.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.6352, allocations: 4 kB / 0.5311 GB, free: 79.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.6352, allocations: 8 kB / 0.5311 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008523/0.636, allocations: 343.1 kB / 0.5314 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008129/0.6369, allocations: 202.6 kB / 0.5316 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006028/0.6429, allocations: 7.8 MB / 0.5393 GB, free: 70.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008936/0.6438, allocations: 54.64 kB / 0.5393 GB, free: 70.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.644, allocations: 44 kB / 0.5394 GB, free: 70.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005727/0.6446, allocations: 253.6 kB / 0.5396 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.6448, allocations: 75.11 kB / 0.5397 GB, free: 70.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.6472, allocations: 1.289 MB / 0.5409 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.6472, allocations: 12 kB / 0.5409 GB, free: 69.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/0.6473, allocations: 4 kB / 0.5409 GB, free: 69.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.6473, allocations: 11.22 kB / 0.541 GB, free: 69.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003702/0.651, allocations: 2.39 MB / 0.5433 GB, free: 67.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.651, allocations: 3.312 kB / 0.5433 GB, free: 67.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006786/0.6517, allocations: 148.9 kB / 0.5434 GB, free: 67.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007119/0.6524, allocations: 327.3 kB / 0.5437 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-05/0.6525, allocations: 28 kB / 0.5438 GB, free: 66.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005796/0.6583, allocations: 7.528 MB / 0.5511 GB, free: 58.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6584, allocations: 8.016 kB / 0.5511 GB, free: 58.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003124/0.6615, allocations: 1.77 MB / 0.5529 GB, free: 57.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/0.6619, allocations: 224.2 kB / 0.5531 GB, free: 56.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.6621, allocations: 27.25 kB / 0.5531 GB, free: 56.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.6627, allocations: 39.98 kB / 0.5531 GB, free: 56.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.663, allocations: 80.88 kB / 0.5532 GB, free: 56.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/0.663, allocations: 39.92 kB / 0.5533 GB, free: 56.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003186/0.6634, allocations: 267.2 kB / 0.5535 GB, free: 56.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6634, allocations: 0 / 0.5535 GB, free: 56.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001368/0.6647, allocations: 335.9 kB / 0.5538 GB, free: 56.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003333/0.6681, allocations: 2.481 MB / 0.5562 GB, free: 53.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002635/0.6707, allocations: 1.616 MB / 0.5578 GB, free: 51.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.6708, allocations: 0 / 0.5578 GB, free: 51.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.6722, allocations: 1.141 MB / 0.5589 GB, free: 50.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005101/0.6727, allocations: 49.55 kB / 0.559 GB, free: 50.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005743/0.6785, allocations: 5.614 MB / 0.5645 GB, free: 45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006833/0.6792, allocations: 1.036 MB / 0.5655 GB, free: 43.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000567/0.6798, allocations: 94.02 kB / 0.5656 GB, free: 43.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004275/0.6803, allocations: 339.3 kB / 0.5659 GB, free: 43.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6803, allocations: 0 / 0.5659 GB, free: 43.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.7165, allocations: 16.8 MB / 0.5823 GB, free: 26.91 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.7167, allocations: 216 kB / 0.5825 GB, free: 26.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_LinearInductor.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_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_LinearInductor.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_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_LinearInductor.o] Error 1