Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.006082/0.006081, 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.367/1.367, allocations: 223.2 MB / 239 MB, free: 80 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.001107/0.001107, allocations: 93.7 kB / 290.2 MB, free: 4.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02484/0.02484, allocations: 5.389 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.008853/0.008853, allocations: 2.306 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.0004245/0.0004246, allocations: 16 kB / 465.4 MB, free: 105.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 52.2 MB / 0.5055 GB, free: 53.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.4476, allocations: 98.6 MB / 0.6018 GB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.4478, allocations: 64.73 kB / 0.6018 GB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09389/0.5417, allocations: 37.3 MB / 0.6383 GB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5418, allocations: 0 / 0.6383 GB, free: 12.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.436e-05/0.5419, allocations: 24 kB / 0.6383 GB, free: 12.44 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.004192/0.5461, allocations: 1.484 MB / 0.6397 GB, free: 10.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.5461, allocations: 12.03 kB / 0.6397 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003699/0.5465, allocations: 157.2 kB / 0.6399 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.5482, allocations: 301.4 kB / 0.6402 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.5496, allocations: 0.6525 MB / 0.6408 GB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.087e-05/0.5497, allocations: 84.2 kB / 0.6409 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/0.55, allocations: 115.1 kB / 0.641 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.5523, allocations: 1.147 MB / 0.6421 GB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.5524, allocations: 0 / 0.6421 GB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.5525, allocations: 44.62 kB / 0.6422 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.5525, allocations: 27.94 kB / 0.6422 GB, free: 9.051 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.5547, allocations: 1.03 MB / 0.6432 GB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006571/0.5612, allocations: 4.495 MB / 0.6476 GB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002145/0.5634, allocations: 1.737 MB / 0.6493 GB, free: 1.805 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-05/0.5635, allocations: 93.5 kB / 0.6494 GB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007852/0.5643, allocations: 470.5 kB / 0.6498 GB, free: 1.203 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 3.196e-06/0.5643, allocations: 0 / 0.6498 GB, free: 1.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.006946/0.5713, allocations: 1.839 MB / 0.6516 GB, free: 15.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.5715, allocations: 273.6 kB / 0.6519 GB, free: 14.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.5726, allocations: 0.64 MB / 0.6525 GB, free: 14.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.797e-05/0.5727, allocations: 41.64 kB / 0.6525 GB, free: 14.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004713/0.5732, allocations: 0.5101 MB / 0.653 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.5734, allocations: 225 kB / 0.6533 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.5735, allocations: 16 kB / 0.6533 GB, free: 13.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.5737, allocations: 398.7 kB / 0.6536 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000567/0.5742, allocations: 293.9 kB / 0.6539 GB, free: 12.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007404/0.575, allocations: 0.5443 MB / 0.6545 GB, free: 12.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007143/0.5757, allocations: 431 kB / 0.6549 GB, free: 11.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.5757, allocations: 4 kB / 0.6549 GB, free: 11.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002157/0.5779, allocations: 1.102 MB / 0.656 GB, free: 10.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.032e-05/0.578, allocations: 67.39 kB / 0.656 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.578, allocations: 8 kB / 0.656 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005455/0.5785, allocations: 93 kB / 0.6561 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008393/0.5794, allocations: 215.7 kB / 0.6563 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.5812, allocations: 1.577 MB / 0.6579 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008186/0.582, allocations: 103.4 kB / 0.658 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.379e-05/0.5821, allocations: 47.97 kB / 0.658 GB, free: 8.375 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.0006055/0.5827, allocations: 336.2 kB / 0.6583 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.5829, allocations: 79.11 kB / 0.6584 GB, free: 7.949 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00411/0.587, allocations: 1.275 MB / 0.6596 GB, free: 6.645 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.587, allocations: 8 kB / 0.6597 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.587, allocations: 4 kB / 0.6597 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.5871, allocations: 3.984 kB / 0.6597 GB, free: 6.629 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.5904, allocations: 2.031 MB / 0.6616 GB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5904, allocations: 12.02 kB / 0.6617 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003782/0.5908, allocations: 83.91 kB / 0.6617 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002598/0.5934, allocations: 0.598 MB / 0.6623 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.1e-05/0.5935, allocations: 27.97 kB / 0.6623 GB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.5947, allocations: 0.917 MB / 0.6632 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.5947, allocations: 4.031 kB / 0.6632 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.5974, allocations: 1.434 MB / 0.6646 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004839/0.5979, allocations: 259.8 kB / 0.6649 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.598, allocations: 16 kB / 0.6649 GB, free: 1.047 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005523/0.5986, allocations: 43.97 kB / 0.6649 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.5987, allocations: 44.5 kB / 0.665 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-05/0.5988, allocations: 31.97 kB / 0.665 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007067/0.5995, allocations: 0.4912 MB / 0.6655 GB, free: 452 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5995, allocations: 0 / 0.6655 GB, free: 452 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001208/0.6007, allocations: 359 kB / 0.6658 GB, free: 92 kB / 394.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.004184/0.6049, allocations: 2.811 MB / 0.6686 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.6069, allocations: 0.9918 MB / 0.6696 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6069, allocations: 0 / 0.6696 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008128/0.6077, allocations: 498.4 kB / 0.67 GB, free: 11.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009382/0.6087, allocations: 152.1 kB / 0.6702 GB, free: 11.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007321/0.616, allocations: 7.918 MB / 0.6779 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.6167, allocations: 1.033 MB / 0.6789 GB, free: 2.586 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005815/0.6173, allocations: 110.2 kB / 0.679 GB, free: 2.477 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/0.6179, allocations: 391.3 kB / 0.6794 GB, free: 2.094 MB / 410.7 MB Notification: Performance of SimCode: time 3.697e-06/0.6179, allocations: 4 kB / 0.6794 GB, free: 2.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04454/0.6625, allocations: 20.04 MB / 0.699 GB, free: 14.27 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002639/0.6628, allocations: 259.2 kB / 0.6992 GB, free: 13.93 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_20160704.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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_Comax_Measurement_20160704.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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_Comax_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_Comax_Measurement_20160704.o] Error 1