Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01005/0.01005, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.677/1.677, allocations: 223.2 MB / 239 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009327/0.0009327, allocations: 97.03 kB / 290.2 MB, free: 4.617 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02493/0.02493, allocations: 5.395 MB / 346.7 MB, free: 7.672 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008547/0.008547, allocations: 2.307 MB / 401.3 MB, free: 1.047 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004635/0.0004636, allocations: 13.19 kB / 465.3 MB, free: 105.4 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 52.21 MB / 0.5054 GB, free: 53.2 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/0.459, allocations: 96.37 MB / 0.5995 GB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001747/0.4592, allocations: 74.75 kB / 0.5996 GB, free: 12.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09047/0.5497, allocations: 35.89 MB / 0.6346 GB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5497, allocations: 0 / 0.6346 GB, free: 15.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.325e-05/0.5498, allocations: 24 kB / 0.6346 GB, free: 15.67 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.004456/0.5543, allocations: 1.434 MB / 0.636 GB, free: 14.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5543, allocations: 12.03 kB / 0.6361 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.5559, allocations: 293.3 kB / 0.6363 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009703/0.5569, allocations: 0.5843 MB / 0.6369 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.985e-05/0.5569, allocations: 88.25 kB / 0.637 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.5571, allocations: 110.5 kB / 0.6371 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.5593, allocations: 1.192 MB / 0.6383 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/0.5594, allocations: 3.906 kB / 0.6383 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.5595, allocations: 42.69 kB / 0.6383 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.5595, allocations: 28 kB / 0.6383 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.5618, allocations: 1.12 MB / 0.6394 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006502/0.5683, allocations: 4.536 MB / 0.6439 GB, free: 7.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.5708, allocations: 1.84 MB / 0.6457 GB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001704/0.571, allocations: 174.8 kB / 0.6458 GB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008914/0.5719, allocations: 0.5596 MB / 0.6464 GB, free: 4.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.196e-06/0.5719, allocations: 0 / 0.6464 GB, free: 4.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=80): time 0.007294/0.5792, allocations: 2.069 MB / 0.6484 GB, free: 2.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001601/0.5794, allocations: 281.7 kB / 0.6487 GB, free: 2.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009166/0.5803, allocations: 0.5332 MB / 0.6492 GB, free: 1.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.415e-05/0.5804, allocations: 37.7 kB / 0.6492 GB, free: 1.668 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004593/0.5809, allocations: 486.9 kB / 0.6497 GB, free: 1.184 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.5812, allocations: 260.3 kB / 0.6499 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.5812, allocations: 20 kB / 0.6499 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.5815, allocations: 386.7 kB / 0.6503 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006781/0.5821, allocations: 338.5 kB / 0.6506 GB, free: 196 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008442/0.583, allocations: 0.5716 MB / 0.6512 GB, free: 15.52 MB / 394.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.01672/0.5997, allocations: 2.845 MB / 0.654 GB, free: 12.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.5998, allocations: 0 / 0.654 GB, free: 12.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002558/0.6023, allocations: 1.225 MB / 0.6552 GB, free: 11.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-05/0.6024, allocations: 93.09 kB / 0.6553 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.6025, allocations: 8 kB / 0.6553 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005002/0.603, allocations: 96.94 kB / 0.6554 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.604, allocations: 255.5 kB / 0.6556 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.606, allocations: 1.569 MB / 0.6571 GB, free: 9.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.607, allocations: 115.2 kB / 0.6572 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.6072, allocations: 55.95 kB / 0.6573 GB, free: 9.047 MB / 394.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.0007991/0.608, allocations: 371.8 kB / 0.6577 GB, free: 8.656 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.6082, allocations: 79.06 kB / 0.6577 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004927/0.6132, allocations: 1.545 MB / 0.6592 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.6132, allocations: 8 kB / 0.6592 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.6132, allocations: 4 kB / 0.6592 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.6132, allocations: 3.984 kB / 0.6593 GB, free: 6.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004284/0.6175, allocations: 2.342 MB / 0.6615 GB, free: 4.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.6175, allocations: 4 kB / 0.6615 GB, free: 4.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005698/0.6181, allocations: 131.8 kB / 0.6617 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/0.6206, allocations: 0.5886 MB / 0.6622 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.6207, allocations: 31.97 kB / 0.6623 GB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.6218, allocations: 0.9322 MB / 0.6632 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6218, allocations: 4.031 kB / 0.6632 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003099/0.625, allocations: 1.689 MB / 0.6648 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005335/0.6255, allocations: 255.8 kB / 0.6651 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002272/0.6257, allocations: 24 kB / 0.6651 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007085/0.6265, allocations: 43.97 kB / 0.6651 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.6266, allocations: 72.8 kB / 0.6652 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.281e-05/0.6267, allocations: 39.97 kB / 0.6653 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006591/0.6274, allocations: 414.8 kB / 0.6656 GB, free: 236 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6274, allocations: 0 / 0.6656 GB, free: 236 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001428/0.6288, allocations: 387 kB / 0.666 GB, free: 15.85 MB / 410.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.001025/0.6298, allocations: 434.8 kB / 0.6664 GB, free: 15.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.6321, allocations: 1.171 MB / 0.6676 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6321, allocations: 448 / 0.6676 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.6332, allocations: 0.6677 MB / 0.6682 GB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.634, allocations: 114.4 kB / 0.6683 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.6379, allocations: 2.203 MB / 0.6705 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007562/0.6386, allocations: 1.034 MB / 0.6715 GB, free: 10.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006041/0.6392, allocations: 122.2 kB / 0.6716 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/0.6396, allocations: 83.39 kB / 0.6717 GB, free: 9.953 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6396, allocations: 0 / 0.6717 GB, free: 9.953 MB / 410.7 MB Notification: Performance of Templates: time 0.02449/0.6641, allocations: 12.86 MB / 0.6843 GB, free: 13.17 MB / 426.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_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_Comax_Analytical_20160704.o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_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_Comax_Analytical_20160704.o] Error 1