Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_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_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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.008016/0.008016, 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.444/1.444, 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.0009101/0.0009101, allocations: 97.33 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.02483/0.02483, allocations: 5.4 MB / 346.7 MB, free: 5.559 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.194/0.194, allocations: 2.296 MB / 401.3 MB, free: 91.75 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004307, allocations: 12 kB / 465.4 MB, free: 42.17 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1112, allocations: 52.18 MB / 0.5055 GB, free: 5.938 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4028/0.5141, allocations: 98.79 MB / 0.6019 GB, free: 3.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.5143, allocations: 74.72 kB / 0.602 GB, free: 3.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1025/0.6169, allocations: 36.74 MB / 0.6379 GB, free: 3.348 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.6169, allocations: 0 / 0.6379 GB, free: 3.348 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.315e-05/0.617, allocations: 20 kB / 0.6379 GB, free: 3.328 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.004635/0.6216, allocations: 1.482 MB / 0.6394 GB, free: 1.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.059e-05/0.6217, allocations: 8.031 kB / 0.6394 GB, free: 1.77 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003342/0.6221, allocations: 160.7 kB / 0.6395 GB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002138/0.6242, allocations: 310.2 kB / 0.6398 GB, free: 1.297 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.6257, allocations: 0.6602 MB / 0.6405 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.601e-05/0.6258, allocations: 78.08 kB / 0.6405 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.6261, allocations: 108 kB / 0.6406 GB, free: 420 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003073/0.6292, allocations: 1.204 MB / 0.6418 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.6292, allocations: 3.906 kB / 0.6418 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.6294, allocations: 44 kB / 0.6419 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.6294, allocations: 28 kB / 0.6419 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003363/0.6328, allocations: 1.198 MB / 0.6431 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.6432, allocations: 4.578 MB / 0.6475 GB, free: 9.094 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003715/0.6469, allocations: 1.84 MB / 0.6493 GB, free: 7.023 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.6471, allocations: 93.66 kB / 0.6494 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.6483, allocations: 485.7 kB / 0.6499 GB, free: 6.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 3.015e-06/0.6483, allocations: 0 / 0.6499 GB, free: 6.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.009348/0.6576, allocations: 1.914 MB / 0.6517 GB, free: 4.434 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.6578, allocations: 218.2 kB / 0.652 GB, free: 4.172 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.6592, allocations: 0.6478 MB / 0.6526 GB, free: 3.523 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.6593, allocations: 37.7 kB / 0.6526 GB, free: 3.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006431/0.66, allocations: 0.5219 MB / 0.6531 GB, free: 2.949 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.6603, allocations: 228.8 kB / 0.6534 GB, free: 2.723 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.438e-05/0.6604, allocations: 24.03 kB / 0.6534 GB, free: 2.699 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003713/0.6608, allocations: 390.7 kB / 0.6537 GB, free: 2.309 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007291/0.6615, allocations: 317.8 kB / 0.6541 GB, free: 2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008441/0.6624, allocations: 0.5507 MB / 0.6546 GB, free: 1.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/0.6632, allocations: 454.2 kB / 0.655 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.6633, allocations: 4 kB / 0.655 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00261/0.6659, allocations: 1.172 MB / 0.6562 GB, free: 15.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.557e-05/0.666, allocations: 63.39 kB / 0.6562 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-05/0.666, allocations: 8 kB / 0.6562 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005996/0.6666, allocations: 104.9 kB / 0.6563 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008911/0.6675, allocations: 215.7 kB / 0.6565 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.6694, allocations: 1.565 MB / 0.6581 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009699/0.6704, allocations: 107.3 kB / 0.6582 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.6705, allocations: 47.97 kB / 0.6582 GB, free: 13.44 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.0007155/0.6712, allocations: 340.5 kB / 0.6585 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.6715, allocations: 86.92 kB / 0.6586 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004516/0.676, allocations: 1.376 MB / 0.66 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-06/0.676, allocations: 8 kB / 0.66 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.6761, allocations: 4 kB / 0.66 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.6761, allocations: 11.94 kB / 0.66 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004083/0.6802, allocations: 2.226 MB / 0.6622 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.6802, allocations: 4 kB / 0.6622 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.6808, allocations: 111.9 kB / 0.6623 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002744/0.6835, allocations: 0.5879 MB / 0.6629 GB, free: 8.555 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.6837, allocations: 27.97 kB / 0.6629 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.6848, allocations: 0.9208 MB / 0.6638 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.6848, allocations: 7.891 kB / 0.6638 GB, free: 7.566 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002714/0.6875, allocations: 1.551 MB / 0.6653 GB, free: 5.969 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005728/0.6881, allocations: 263.7 kB / 0.6656 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.6884, allocations: 24 kB / 0.6656 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006359/0.689, allocations: 39.98 kB / 0.6656 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.6891, allocations: 52.58 kB / 0.6657 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.651e-05/0.6892, allocations: 31.97 kB / 0.6657 GB, free: 5.547 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008261/0.6901, allocations: 0.4951 MB / 0.6662 GB, free: 5.055 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6901, allocations: 0 / 0.6662 GB, free: 5.055 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001389/0.6915, allocations: 375 kB / 0.6665 GB, free: 4.688 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.004785/0.6963, allocations: 2.857 MB / 0.6693 GB, free: 2.023 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.6984, allocations: 1.046 MB / 0.6703 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.6984, allocations: 4 kB / 0.6704 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008348/0.6993, allocations: 0.5234 MB / 0.6709 GB, free: 396 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008789/0.7001, allocations: 143.1 kB / 0.671 GB, free: 260 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006516/0.7067, allocations: 7.702 MB / 0.6785 GB, free: 8.355 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.7073, allocations: 1.049 MB / 0.6795 GB, free: 7.281 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000564/0.7079, allocations: 130.1 kB / 0.6797 GB, free: 7.152 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005628/0.7085, allocations: 411.3 kB / 0.6801 GB, free: 6.75 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/0.7085, allocations: 0 / 0.6801 GB, free: 6.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04485/0.7533, allocations: 20.39 MB / 0.7 GB, free: 2.578 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.7536, allocations: 248.5 kB / 0.7002 GB, free: 2.246 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_20160629.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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_Measurement_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_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_Measurement_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_Measurement_20160629.o] Error 1