Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.00713/0.00713, allocations: 173.6 kB / 15.12 MB, free: 5.984 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.323/1.323, allocations: 223.2 MB / 239 MB, free: 64 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.0008534/0.0008533, allocations: 99.75 kB / 290.2 MB, free: 4.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02425/0.02425, allocations: 5.395 MB / 346.7 MB, free: 7.645 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008915/0.008915, allocations: 2.314 MB / 401.3 MB, free: 1.008 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004421, allocations: 19.44 kB / 465.4 MB, free: 105.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09305, allocations: 52.2 MB / 0.5055 GB, free: 53.09 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3209/0.414, allocations: 98.6 MB / 0.6018 GB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.4143, allocations: 77.06 kB / 0.6018 GB, free: 10.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09181/0.5062, allocations: 37.29 MB / 0.6383 GB, free: 12.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5062, allocations: 0 / 0.6383 GB, free: 12.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.054e-05/0.5063, allocations: 24 kB / 0.6383 GB, free: 12.07 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003199/0.5095, allocations: 1.493 MB / 0.6397 GB, free: 10.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.5096, allocations: 12.03 kB / 0.6397 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001943/0.5098, allocations: 151.2 kB / 0.6399 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/0.5113, allocations: 296.6 kB / 0.6402 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.5125, allocations: 0.6577 MB / 0.6408 GB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.428e-05/0.5126, allocations: 80.95 kB / 0.6409 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.5127, allocations: 106 kB / 0.641 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/0.5148, allocations: 1.156 MB / 0.6421 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.5148, allocations: 0 / 0.6421 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.5149, allocations: 46.44 kB / 0.6422 GB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.5149, allocations: 24 kB / 0.6422 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.5169, allocations: 1.035 MB / 0.6432 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007108/0.524, allocations: 4.486 MB / 0.6476 GB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002461/0.5265, allocations: 1.74 MB / 0.6493 GB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.5267, allocations: 93.5 kB / 0.6494 GB, free: 1.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008144/0.5275, allocations: 470.5 kB / 0.6498 GB, free: 1.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 3.236e-06/0.5275, allocations: 0 / 0.6498 GB, free: 1.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.007271/0.5348, allocations: 1.839 MB / 0.6516 GB, free: 15.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001756/0.535, allocations: 277.6 kB / 0.6519 GB, free: 14.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.5361, allocations: 0.64 MB / 0.6525 GB, free: 14.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.124e-05/0.5361, allocations: 41.64 kB / 0.6525 GB, free: 14.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000495/0.5366, allocations: 0.51 MB / 0.653 GB, free: 13.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.5369, allocations: 225 kB / 0.6533 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.5369, allocations: 20.03 kB / 0.6533 GB, free: 13.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.5371, allocations: 394.7 kB / 0.6537 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005856/0.5377, allocations: 297.8 kB / 0.6539 GB, free: 12.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007724/0.5385, allocations: 0.5404 MB / 0.6545 GB, free: 12.06 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/0.5392, allocations: 430.7 kB / 0.6549 GB, free: 11.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.5393, allocations: 4 kB / 0.6549 GB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002164/0.5414, allocations: 1.102 MB / 0.656 GB, free: 10.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.401e-05/0.5415, allocations: 67.39 kB / 0.656 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.5415, allocations: 8.312 kB / 0.656 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005294/0.5421, allocations: 96.78 kB / 0.6561 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000828/0.5429, allocations: 215.6 kB / 0.6563 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.5446, allocations: 1.577 MB / 0.6579 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.5454, allocations: 103.1 kB / 0.658 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.447e-05/0.5455, allocations: 43.98 kB / 0.658 GB, free: 8.246 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,$PRE.irradianceTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,$PRE.powerTable.nextTimeEvent,powerTable.nextTimeEvent,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEventScaled,$PRE.mpTracker.vRef,mpTracker.vRef,irradianceTable.nextTimeEvent,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.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 (118): * Single equations (assignments): 115 * 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.0005576/0.546, allocations: 335.6 kB / 0.6583 GB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.5462, allocations: 79.06 kB / 0.6584 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004133/0.5503, allocations: 1.276 MB / 0.6596 GB, free: 6.516 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.5503, allocations: 7.984 kB / 0.6597 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5503, allocations: 4 kB / 0.6597 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.5504, allocations: 0 / 0.6597 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003488/0.5539, allocations: 2.039 MB / 0.6617 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5539, allocations: 0 / 0.6617 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003619/0.5542, allocations: 95.95 kB / 0.6617 GB, free: 4.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002585/0.5568, allocations: 0.5917 MB / 0.6623 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.549e-05/0.5569, allocations: 27.97 kB / 0.6623 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.558, allocations: 0.9093 MB / 0.6632 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.558, allocations: 8.016 kB / 0.6632 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.5603, allocations: 1.438 MB / 0.6646 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/0.5608, allocations: 259.7 kB / 0.6649 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.5609, allocations: 20 kB / 0.6649 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.5614, allocations: 39.97 kB / 0.665 GB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5616, allocations: 48.45 kB / 0.665 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.5616, allocations: 35.95 kB / 0.665 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006685/0.5623, allocations: 499 kB / 0.6655 GB, free: 316 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5623, allocations: 0 / 0.6655 GB, free: 316 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001155/0.5635, allocations: 359.2 kB / 0.6659 GB, free: 15.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.003925/0.5674, allocations: 2.803 MB / 0.6686 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.5692, allocations: 0.9951 MB / 0.6696 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.5692, allocations: 0 / 0.6696 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007474/0.5699, allocations: 0.4912 MB / 0.67 GB, free: 11.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.5707, allocations: 152.4 kB / 0.6702 GB, free: 11.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006095/0.5768, allocations: 7.912 MB / 0.6779 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/0.5775, allocations: 1.037 MB / 0.6789 GB, free: 2.453 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004682/0.578, allocations: 106.2 kB / 0.679 GB, free: 2.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/0.5785, allocations: 391.3 kB / 0.6794 GB, free: 1.965 MB / 410.7 MB Notification: Performance of SimCode: time 4.028e-06/0.5785, allocations: 0 / 0.6794 GB, free: 1.965 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.6241, allocations: 20.05 MB / 0.699 GB, free: 14.14 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003359/0.6245, allocations: 260.5 kB / 0.6992 GB, free: 13.8 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_Comax_Measurement_20160629.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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_Comax_Measurement_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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_Comax_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_Comax_Measurement_20160629.o] Error 1