Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005403/0.005402, allocations: 171 kB / 15.11 MB, free: 6.039 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.371/1.371, allocations: 223.2 MB / 239 MB, free: 1.797 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.000935/0.0009352, allocations: 90.02 kB / 290.2 MB, free: 13.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02495/0.02495, allocations: 5.393 MB / 346.7 MB, free: 5.578 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1745/0.1745, allocations: 2.311 MB / 401.3 MB, free: 91.66 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005615, allocations: 12 kB / 465.3 MB, free: 42.29 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1388, allocations: 52.2 MB / 0.5054 GB, free: 6.039 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.6379, allocations: 96.37 MB / 0.5995 GB, free: 5.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.6383, allocations: 70.3 kB / 0.5996 GB, free: 5.523 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1264/0.7646, allocations: 35.88 MB / 0.6346 GB, free: 6.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.7647, allocations: 0 / 0.6346 GB, free: 6.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.915e-05/0.7648, allocations: 20 kB / 0.6346 GB, free: 6.688 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.004648/0.7695, allocations: 1.442 MB / 0.636 GB, free: 5.176 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.7695, allocations: 8.031 kB / 0.636 GB, free: 5.168 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.7717, allocations: 302.4 kB / 0.6363 GB, free: 4.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.7731, allocations: 0.5822 MB / 0.6369 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.7732, allocations: 78.06 kB / 0.637 GB, free: 4.168 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/0.7735, allocations: 112 kB / 0.6371 GB, free: 4.059 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003196/0.7767, allocations: 1.203 MB / 0.6383 GB, free: 2.801 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.071e-05/0.7767, allocations: 3.906 kB / 0.6383 GB, free: 2.797 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.7769, allocations: 44 kB / 0.6383 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.302e-05/0.7769, allocations: 24 kB / 0.6383 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003352/0.7803, allocations: 1.124 MB / 0.6394 GB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.7906, allocations: 4.531 MB / 0.6439 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003956/0.7946, allocations: 1.835 MB / 0.6456 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002471/0.7949, allocations: 174.8 kB / 0.6458 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001423/0.7964, allocations: 0.5635 MB / 0.6464 GB, free: 9.992 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.526e-06/0.7964, allocations: 0 / 0.6464 GB, free: 9.992 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.01089/0.8073, allocations: 2.069 MB / 0.6484 GB, free: 7.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.8075, allocations: 281.7 kB / 0.6487 GB, free: 7.504 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.8088, allocations: 0.5293 MB / 0.6492 GB, free: 6.969 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.809, allocations: 41.7 kB / 0.6492 GB, free: 6.922 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/0.8096, allocations: 490.9 kB / 0.6497 GB, free: 6.434 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.81, allocations: 264.3 kB / 0.6499 GB, free: 6.172 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.8102, allocations: 20 kB / 0.6499 GB, free: 6.152 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002682/0.8104, allocations: 390.7 kB / 0.6503 GB, free: 5.762 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009982/0.8114, allocations: 334.5 kB / 0.6506 GB, free: 5.438 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.8127, allocations: 0.5716 MB / 0.6512 GB, free: 4.77 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.02288/0.8356, allocations: 2.837 MB / 0.654 GB, free: 1.883 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.607e-05/0.8356, allocations: 4 kB / 0.654 GB, free: 1.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003665/0.8393, allocations: 1.221 MB / 0.6552 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.8394, allocations: 97.09 kB / 0.6553 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.8394, allocations: 4 kB / 0.6553 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006821/0.8401, allocations: 101 kB / 0.6554 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.8417, allocations: 251.6 kB / 0.6556 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.844, allocations: 1.581 MB / 0.6571 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.8454, allocations: 111 kB / 0.6572 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.8455, allocations: 51.95 kB / 0.6573 GB, free: 14.3 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.001071/0.8466, allocations: 365.2 kB / 0.6576 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/0.8469, allocations: 79.06 kB / 0.6577 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006405/0.8533, allocations: 1.549 MB / 0.6592 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.8533, allocations: 8 kB / 0.6592 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.8534, allocations: 0 / 0.6592 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/0.8534, allocations: 7.984 kB / 0.6592 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005763/0.8592, allocations: 2.338 MB / 0.6615 GB, free: 9.805 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.8592, allocations: 0 / 0.6615 GB, free: 9.805 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000829/0.86, allocations: 131.8 kB / 0.6617 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003382/0.8634, allocations: 0.5956 MB / 0.6622 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.8636, allocations: 39.92 kB / 0.6623 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.8652, allocations: 0.9248 MB / 0.6632 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.8652, allocations: 0 / 0.6632 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004188/0.8694, allocations: 1.689 MB / 0.6648 GB, free: 6.328 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007627/0.8702, allocations: 259.8 kB / 0.6651 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.8704, allocations: 24 kB / 0.6651 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008498/0.8713, allocations: 51.97 kB / 0.6651 GB, free: 5.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.8715, allocations: 60.88 kB / 0.6652 GB, free: 5.922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.98e-05/0.8716, allocations: 35.97 kB / 0.6652 GB, free: 5.887 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008239/0.8724, allocations: 426.8 kB / 0.6656 GB, free: 5.473 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8724, allocations: 0 / 0.6656 GB, free: 5.473 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001815/0.8742, allocations: 383 kB / 0.666 GB, free: 5.098 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.001182/0.8754, allocations: 432.3 kB / 0.6664 GB, free: 4.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002966/0.8784, allocations: 1.173 MB / 0.6676 GB, free: 3.527 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.8784, allocations: 0 / 0.6676 GB, free: 3.527 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.8798, allocations: 0.6677 MB / 0.6682 GB, free: 2.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.8809, allocations: 116 kB / 0.6683 GB, free: 2.707 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005063/0.886, allocations: 2.219 MB / 0.6705 GB, free: 476 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008642/0.8869, allocations: 1.034 MB / 0.6715 GB, free: 15.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009298/0.8878, allocations: 114.2 kB / 0.6716 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.8882, allocations: 87.38 kB / 0.6717 GB, free: 15.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8882, allocations: 0 / 0.6717 GB, free: 15.2 MB / 442.7 MB Notification: Performance of Templates: time 0.033/0.9212, allocations: 12.86 MB / 0.6843 GB, free: 2.426 MB / 442.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.makefile make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.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_Trina_Analytical_20160704 -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_Trina_Analytical_20160704.o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704_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_Trina_Analytical_20160704_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_Trina_Analytical_20160704.o] Error 1