Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) 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: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007567/0.007567, allocations: 171.3 kB / 15.11 MB, free: 5.969 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.447/1.447, allocations: 223.2 MB / 239 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008489/0.0008489, allocations: 106.5 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02507/0.02507, allocations: 5.391 MB / 346.7 MB, free: 5.566 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1577/0.1577, allocations: 2.302 MB / 401.3 MB, free: 91.77 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003968, allocations: 12 kB / 465.3 MB, free: 42.26 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1036, allocations: 52.19 MB / 0.5054 GB, free: 6.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4914, allocations: 96.36 MB / 0.5995 GB, free: 5.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.4918, allocations: 80.81 kB / 0.5996 GB, free: 5.492 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09039/0.5822, allocations: 35.88 MB / 0.6346 GB, free: 6.676 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.409e-06/0.5822, allocations: 0 / 0.6346 GB, free: 6.676 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.287e-05/0.5823, allocations: 27.94 kB / 0.6346 GB, free: 6.648 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003381/0.5857, allocations: 1.438 MB / 0.636 GB, free: 5.141 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.5857, allocations: 8.031 kB / 0.636 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.5872, allocations: 298.4 kB / 0.6363 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009379/0.5882, allocations: 0.5822 MB / 0.6369 GB, free: 4.215 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.779e-05/0.5883, allocations: 89.95 kB / 0.637 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.5884, allocations: 111.9 kB / 0.6371 GB, free: 4.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.5906, allocations: 1.195 MB / 0.6383 GB, free: 2.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.5907, allocations: 3.906 kB / 0.6383 GB, free: 2.762 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.5908, allocations: 48 kB / 0.6383 GB, free: 2.715 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.5908, allocations: 24 kB / 0.6383 GB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/0.593, allocations: 1.115 MB / 0.6394 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006815/0.5999, allocations: 4.539 MB / 0.6439 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.6025, allocations: 1.835 MB / 0.6456 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001946/0.6028, allocations: 174.8 kB / 0.6458 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009496/0.6037, allocations: 0.5674 MB / 0.6464 GB, free: 9.953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.685e-06/0.6037, allocations: 0 / 0.6464 GB, free: 9.953 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.007372/0.6111, allocations: 2.057 MB / 0.6484 GB, free: 7.812 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.6113, allocations: 285.7 kB / 0.6486 GB, free: 7.473 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000972/0.6123, allocations: 0.5293 MB / 0.6492 GB, free: 6.938 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.397e-05/0.6124, allocations: 41.7 kB / 0.6492 GB, free: 6.891 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.6129, allocations: 486.9 kB / 0.6497 GB, free: 6.406 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/0.6131, allocations: 264.3 kB / 0.6499 GB, free: 6.145 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.6132, allocations: 20 kB / 0.6499 GB, free: 6.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.6134, allocations: 386.7 kB / 0.6503 GB, free: 5.738 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006728/0.6141, allocations: 338.5 kB / 0.6506 GB, free: 5.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007921/0.6149, allocations: 0.5716 MB / 0.6512 GB, free: 4.742 MB / 410.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01724/0.6321, allocations: 2.841 MB / 0.654 GB, free: 1.852 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/0.6322, allocations: 4 kB / 0.654 GB, free: 1.848 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002596/0.6348, allocations: 1.225 MB / 0.6552 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.936e-05/0.6349, allocations: 93.09 kB / 0.6553 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.6349, allocations: 4 kB / 0.6553 GB, free: 500 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005054/0.6354, allocations: 97 kB / 0.6553 GB, free: 400 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.6365, allocations: 259.5 kB / 0.6556 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.6383, allocations: 1.577 MB / 0.6571 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00096/0.6392, allocations: 111.3 kB / 0.6572 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.059e-05/0.6393, allocations: 51.95 kB / 0.6573 GB, free: 14.27 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007109/0.6401, allocations: 369.2 kB / 0.6576 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.6402, allocations: 79.06 kB / 0.6577 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004683/0.6449, allocations: 1.549 MB / 0.6592 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.6449, allocations: 8 kB / 0.6592 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6449, allocations: 0 / 0.6592 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.645, allocations: 7.984 kB / 0.6592 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.649, allocations: 2.334 MB / 0.6615 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.649, allocations: 0 / 0.6615 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005898/0.6496, allocations: 135.8 kB / 0.6617 GB, free: 9.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/0.6522, allocations: 0.5878 MB / 0.6622 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.472e-05/0.6523, allocations: 35.92 kB / 0.6623 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.6534, allocations: 0.9326 MB / 0.6632 GB, free: 8.043 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.6534, allocations: 0 / 0.6632 GB, free: 8.043 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.6562, allocations: 1.692 MB / 0.6648 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004962/0.6567, allocations: 255.8 kB / 0.6651 GB, free: 6.023 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.6569, allocations: 24 kB / 0.6651 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006202/0.6575, allocations: 47.94 kB / 0.6651 GB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.6577, allocations: 64.91 kB / 0.6652 GB, free: 5.891 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-05/0.6578, allocations: 39.91 kB / 0.6652 GB, free: 5.852 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006754/0.6584, allocations: 422.8 kB / 0.6656 GB, free: 5.441 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6585, allocations: 0 / 0.6656 GB, free: 5.441 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001646/0.6601, allocations: 383 kB / 0.666 GB, free: 5.066 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009017/0.661, allocations: 430.8 kB / 0.6664 GB, free: 4.719 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.6634, allocations: 1.173 MB / 0.6676 GB, free: 3.496 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6634, allocations: 448 / 0.6676 GB, free: 3.496 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.6645, allocations: 0.6676 MB / 0.6682 GB, free: 2.789 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008008/0.6653, allocations: 119.7 kB / 0.6683 GB, free: 2.672 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.6691, allocations: 2.199 MB / 0.6705 GB, free: 456 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.6698, allocations: 1.034 MB / 0.6715 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005651/0.6704, allocations: 126.2 kB / 0.6716 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.6706, allocations: 83.38 kB / 0.6717 GB, free: 15.18 MB / 442.7 MB Notification: Performance of SimCode: time 8.52e-07/0.6707, allocations: 0 / 0.6717 GB, free: 15.18 MB / 442.7 MB Notification: Performance of Templates: time 0.02299/0.6937, allocations: 12.85 MB / 0.6842 GB, free: 2.402 MB / 442.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808_functions.h:356:1: error: unknown type name '_omcQComplexOutput_24converter_24potentialSensor_24v' _omcQComplexOutput_24converter_24potentialSensor_24v omc__omcQComplexOutput_24converter_24potentialSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808_functions.h:365:1: error: unknown type name '_omcQComplexOutput_24converter_24powerSensor_24apparentPower' _omcQComplexOutput_24converter_24powerSensor_24apparentPower omc__omcQComplexOutput_24converter_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 errors generated. make: *** [: PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.o] Error 1