Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002648/0.002648, allocations: 169.1 kB / 16.11 MB, free: 5.676 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.453/1.453, allocations: 223.3 MB / 240.1 MB, free: 9.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008654, allocations: 97.62 kB / 291.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02752/0.02752, allocations: 5.392 MB / 347.8 MB, free: 2.195 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00807/0.00807, allocations: 2.31 MB / 402.4 MB, free: 68.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005453/0.0005453, allocations: 19.98 kB / 470 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3546, allocations: 52.18 MB / 0.51 GB, free: 39.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4881, allocations: 96.46 MB / 0.6042 GB, free: 7.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003562/0.4886, allocations: 71.95 kB / 0.6043 GB, free: 7.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3645/0.8531, allocations: 35.75 MB / 0.6392 GB, free: 94.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8532, allocations: 0 / 0.6392 GB, free: 94.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.396e-05/0.8532, allocations: 23.16 kB / 0.6392 GB, free: 94.75 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.002903/0.8561, allocations: 1.424 MB / 0.6406 GB, free: 93.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.8562, allocations: 12.44 kB / 0.6406 GB, free: 93.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.8575, allocations: 295.9 kB / 0.6409 GB, free: 93.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008214/0.8584, allocations: 0.6075 MB / 0.6415 GB, free: 93.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.24e-05/0.8585, allocations: 84.91 kB / 0.6415 GB, free: 93.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.8586, allocations: 110.4 kB / 0.6416 GB, free: 93.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.8606, allocations: 1.199 MB / 0.6428 GB, free: 93.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.8606, allocations: 1.781 kB / 0.6428 GB, free: 93.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.8607, allocations: 49.91 kB / 0.6429 GB, free: 93.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.8608, allocations: 27.09 kB / 0.6429 GB, free: 93.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002057/0.8628, allocations: 1.119 MB / 0.644 GB, free: 93.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006228/0.8691, allocations: 4.54 MB / 0.6484 GB, free: 90.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.8714, allocations: 1.835 MB / 0.6502 GB, free: 89.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006031/0.872, allocations: 362.7 kB / 0.6506 GB, free: 89.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/0.8721, allocations: 181.4 kB / 0.6507 GB, free: 89.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008076/0.873, allocations: 0.5601 MB / 0.6513 GB, free: 88.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.565e-06/0.873, allocations: 0 / 0.6513 GB, free: 88.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.006627/0.8796, allocations: 1.916 MB / 0.6531 GB, free: 88.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.8797, allocations: 309.1 kB / 0.6534 GB, free: 87.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008276/0.8806, allocations: 0.5931 MB / 0.654 GB, free: 87.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/0.8807, allocations: 45.42 kB / 0.6541 GB, free: 87.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.881, allocations: 494.8 kB / 0.6545 GB, free: 86.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.8812, allocations: 258.8 kB / 0.6548 GB, free: 86.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.536e-05/0.8812, allocations: 19.88 kB / 0.6548 GB, free: 86.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8814, allocations: 386.3 kB / 0.6552 GB, free: 86.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005916/0.882, allocations: 335.8 kB / 0.6555 GB, free: 86.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000705/0.8827, allocations: 0.5753 MB / 0.6561 GB, free: 85.78 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.01533/0.898, allocations: 3.732 MB / 0.6597 GB, free: 82.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.8981, allocations: 3.938 kB / 0.6597 GB, free: 82.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002377/0.9004, allocations: 1.224 MB / 0.6609 GB, free: 81.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.063e-05/0.9005, allocations: 93.73 kB / 0.661 GB, free: 81.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.9006, allocations: 13.78 kB / 0.661 GB, free: 81.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005075/0.9011, allocations: 94.12 kB / 0.6611 GB, free: 81.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000989/0.9021, allocations: 253 kB / 0.6613 GB, free: 81.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.9036, allocations: 1.556 MB / 0.6628 GB, free: 79.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009623/0.9046, allocations: 110.7 kB / 0.663 GB, free: 79.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-05/0.9047, allocations: 54.69 kB / 0.663 GB, free: 79.32 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.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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.0006501/0.9054, allocations: 379.7 kB / 0.6634 GB, free: 78.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.9055, allocations: 79.09 kB / 0.6634 GB, free: 78.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.9095, allocations: 1.54 MB / 0.6649 GB, free: 77.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.9095, allocations: 8 kB / 0.665 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.9095, allocations: 4 kB / 0.665 GB, free: 77.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.9096, allocations: 3.984 kB / 0.665 GB, free: 77.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003495/0.9131, allocations: 2.444 MB / 0.6673 GB, free: 74.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.9131, allocations: 4 kB / 0.6674 GB, free: 74.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005161/0.9136, allocations: 127.8 kB / 0.6675 GB, free: 74.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002161/0.9158, allocations: 0.5976 MB / 0.6681 GB, free: 74.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.349e-05/0.9159, allocations: 31.97 kB / 0.6681 GB, free: 74.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008656/0.9167, allocations: 0.9248 MB / 0.669 GB, free: 73.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9168, allocations: 4.031 kB / 0.669 GB, free: 73.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.9191, allocations: 1.666 MB / 0.6706 GB, free: 71.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003898/0.9196, allocations: 255.8 kB / 0.6709 GB, free: 71.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.9197, allocations: 31.94 kB / 0.6709 GB, free: 71.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.9202, allocations: 43.97 kB / 0.6709 GB, free: 71.03 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.9204, allocations: 64.92 kB / 0.671 GB, free: 70.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.234e-05/0.9204, allocations: 31.97 kB / 0.671 GB, free: 70.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004955/0.9209, allocations: 422.8 kB / 0.6714 GB, free: 70.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.9209, allocations: 0 / 0.6714 GB, free: 70.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001208/0.9222, allocations: 394.9 kB / 0.6718 GB, free: 70.14 MB / 394.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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.0008617/0.923, allocations: 416.8 kB / 0.6722 GB, free: 69.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.925, allocations: 1.175 MB / 0.6734 GB, free: 68.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.9251, allocations: 4.25 kB / 0.6734 GB, free: 68.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008116/0.9259, allocations: 0.6599 MB / 0.674 GB, free: 67.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008377/0.9267, allocations: 143.3 kB / 0.6741 GB, free: 67.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.9298, allocations: 2.208 MB / 0.6763 GB, free: 65.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.9302, allocations: 1.009 MB / 0.6773 GB, free: 64.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005651/0.9308, allocations: 121.2 kB / 0.6774 GB, free: 64.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.9311, allocations: 83.38 kB / 0.6775 GB, free: 64.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/0.9311, allocations: 0 / 0.6775 GB, free: 64.3 MB / 394.7 MB Notification: Performance of Templates: time 0.02024/0.9513, allocations: 12.92 MB / 0.6901 GB, free: 51.48 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016 -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_2016.o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016_model.h:26: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016_functions.h:336: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_2016_functions.h:345: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_2016.o] Error 1