Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_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_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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.005255/0.005255, allocations: 169.5 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.384/1.384, allocations: 223.2 MB / 239 MB, free: 1.789 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.0009961/0.0009959, allocations: 98.75 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.02705/0.02705, allocations: 5.4 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.1665/0.1665, allocations: 2.29 MB / 401.3 MB, free: 91.71 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0006291/0.0006292, allocations: 20 kB / 465.4 MB, free: 42.17 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.126, allocations: 52.19 MB / 0.5055 GB, free: 5.926 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.5209, allocations: 98.79 MB / 0.6019 GB, free: 3.227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.5211, allocations: 70.72 kB / 0.602 GB, free: 3.195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09774/0.6189, allocations: 36.73 MB / 0.6379 GB, free: 3.324 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.619, allocations: 0 / 0.6379 GB, free: 3.324 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.364e-05/0.6191, allocations: 24 kB / 0.6379 GB, free: 3.301 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.004773/0.6238, allocations: 1.475 MB / 0.6393 GB, free: 1.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.433e-05/0.6239, allocations: 20.02 kB / 0.6394 GB, free: 1.738 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006222/0.6246, allocations: 156.7 kB / 0.6395 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002066/0.6266, allocations: 306.2 kB / 0.6398 GB, free: 1.273 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.6288, allocations: 0.6641 MB / 0.6405 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.6289, allocations: 86.02 kB / 0.6405 GB, free: 492 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003789/0.6293, allocations: 108 kB / 0.6406 GB, free: 384 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003141/0.6325, allocations: 1.2 MB / 0.6418 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/0.6325, allocations: 7.906 kB / 0.6418 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.6327, allocations: 40 kB / 0.6419 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.743e-05/0.6327, allocations: 31.98 kB / 0.6419 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/0.6355, allocations: 1.198 MB / 0.6431 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008503/0.644, allocations: 4.574 MB / 0.6475 GB, free: 9.062 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002622/0.6467, allocations: 1.836 MB / 0.6493 GB, free: 7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.6468, allocations: 93.66 kB / 0.6494 GB, free: 6.891 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008097/0.6476, allocations: 489.7 kB / 0.6499 GB, free: 6.387 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 4.037e-06/0.6476, allocations: 0 / 0.6499 GB, free: 6.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.007437/0.6551, allocations: 1.907 MB / 0.6517 GB, free: 4.414 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.6552, allocations: 226.2 kB / 0.652 GB, free: 4.145 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.6566, allocations: 0.6478 MB / 0.6526 GB, free: 3.496 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.282e-05/0.6567, allocations: 41.7 kB / 0.6526 GB, free: 3.449 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005892/0.6573, allocations: 0.518 MB / 0.6531 GB, free: 2.922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.6576, allocations: 236.7 kB / 0.6534 GB, free: 2.688 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/0.6576, allocations: 20 kB / 0.6534 GB, free: 2.668 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.6579, allocations: 386.8 kB / 0.6537 GB, free: 2.281 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000665/0.6585, allocations: 321.8 kB / 0.6541 GB, free: 1.969 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008342/0.6594, allocations: 0.5507 MB / 0.6546 GB, free: 1.309 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008403/0.6602, allocations: 454.2 kB / 0.655 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.6603, allocations: 0 / 0.655 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002389/0.6627, allocations: 1.176 MB / 0.6562 GB, free: 15.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-05/0.6627, allocations: 63.41 kB / 0.6562 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.6628, allocations: 12.33 kB / 0.6562 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005555/0.6633, allocations: 92.78 kB / 0.6563 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008841/0.6642, allocations: 215.7 kB / 0.6565 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.6659, allocations: 1.577 MB / 0.6581 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008419/0.6668, allocations: 99.11 kB / 0.6582 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.225e-05/0.6669, allocations: 43.98 kB / 0.6582 GB, free: 13.41 MB / 426.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.0006342/0.6675, allocations: 348.4 kB / 0.6585 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.6678, allocations: 90.86 kB / 0.6586 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/0.6722, allocations: 1.379 MB / 0.66 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.6722, allocations: 4 kB / 0.66 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.6722, allocations: 4 kB / 0.66 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.6722, allocations: 7.938 kB / 0.66 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/0.6762, allocations: 2.226 MB / 0.6622 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.6763, allocations: 3.938 kB / 0.6622 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.6767, allocations: 107.9 kB / 0.6623 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002643/0.6793, allocations: 0.5879 MB / 0.6629 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.869e-05/0.6794, allocations: 23.97 kB / 0.6629 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001158/0.6806, allocations: 0.9286 MB / 0.6638 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6806, allocations: 11.95 kB / 0.6638 GB, free: 7.531 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.6833, allocations: 1.551 MB / 0.6653 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005253/0.6839, allocations: 259.8 kB / 0.6656 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001931/0.6841, allocations: 23.98 kB / 0.6656 GB, free: 5.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006102/0.6847, allocations: 39.98 kB / 0.6656 GB, free: 5.598 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6848, allocations: 48.67 kB / 0.6657 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.6849, allocations: 31.97 kB / 0.6657 GB, free: 5.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008019/0.6857, allocations: 0.5029 MB / 0.6662 GB, free: 5.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6857, allocations: 0 / 0.6662 GB, free: 5.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0013/0.687, allocations: 375 kB / 0.6665 GB, free: 4.652 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: 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.004626/0.6916, allocations: 2.857 MB / 0.6693 GB, free: 1.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002192/0.6939, allocations: 1.047 MB / 0.6704 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.6939, allocations: 0.5 kB / 0.6704 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009128/0.6948, allocations: 0.5296 MB / 0.6709 GB, free: 348 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008596/0.6957, allocations: 135.2 kB / 0.671 GB, free: 220 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007448/0.7031, allocations: 7.706 MB / 0.6785 GB, free: 8.312 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008245/0.704, allocations: 1.049 MB / 0.6795 GB, free: 7.238 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006054/0.7046, allocations: 126.1 kB / 0.6797 GB, free: 7.113 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006832/0.7053, allocations: 411.3 kB / 0.6801 GB, free: 6.711 MB / 442.7 MB Notification: Performance of SimCode: time 1.493e-06/0.7053, allocations: 0 / 0.6801 GB, free: 6.711 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05045/0.7558, allocations: 20.39 MB / 0.7 GB, free: 2.539 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/0.7561, allocations: 248.5 kB / 0.7002 GB, free: 2.207 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_Measurement_20160808.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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_Measurement_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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_Measurement_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_Measurement_20160808.o] Error 1