Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_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: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",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.007238/0.007238, allocations: 170.3 kB / 15.11 MB, free: 6.039 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.377/1.377, allocations: 223.2 MB / 239 MB, free: 104 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.001034/0.001034, allocations: 99.27 kB / 290.2 MB, free: 4.574 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02508/0.02508, allocations: 5.395 MB / 346.7 MB, free: 7.68 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008855/0.008855, allocations: 2.304 MB / 401.3 MB, free: 1.055 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004368/0.0004369, allocations: 12.72 kB / 465.4 MB, free: 105.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1084, allocations: 52.2 MB / 0.5055 GB, free: 53.14 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4024/0.5109, allocations: 98.8 MB / 0.6019 GB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.5112, allocations: 71.52 kB / 0.602 GB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08922/0.6004, allocations: 36.74 MB / 0.6379 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6004, allocations: 0 / 0.6379 GB, free: 12.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.509e-05/0.6005, allocations: 20 kB / 0.6379 GB, free: 12.71 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003473/0.604, allocations: 1.48 MB / 0.6394 GB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.604, allocations: 12.03 kB / 0.6394 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002638/0.6043, allocations: 162.7 kB / 0.6395 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.6059, allocations: 305.6 kB / 0.6398 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.6072, allocations: 0.6557 MB / 0.6405 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.943e-05/0.6073, allocations: 81.66 kB / 0.6405 GB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.6075, allocations: 110.9 kB / 0.6406 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.6098, allocations: 1.202 MB / 0.6418 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.6099, allocations: 7.906 kB / 0.6418 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.61, allocations: 45.94 kB / 0.6419 GB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.738e-05/0.61, allocations: 28 kB / 0.6419 GB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.6123, allocations: 1.195 MB / 0.6431 GB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007004/0.6193, allocations: 4.561 MB / 0.6475 GB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.6217, allocations: 1.851 MB / 0.6493 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.282e-05/0.6218, allocations: 93.66 kB / 0.6494 GB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007652/0.6226, allocations: 481.7 kB / 0.6499 GB, free: 1.219 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 3.196e-06/0.6226, allocations: 0 / 0.6499 GB, free: 1.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.007388/0.63, allocations: 1.914 MB / 0.6517 GB, free: 15.24 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.6302, allocations: 234.1 kB / 0.652 GB, free: 14.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.6313, allocations: 0.6438 MB / 0.6526 GB, free: 14.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.6314, allocations: 41.69 kB / 0.6526 GB, free: 14.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/0.632, allocations: 0.5141 MB / 0.6531 GB, free: 13.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.6322, allocations: 240.7 kB / 0.6534 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.6323, allocations: 24 kB / 0.6534 GB, free: 13.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.6325, allocations: 382.8 kB / 0.6538 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.6331, allocations: 325.8 kB / 0.6541 GB, free: 12.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/0.6339, allocations: 0.5507 MB / 0.6546 GB, free: 12.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007287/0.6346, allocations: 450.2 kB / 0.655 GB, free: 11.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.6346, allocations: 0 / 0.655 GB, free: 11.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002236/0.6369, allocations: 1.18 MB / 0.6562 GB, free: 10.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/0.637, allocations: 67.36 kB / 0.6563 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.637, allocations: 8 kB / 0.6563 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005793/0.6376, allocations: 92.77 kB / 0.6563 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008659/0.6384, allocations: 219.8 kB / 0.6566 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.6402, allocations: 1.565 MB / 0.6581 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008716/0.6411, allocations: 99.11 kB / 0.6582 GB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.854e-05/0.6412, allocations: 47.97 kB / 0.6582 GB, free: 8.234 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition3,$PRE.combiTimeTable.nextTimeEvent,$whenCondition2,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,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 (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 2 * 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.0006846/0.6419, allocations: 348.8 kB / 0.6586 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.642, allocations: 94.84 kB / 0.6587 GB, free: 7.781 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004328/0.6464, allocations: 1.372 MB / 0.66 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.6464, allocations: 8 kB / 0.66 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6464, allocations: 0 / 0.66 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.6464, allocations: 3.984 kB / 0.66 GB, free: 6.371 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.65, allocations: 2.23 MB / 0.6622 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.6501, allocations: 0 / 0.6622 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004318/0.6505, allocations: 111.8 kB / 0.6623 GB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002734/0.6532, allocations: 0.5879 MB / 0.6629 GB, free: 3.352 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.381e-05/0.6533, allocations: 23.97 kB / 0.6629 GB, free: 3.328 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.6545, allocations: 0.9325 MB / 0.6638 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6545, allocations: 0 / 0.6638 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.6572, allocations: 1.563 MB / 0.6653 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000558/0.6578, allocations: 259.8 kB / 0.6656 GB, free: 492 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.6579, allocations: 20 kB / 0.6656 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.6584, allocations: 43.97 kB / 0.6656 GB, free: 428 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.6585, allocations: 48.59 kB / 0.6657 GB, free: 380 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/0.6586, allocations: 31.97 kB / 0.6657 GB, free: 348 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007434/0.6594, allocations: 0.499 MB / 0.6662 GB, free: 15.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6594, allocations: 0 / 0.6662 GB, free: 15.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001263/0.6606, allocations: 371 kB / 0.6665 GB, free: 15.48 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: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.004221/0.6649, allocations: 2.858 MB / 0.6693 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.6668, allocations: 1.054 MB / 0.6704 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6668, allocations: 0 / 0.6704 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.6676, allocations: 0.5257 MB / 0.6709 GB, free: 11.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.6684, allocations: 135.5 kB / 0.671 GB, free: 11.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006277/0.6747, allocations: 7.709 MB / 0.6785 GB, free: 3.133 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/0.6753, allocations: 1.049 MB / 0.6796 GB, free: 2.059 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005818/0.6759, allocations: 122.2 kB / 0.6797 GB, free: 1.938 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005579/0.6765, allocations: 415.2 kB / 0.6801 GB, free: 1.531 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6765, allocations: 0 / 0.6801 GB, free: 1.531 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04371/0.7202, allocations: 20.37 MB / 0.7 GB, free: 13.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002546/0.7206, allocations: 247.6 kB / 0.7002 GB, free: 13.04 MB / 442.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_Measurement_20160704.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_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_Measurement_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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_Trina_Measurement_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 warnings and 2 errors generated. make: *** [: PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.o] Error 1