Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808",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.005864/0.005864, allocations: 172 kB / 15.11 MB, free: 5.98 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.394/1.394, allocations: 223.2 MB / 239 MB, free: 1.809 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.0009607/0.0009604, allocations: 91.34 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02567/0.02567, allocations: 5.403 MB / 346.7 MB, free: 5.566 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1898/0.1898, allocations: 2.299 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.0004504/0.0004504, allocations: 23.98 kB / 465.4 MB, free: 42.17 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.115, allocations: 52.19 MB / 0.5055 GB, free: 5.926 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.5153, allocations: 96.37 MB / 0.5996 GB, free: 5.543 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.5156, allocations: 70.22 kB / 0.5997 GB, free: 5.512 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0925/0.6081, allocations: 35.89 MB / 0.6347 GB, free: 6.613 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.6081, allocations: 0 / 0.6347 GB, free: 6.613 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.442e-05/0.6082, allocations: 24 kB / 0.6347 GB, free: 6.59 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.003556/0.6118, allocations: 1.442 MB / 0.6361 GB, free: 5.078 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.6118, allocations: 12.03 kB / 0.6361 GB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002557/0.6121, allocations: 160.7 kB / 0.6363 GB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/0.6136, allocations: 294.4 kB / 0.6366 GB, free: 4.609 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.6146, allocations: 0.5899 MB / 0.6372 GB, free: 3.977 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.259e-05/0.6147, allocations: 89.95 kB / 0.6372 GB, free: 3.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.6149, allocations: 104 kB / 0.6373 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.6171, allocations: 1.187 MB / 0.6385 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/0.6172, allocations: 7.906 kB / 0.6385 GB, free: 2.535 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.6173, allocations: 44 kB / 0.6385 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.118e-05/0.6174, allocations: 28 kB / 0.6386 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.6197, allocations: 1.116 MB / 0.6397 GB, free: 1.344 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007393/0.6271, allocations: 4.539 MB / 0.6441 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00275/0.6298, allocations: 1.837 MB / 0.6459 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.6301, allocations: 178.8 kB / 0.6461 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009986/0.6311, allocations: 0.5596 MB / 0.6466 GB, free: 9.723 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.825e-06/0.6311, allocations: 0 / 0.6466 GB, free: 9.723 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.007968/0.6391, allocations: 2.061 MB / 0.6486 GB, free: 7.578 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/0.6393, allocations: 285.7 kB / 0.6489 GB, free: 7.238 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009206/0.6402, allocations: 0.5293 MB / 0.6494 GB, free: 6.703 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.601e-05/0.6403, allocations: 41.7 kB / 0.6495 GB, free: 6.656 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004523/0.6407, allocations: 490.9 kB / 0.6499 GB, free: 6.168 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.641, allocations: 260.3 kB / 0.6502 GB, free: 5.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.6411, allocations: 20 kB / 0.6502 GB, free: 5.891 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.6413, allocations: 386.7 kB / 0.6506 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006955/0.642, allocations: 338.5 kB / 0.6509 GB, free: 5.176 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008708/0.6428, allocations: 0.5755 MB / 0.6514 GB, free: 4.504 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.01752/0.6604, allocations: 2.837 MB / 0.6542 GB, free: 1.617 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/0.6604, allocations: 0 / 0.6542 GB, free: 1.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002762/0.6632, allocations: 1.237 MB / 0.6554 GB, free: 368 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.405e-05/0.6633, allocations: 93.09 kB / 0.6555 GB, free: 256 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.6633, allocations: 8 kB / 0.6555 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005255/0.6638, allocations: 97 kB / 0.6556 GB, free: 148 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.665, allocations: 251.6 kB / 0.6558 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.6668, allocations: 1.569 MB / 0.6574 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009618/0.6678, allocations: 115.2 kB / 0.6575 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.01e-05/0.6679, allocations: 55.95 kB / 0.6575 GB, free: 14.03 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.000732/0.6686, allocations: 369.2 kB / 0.6579 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.6688, allocations: 79.14 kB / 0.658 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004747/0.6735, allocations: 1.545 MB / 0.6595 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.6736, allocations: 12 kB / 0.6595 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.6736, allocations: 0 / 0.6595 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6736, allocations: 3.984 kB / 0.6595 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/0.6774, allocations: 2.342 MB / 0.6618 GB, free: 9.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.6774, allocations: 0 / 0.6618 GB, free: 9.531 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006031/0.678, allocations: 135.7 kB / 0.6619 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002715/0.6807, allocations: 0.5879 MB / 0.6625 GB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.618e-05/0.6808, allocations: 35.92 kB / 0.6625 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.682, allocations: 0.9181 MB / 0.6634 GB, free: 7.816 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.682, allocations: 8.016 kB / 0.6634 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.6851, allocations: 1.692 MB / 0.6651 GB, free: 6.059 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004999/0.6856, allocations: 255.7 kB / 0.6653 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.6857, allocations: 24 kB / 0.6653 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006329/0.6864, allocations: 51.92 kB / 0.6654 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.6865, allocations: 60.91 kB / 0.6654 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.927e-05/0.6866, allocations: 39.97 kB / 0.6655 GB, free: 5.617 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006356/0.6872, allocations: 414.8 kB / 0.6659 GB, free: 5.215 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6873, allocations: 0 / 0.6659 GB, free: 5.215 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001421/0.6887, allocations: 387 kB / 0.6663 GB, free: 4.836 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.004324/0.693, allocations: 2.695 MB / 0.6689 GB, free: 2.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.6953, allocations: 1.169 MB / 0.67 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6954, allocations: 8.062 kB / 0.67 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.6964, allocations: 0.6677 MB / 0.6707 GB, free: 236 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007823/0.6972, allocations: 110.4 kB / 0.6708 GB, free: 124 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006795/0.704, allocations: 7.632 MB / 0.6782 GB, free: 8.297 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000744/0.7048, allocations: 1.042 MB / 0.6793 GB, free: 7.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005958/0.7054, allocations: 110.2 kB / 0.6794 GB, free: 7.121 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006111/0.706, allocations: 407.2 kB / 0.6798 GB, free: 6.723 MB / 442.7 MB Notification: Performance of SimCode: time 1.283e-06/0.706, allocations: 0 / 0.6798 GB, free: 6.723 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04515/0.7512, allocations: 20.16 MB / 0.6994 GB, free: 2.809 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.7515, allocations: 255.5 kB / 0.6997 GB, free: 2.473 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_20160808.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808_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_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160808_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_20160808_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_20160808.o] Error 1