Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00106/0.00106, allocations: 199.7 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.25/1.25, allocations: 227.2 MB / 245 MB, free: 5.801 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008564, allocations: 102.2 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002151/0.0002151, allocations: 11.98 kB / 358 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2185, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.3317, allocations: 94.13 MB / 0.4918 GB, free: 12.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.3321, allocations: 95.94 kB / 0.4919 GB, free: 12.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2906/0.6226, allocations: 31.62 MB / 0.5228 GB, free: 87.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6227, allocations: 3.75 kB / 0.5228 GB, free: 87.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.6227, allocations: 17.88 kB / 0.5228 GB, free: 87.63 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.002826/0.6255, allocations: 1.284 MB / 0.5241 GB, free: 86.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.6256, allocations: 19.31 kB / 0.5241 GB, free: 86.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002395/0.6258, allocations: 176.6 kB / 0.5243 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.6282, allocations: 415.7 kB / 0.5247 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006817/0.6289, allocations: 499.7 kB / 0.5251 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.829e-05/0.629, allocations: 85.2 kB / 0.5252 GB, free: 85.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.6291, allocations: 113.6 kB / 0.5253 GB, free: 85.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.6307, allocations: 0.9684 MB / 0.5263 GB, free: 84.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.6308, allocations: 0 / 0.5263 GB, free: 84.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.751e-05/0.6309, allocations: 44 kB / 0.5263 GB, free: 84.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.6309, allocations: 28 kB / 0.5263 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.6325, allocations: 0.9808 MB / 0.5273 GB, free: 83.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/0.6373, allocations: 3.829 MB / 0.531 GB, free: 79.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.6388, allocations: 1.55 MB / 0.5326 GB, free: 78.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001266/0.639, allocations: 183 kB / 0.5327 GB, free: 77.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006658/0.6396, allocations: 470.5 kB / 0.5332 GB, free: 77.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.996e-06/0.6397, allocations: 4 kB / 0.5332 GB, free: 77.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.008275/0.6479, allocations: 3.913 MB / 0.537 GB, free: 73.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.648, allocations: 141.5 kB / 0.5371 GB, free: 73.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.6484, allocations: 360.6 kB / 0.5375 GB, free: 72.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.6484, allocations: 49.7 kB / 0.5375 GB, free: 72.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.6486, allocations: 427.2 kB / 0.5379 GB, free: 72.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.6488, allocations: 413.4 kB / 0.5383 GB, free: 71.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/0.6489, allocations: 24 kB / 0.5383 GB, free: 71.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.757e-05/0.6489, allocations: 378.8 kB / 0.5387 GB, free: 71.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005507/0.6495, allocations: 346.5 kB / 0.539 GB, free: 71.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006402/0.6502, allocations: 0.5359 MB / 0.5396 GB, free: 70.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006333/0.6508, allocations: 424.8 kB / 0.54 GB, free: 70.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.6508, allocations: 8 kB / 0.54 GB, free: 70.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002045/0.6529, allocations: 1.353 MB / 0.5413 GB, free: 68.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.6529, allocations: 8 kB / 0.5413 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.6529, allocations: 8 kB / 0.5413 GB, free: 68.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007932/0.6537, allocations: 345.4 kB / 0.5416 GB, free: 68.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008236/0.6546, allocations: 199.7 kB / 0.5418 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005532/0.6601, allocations: 7.798 MB / 0.5494 GB, free: 59.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008248/0.661, allocations: 48.05 kB / 0.5495 GB, free: 59.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.215e-05/0.661, allocations: 43.98 kB / 0.5495 GB, free: 59.82 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.0004618/0.6615, allocations: 265.5 kB / 0.5498 GB, free: 59.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.758e-05/0.6616, allocations: 75.16 kB / 0.5499 GB, free: 59.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.6637, allocations: 1.282 MB / 0.5511 GB, free: 58.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.6637, allocations: 16 kB / 0.5511 GB, free: 58.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.6637, allocations: 4.125 kB / 0.5511 GB, free: 58.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.6638, allocations: 7.984 kB / 0.5511 GB, free: 58.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/0.6669, allocations: 2.408 MB / 0.5535 GB, free: 55.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6669, allocations: 0 / 0.5535 GB, free: 55.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006396/0.6676, allocations: 155.8 kB / 0.5536 GB, free: 55.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006562/0.6682, allocations: 323 kB / 0.5539 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.6683, allocations: 24 kB / 0.554 GB, free: 55.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005068/0.6734, allocations: 7.536 MB / 0.5613 GB, free: 47.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6734, allocations: 0 / 0.5613 GB, free: 47.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.676, allocations: 1.774 MB / 0.5631 GB, free: 45.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.6763, allocations: 220.1 kB / 0.5633 GB, free: 45.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.899e-05/0.6764, allocations: 24 kB / 0.5633 GB, free: 45.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004634/0.6768, allocations: 35.98 kB / 0.5633 GB, free: 45.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.677, allocations: 96.81 kB / 0.5634 GB, free: 44.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.677, allocations: 39.94 kB / 0.5635 GB, free: 44.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002433/0.6773, allocations: 271.2 kB / 0.5637 GB, free: 44.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6773, allocations: 0 / 0.5637 GB, free: 44.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001123/0.6784, allocations: 339.9 kB / 0.564 GB, free: 44.3 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.002842/0.6813, allocations: 2.477 MB / 0.5665 GB, free: 41.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00228/0.6836, allocations: 1.611 MB / 0.568 GB, free: 40.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6836, allocations: 3.938 kB / 0.568 GB, free: 40.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.6849, allocations: 1.146 MB / 0.5692 GB, free: 38.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.6854, allocations: 60 kB / 0.5692 GB, free: 38.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.6896, allocations: 5.626 MB / 0.5747 GB, free: 33.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.6901, allocations: 1.044 MB / 0.5757 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004684/0.6905, allocations: 106 kB / 0.5758 GB, free: 31.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003384/0.6909, allocations: 339.3 kB / 0.5762 GB, free: 31.6 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.6909, allocations: 0 / 0.5762 GB, free: 31.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.7198, allocations: 17.03 MB / 0.5928 GB, free: 14.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001322/0.72, allocations: 208.5 kB / 0.593 GB, free: 14.54 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_LinearInductor.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_functions.h:414: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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.o] Error 1