Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001196/0.001195, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.2 MB / 245 MB, free: 7.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 103.6 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002232/0.0002232, allocations: 7.984 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2376, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.3573, allocations: 96.9 MB / 0.4945 GB, free: 9.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.3576, allocations: 87.95 kB / 0.4946 GB, free: 9.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2745/0.6321, allocations: 38.6 MB / 0.5323 GB, free: 79.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.6322, allocations: 0 / 0.5323 GB, free: 79.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.31e-05/0.6322, allocations: 28 kB / 0.5323 GB, free: 79.3 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.00373/0.636, allocations: 1.736 MB / 0.534 GB, free: 77.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.636, allocations: 8.031 kB / 0.534 GB, free: 77.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003314/0.6363, allocations: 222.2 kB / 0.5343 GB, free: 77.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002847/0.6392, allocations: 0.5328 MB / 0.5348 GB, free: 76.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.6404, allocations: 0.7659 MB / 0.5355 GB, free: 75.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.6405, allocations: 140.6 kB / 0.5357 GB, free: 75.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.6407, allocations: 151.9 kB / 0.5358 GB, free: 75.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002139/0.6429, allocations: 1.346 MB / 0.5371 GB, free: 74.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/0.6429, allocations: 8 kB / 0.5371 GB, free: 74.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.643, allocations: 56 kB / 0.5372 GB, free: 74.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.643, allocations: 36 kB / 0.5372 GB, free: 74.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002181/0.6452, allocations: 1.343 MB / 0.5385 GB, free: 72.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006424/0.6517, allocations: 5.069 MB / 0.5435 GB, free: 67.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.654, allocations: 1.933 MB / 0.5454 GB, free: 65.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.6541, allocations: 195.2 kB / 0.5456 GB, free: 65.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.6552, allocations: 0.7504 MB / 0.5463 GB, free: 64.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.015e-06/0.6552, allocations: 0 / 0.5463 GB, free: 64.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01234/0.6676, allocations: 5.595 MB / 0.5517 GB, free: 58.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.6677, allocations: 157.8 kB / 0.5519 GB, free: 58.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.6683, allocations: 0.566 MB / 0.5524 GB, free: 57.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.6684, allocations: 57.7 kB / 0.5525 GB, free: 57.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.6688, allocations: 0.5858 MB / 0.5531 GB, free: 57.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.669, allocations: 0.5274 MB / 0.5536 GB, free: 56.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.6691, allocations: 36 kB / 0.5536 GB, free: 56.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.6693, allocations: 422.7 kB / 0.554 GB, free: 56.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009325/0.6702, allocations: 0.5154 MB / 0.5545 GB, free: 55.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.6712, allocations: 0.8481 MB / 0.5554 GB, free: 54.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.6723, allocations: 0.6337 MB / 0.556 GB, free: 54.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.6723, allocations: 4 kB / 0.556 GB, free: 54.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003832/0.6761, allocations: 2.035 MB / 0.558 GB, free: 52.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.6762, allocations: 16 kB / 0.558 GB, free: 52.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.6762, allocations: 8 kB / 0.558 GB, free: 52.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001951/0.6782, allocations: 0.5245 MB / 0.5585 GB, free: 51.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.6793, allocations: 295.5 kB / 0.5588 GB, free: 51.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007716/0.687, allocations: 8.752 MB / 0.5673 GB, free: 41.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.6884, allocations: 87.92 kB / 0.5674 GB, free: 41.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.6885, allocations: 67.98 kB / 0.5675 GB, free: 41.83 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.0006826/0.6892, allocations: 349.5 kB / 0.5678 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.6893, allocations: 107.2 kB / 0.5679 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003808/0.6931, allocations: 1.91 MB / 0.5698 GB, free: 39.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.6932, allocations: 16 kB / 0.5698 GB, free: 39.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.6932, allocations: 8 kB / 0.5698 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.6932, allocations: 7.969 kB / 0.5698 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005245/0.6984, allocations: 3.43 MB / 0.5732 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6985, allocations: 7.938 kB / 0.5732 GB, free: 35.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00092/0.6994, allocations: 207.8 kB / 0.5734 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001881/0.7013, allocations: 0.5067 MB / 0.5739 GB, free: 35.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.961e-05/0.7014, allocations: 39.98 kB / 0.5739 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007111/0.7085, allocations: 8.479 MB / 0.5822 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7085, allocations: 4.062 kB / 0.5822 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/0.7133, allocations: 2.639 MB / 0.5848 GB, free: 23.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000495/0.7138, allocations: 311.4 kB / 0.5851 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.714, allocations: 32 kB / 0.5851 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007054/0.7147, allocations: 71.95 kB / 0.5852 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.715, allocations: 125.1 kB / 0.5853 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.678e-05/0.7151, allocations: 52.53 kB / 0.5853 GB, free: 22.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004709/0.7155, allocations: 435.1 kB / 0.5857 GB, free: 22.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7155, allocations: 0 / 0.5857 GB, free: 22.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001521/0.7171, allocations: 432 kB / 0.5862 GB, free: 22.01 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.005039/0.7221, allocations: 3.397 MB / 0.5895 GB, free: 18.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003271/0.7254, allocations: 2.114 MB / 0.5915 GB, free: 16.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.7254, allocations: 8.25 kB / 0.5915 GB, free: 16.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.7273, allocations: 1.424 MB / 0.5929 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.7279, allocations: 91.66 kB / 0.593 GB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/0.7339, allocations: 9.65 MB / 0.6024 GB, free: 4.965 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/0.7345, allocations: 1.228 MB / 0.6036 GB, free: 3.707 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006884/0.7352, allocations: 156.6 kB / 0.6038 GB, free: 3.551 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005451/0.7357, allocations: 0.5227 MB / 0.6043 GB, free: 3.027 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.7357, allocations: 4 kB / 0.6043 GB, free: 3.023 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04624/0.782, allocations: 26.43 MB / 0.6301 GB, free: 8.832 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.7822, allocations: 223.5 kB / 0.6303 GB, free: 8.598 MB / 410.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_NonLinearInductor.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_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_NonLinearInductor.o] Error 1