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: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005343/0.005343, allocations: 169.8 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.425/1.425, 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.0008712/0.0008712, allocations: 99.94 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.02532/0.02532, allocations: 5.401 MB / 346.7 MB, free: 5.562 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1905/0.1905, allocations: 2.297 MB / 401.3 MB, free: 91.73 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004509/0.0004509, allocations: 16 kB / 465.4 MB, free: 42.16 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1019, allocations: 52.19 MB / 0.5055 GB, free: 5.914 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4854, allocations: 96.37 MB / 0.5996 GB, free: 5.559 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.4857, allocations: 69.92 kB / 0.5997 GB, free: 5.531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09291/0.5786, allocations: 35.88 MB / 0.6347 GB, free: 6.582 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5787, allocations: 0 / 0.6347 GB, free: 6.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.971e-05/0.5787, allocations: 24 kB / 0.6347 GB, free: 6.559 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.003499/0.5822, allocations: 1.442 MB / 0.6361 GB, free: 5.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.5823, allocations: 12.03 kB / 0.6361 GB, free: 5.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002206/0.5825, allocations: 160.7 kB / 0.6363 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.584, allocations: 294.4 kB / 0.6366 GB, free: 4.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.5851, allocations: 0.5938 MB / 0.6371 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.031e-05/0.5852, allocations: 86.02 kB / 0.6372 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.5853, allocations: 104 kB / 0.6373 GB, free: 3.754 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.5876, allocations: 1.199 MB / 0.6385 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.5876, allocations: 3.906 kB / 0.6385 GB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.5878, allocations: 47.98 kB / 0.6385 GB, free: 2.449 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.5878, allocations: 28 kB / 0.6386 GB, free: 2.422 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002394/0.5902, allocations: 1.116 MB / 0.6397 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007098/0.5973, allocations: 4.535 MB / 0.6441 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002637/0.6, allocations: 1.842 MB / 0.6459 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002092/0.6002, allocations: 174.8 kB / 0.6461 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009307/0.6012, allocations: 0.5558 MB / 0.6466 GB, free: 9.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.028e-06/0.6012, allocations: 0 / 0.6466 GB, free: 9.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.007529/0.6087, allocations: 2.061 MB / 0.6486 GB, free: 7.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.6089, allocations: 289.7 kB / 0.6489 GB, free: 7.199 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008917/0.6098, allocations: 0.5332 MB / 0.6494 GB, free: 6.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.37e-05/0.6099, allocations: 41.69 kB / 0.6495 GB, free: 6.613 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004195/0.6103, allocations: 490.9 kB / 0.6499 GB, free: 6.125 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.6106, allocations: 256.4 kB / 0.6502 GB, free: 5.871 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.6107, allocations: 20 kB / 0.6502 GB, free: 5.852 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.6108, allocations: 386.7 kB / 0.6506 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006695/0.6115, allocations: 338.5 kB / 0.6509 GB, free: 5.137 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008185/0.6123, allocations: 0.5755 MB / 0.6514 GB, free: 4.465 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.01695/0.6293, allocations: 2.841 MB / 0.6542 GB, free: 1.574 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.6293, allocations: 0 / 0.6542 GB, free: 1.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002602/0.632, allocations: 1.229 MB / 0.6554 GB, free: 332 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/0.632, allocations: 89.11 kB / 0.6555 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.6321, allocations: 8 kB / 0.6555 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005513/0.6326, allocations: 105 kB / 0.6556 GB, free: 108 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.6338, allocations: 255.6 kB / 0.6558 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.6355, allocations: 1.565 MB / 0.6574 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.6366, allocations: 115.2 kB / 0.6575 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.396e-05/0.6367, allocations: 55.95 kB / 0.6575 GB, free: 13.98 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.0007332/0.6374, allocations: 365.2 kB / 0.6579 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.6376, allocations: 79.16 kB / 0.658 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004756/0.6424, allocations: 1.549 MB / 0.6595 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.6424, allocations: 8 kB / 0.6595 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6424, allocations: 4 kB / 0.6595 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.6424, allocations: 3.984 kB / 0.6595 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.6463, allocations: 2.342 MB / 0.6618 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.6463, allocations: 4 kB / 0.6618 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005943/0.6469, allocations: 131.8 kB / 0.6619 GB, free: 9.359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/0.6495, allocations: 0.584 MB / 0.6625 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.406e-05/0.6496, allocations: 39.86 kB / 0.6625 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.6506, allocations: 0.9254 MB / 0.6634 GB, free: 7.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6507, allocations: 4.031 kB / 0.6634 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002856/0.6535, allocations: 1.689 MB / 0.6651 GB, free: 6.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/0.654, allocations: 259.7 kB / 0.6653 GB, free: 5.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.6542, allocations: 20 kB / 0.6653 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/0.6548, allocations: 51.92 kB / 0.6654 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.655, allocations: 60.92 kB / 0.6654 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.692e-05/0.6551, allocations: 43.95 kB / 0.6655 GB, free: 5.574 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006087/0.6557, allocations: 414.8 kB / 0.6659 GB, free: 5.172 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6557, allocations: 0 / 0.6659 GB, free: 5.172 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001392/0.6571, allocations: 387 kB / 0.6663 GB, free: 4.793 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.004223/0.6613, allocations: 2.691 MB / 0.6689 GB, free: 2.117 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.6636, allocations: 1.169 MB / 0.67 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6637, allocations: 4.062 kB / 0.67 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.6647, allocations: 0.6677 MB / 0.6707 GB, free: 196 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008397/0.6656, allocations: 120.2 kB / 0.6708 GB, free: 76 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/0.673, allocations: 7.63 MB / 0.6782 GB, free: 8.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007643/0.6738, allocations: 1.038 MB / 0.6793 GB, free: 7.188 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006486/0.6744, allocations: 114.2 kB / 0.6794 GB, free: 7.074 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006083/0.6751, allocations: 403.2 kB / 0.6798 GB, free: 6.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6751, allocations: 4 kB / 0.6798 GB, free: 6.676 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04182/0.7169, allocations: 20.16 MB / 0.6994 GB, free: 2.766 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.7172, allocations: 253.6 kB / 0.6997 GB, free: 2.426 MB / 458.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 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:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629_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_20160629_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 warnings and 2 errors generated. make: *** [: PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629.o] Error 1