Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009988/0.0009988, allocations: 178.1 kB / 16.12 MB, free: 5.668 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.355/1.355, allocations: 223.3 MB / 240.1 MB, free: 11.7 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.0007184/0.0007185, allocations: 93.33 kB / 291.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02581/0.02581, allocations: 5.394 MB / 347.8 MB, free: 2.391 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008322/0.008322, allocations: 2.312 MB / 402.4 MB, free: 68.43 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.00073/0.0007302, allocations: 16 kB / 466.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2684, allocations: 52.19 MB / 0.5067 GB, free: 40.29 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.3892, allocations: 96.45 MB / 0.6008 GB, free: 7.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3895, allocations: 79.91 kB / 0.6009 GB, free: 7.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3349/0.7243, allocations: 35.76 MB / 0.6358 GB, free: 94.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7244, allocations: 0 / 0.6358 GB, free: 94.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.784e-05/0.7244, allocations: 18.62 kB / 0.6359 GB, free: 94.7 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.003391/0.7278, allocations: 1.422 MB / 0.6372 GB, free: 93.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.7279, allocations: 12.62 kB / 0.6373 GB, free: 93.87 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001508/0.7294, allocations: 308.9 kB / 0.6376 GB, free: 93.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009457/0.7304, allocations: 0.6012 MB / 0.6381 GB, free: 93.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.248e-05/0.7305, allocations: 80.5 kB / 0.6382 GB, free: 93.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.7306, allocations: 108.1 kB / 0.6383 GB, free: 93.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.7327, allocations: 1.209 MB / 0.6395 GB, free: 93.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/0.7327, allocations: 192 / 0.6395 GB, free: 93.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.7328, allocations: 49.72 kB / 0.6396 GB, free: 93.35 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.646e-05/0.7329, allocations: 25.84 kB / 0.6396 GB, free: 93.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.735, allocations: 1.119 MB / 0.6407 GB, free: 93.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006362/0.7414, allocations: 4.542 MB / 0.6451 GB, free: 90.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.7436, allocations: 1.828 MB / 0.6469 GB, free: 89.44 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.7443, allocations: 365.1 kB / 0.6472 GB, free: 89.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/0.7444, allocations: 176.5 kB / 0.6474 GB, free: 89.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008336/0.7453, allocations: 0.5654 MB / 0.648 GB, free: 88.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.987e-06/0.7453, allocations: 7.594 kB / 0.648 GB, free: 88.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.006502/0.7518, allocations: 1.916 MB / 0.6498 GB, free: 88.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.7519, allocations: 305.2 kB / 0.6501 GB, free: 87.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008261/0.7528, allocations: 0.5957 MB / 0.6507 GB, free: 87.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.038e-05/0.7529, allocations: 43.8 kB / 0.6508 GB, free: 87.42 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.7532, allocations: 488.4 kB / 0.6512 GB, free: 87.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.7534, allocations: 258.6 kB / 0.6515 GB, free: 86.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/0.7535, allocations: 26.62 kB / 0.6515 GB, free: 86.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.7536, allocations: 381.6 kB / 0.6519 GB, free: 86.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.7542, allocations: 333.9 kB / 0.6522 GB, free: 86.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007117/0.7549, allocations: 0.5801 MB / 0.6527 GB, free: 85.86 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.01511/0.77, allocations: 3.727 MB / 0.6564 GB, free: 82.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/0.7701, allocations: 3.938 kB / 0.6564 GB, free: 82.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002269/0.7724, allocations: 1.235 MB / 0.6576 GB, free: 81.56 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.385e-05/0.7724, allocations: 87.61 kB / 0.6577 GB, free: 81.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.7725, allocations: 8 kB / 0.6577 GB, free: 81.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004802/0.773, allocations: 101.3 kB / 0.6578 GB, free: 81.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/0.7739, allocations: 254.9 kB / 0.658 GB, free: 81.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.7752, allocations: 1.559 MB / 0.6595 GB, free: 79.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009413/0.7761, allocations: 113.3 kB / 0.6596 GB, free: 79.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/0.7762, allocations: 54.59 kB / 0.6597 GB, free: 79.39 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.0005796/0.7768, allocations: 372.9 kB / 0.6601 GB, free: 79.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.777, allocations: 79 kB / 0.6601 GB, free: 78.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.7809, allocations: 1.529 MB / 0.6616 GB, free: 77.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.7809, allocations: 15.42 kB / 0.6616 GB, free: 77.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.781, allocations: 3.125 kB / 0.6616 GB, free: 77.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.781, allocations: 3.984 kB / 0.6616 GB, free: 77.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003565/0.7845, allocations: 2.446 MB / 0.664 GB, free: 74.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.7846, allocations: 0 / 0.664 GB, free: 74.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.7852, allocations: 139.8 kB / 0.6642 GB, free: 74.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002185/0.7874, allocations: 0.5876 MB / 0.6647 GB, free: 74.26 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.292e-05/0.7875, allocations: 31.97 kB / 0.6648 GB, free: 74.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009183/0.7885, allocations: 0.9217 MB / 0.6657 GB, free: 73.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.7885, allocations: 4.062 kB / 0.6657 GB, free: 73.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.7911, allocations: 1.669 MB / 0.6673 GB, free: 71.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000492/0.7917, allocations: 259.7 kB / 0.6676 GB, free: 71.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.7918, allocations: 31.94 kB / 0.6676 GB, free: 71.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005627/0.7924, allocations: 43.97 kB / 0.6676 GB, free: 71.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.7925, allocations: 60.91 kB / 0.6677 GB, free: 71.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.689e-05/0.7926, allocations: 35.97 kB / 0.6677 GB, free: 71.12 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005966/0.7932, allocations: 426.8 kB / 0.6681 GB, free: 70.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7932, allocations: 0 / 0.6681 GB, free: 70.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001334/0.7945, allocations: 390.9 kB / 0.6685 GB, free: 70.32 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 (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.0008505/0.7954, allocations: 417.7 kB / 0.6689 GB, free: 70.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.7974, allocations: 1.17 MB / 0.67 GB, free: 68.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.7974, allocations: 5.562 kB / 0.67 GB, free: 68.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.7982, allocations: 0.6639 MB / 0.6707 GB, free: 68.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008663/0.7991, allocations: 134.2 kB / 0.6708 GB, free: 67.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.8021, allocations: 2.21 MB / 0.673 GB, free: 65.72 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.8026, allocations: 1.017 MB / 0.674 GB, free: 64.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.8031, allocations: 121.2 kB / 0.6741 GB, free: 64.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.8033, allocations: 83.38 kB / 0.6742 GB, free: 64.48 MB / 394.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8033, allocations: 0 / 0.6742 GB, free: 64.48 MB / 394.7 MB Notification: Performance of Templates: time 0.02011/0.8235, allocations: 12.93 MB / 0.6868 GB, free: 51.66 MB / 394.7 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.makefile make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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_20160629 -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_20160629.o PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629_model.h:26: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629_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_20160629_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_20160629.o] Error 1