Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_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_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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.008566/0.008567, allocations: 170.6 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.418/1.418, allocations: 223.2 MB / 239 MB, free: 72 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.0008737/0.0008737, allocations: 97.02 kB / 290.2 MB, free: 4.598 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02451/0.02451, allocations: 5.387 MB / 346.7 MB, free: 7.676 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008568/0.008568, allocations: 2.307 MB / 401.3 MB, free: 1.047 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004322/0.0004323, allocations: 12 kB / 465.4 MB, free: 105.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 52.2 MB / 0.5055 GB, free: 53.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3385/0.4449, allocations: 96.37 MB / 0.5996 GB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.4452, allocations: 72.42 kB / 0.5996 GB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09234/0.5376, allocations: 35.89 MB / 0.6347 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5376, allocations: 4 kB / 0.6347 GB, free: 15.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.371e-05/0.5377, allocations: 20 kB / 0.6347 GB, free: 15.62 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.005155/0.5429, allocations: 1.439 MB / 0.6361 GB, free: 14.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.543, allocations: 8.031 kB / 0.6361 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004466/0.5434, allocations: 157.5 kB / 0.6363 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/0.5452, allocations: 305.4 kB / 0.6366 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.5464, allocations: 0.5865 MB / 0.6371 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.487e-05/0.5465, allocations: 79.38 kB / 0.6372 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.5467, allocations: 109.8 kB / 0.6373 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002605/0.5494, allocations: 1.199 MB / 0.6385 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.806e-05/0.5494, allocations: 3.906 kB / 0.6385 GB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.5495, allocations: 44.38 kB / 0.6385 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.5496, allocations: 28 kB / 0.6386 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.5522, allocations: 1.126 MB / 0.6397 GB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007531/0.5597, allocations: 4.541 MB / 0.6441 GB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.5625, allocations: 1.836 MB / 0.6459 GB, free: 5.309 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001983/0.5627, allocations: 174.8 kB / 0.6461 GB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.5637, allocations: 0.5636 MB / 0.6466 GB, free: 4.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 4.198e-06/0.5638, allocations: 0 / 0.6466 GB, free: 4.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=80): time 0.007696/0.5715, allocations: 2.057 MB / 0.6486 GB, free: 2.355 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001835/0.5717, allocations: 289.6 kB / 0.6489 GB, free: 2.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.5727, allocations: 0.5254 MB / 0.6494 GB, free: 1.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.913e-05/0.5728, allocations: 45.7 kB / 0.6495 GB, free: 1.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004841/0.5733, allocations: 486.9 kB / 0.6499 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.5736, allocations: 256.4 kB / 0.6502 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.5737, allocations: 24 kB / 0.6502 GB, free: 0.668 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.5739, allocations: 386.7 kB / 0.6506 GB, free: 288 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008077/0.5747, allocations: 338.5 kB / 0.6509 GB, free: 15.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009229/0.5756, allocations: 0.5755 MB / 0.6514 GB, free: 15.28 MB / 394.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01709/0.5928, allocations: 2.829 MB / 0.6542 GB, free: 12.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/0.5928, allocations: 4 kB / 0.6542 GB, free: 12.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003106/0.5959, allocations: 1.233 MB / 0.6554 GB, free: 11.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.548e-05/0.596, allocations: 90.66 kB / 0.6555 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.5961, allocations: 8 kB / 0.6555 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.5966, allocations: 97 kB / 0.6556 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.5978, allocations: 251.5 kB / 0.6558 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.5998, allocations: 1.569 MB / 0.6574 GB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.601, allocations: 119.1 kB / 0.6575 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.6012, allocations: 51.97 kB / 0.6575 GB, free: 8.816 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * 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.0009114/0.6021, allocations: 373.2 kB / 0.6579 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.6024, allocations: 75.16 kB / 0.658 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005096/0.6075, allocations: 1.545 MB / 0.6595 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.6075, allocations: 8 kB / 0.6595 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.6076, allocations: 3.984 kB / 0.6595 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.6076, allocations: 3.984 kB / 0.6595 GB, free: 6.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.6125, allocations: 2.342 MB / 0.6618 GB, free: 4.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.6126, allocations: 0 / 0.6618 GB, free: 4.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006649/0.6132, allocations: 143.7 kB / 0.6619 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002766/0.616, allocations: 0.584 MB / 0.6625 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.6161, allocations: 39.91 kB / 0.6625 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.6175, allocations: 0.921 MB / 0.6634 GB, free: 2.594 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.6175, allocations: 0 / 0.6634 GB, free: 2.594 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003237/0.6208, allocations: 1.685 MB / 0.6651 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000629/0.6214, allocations: 259.7 kB / 0.6653 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.6217, allocations: 31.92 kB / 0.6653 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00081/0.6225, allocations: 47.98 kB / 0.6654 GB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.6227, allocations: 60.86 kB / 0.6654 GB, free: 452 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.923e-05/0.6227, allocations: 39.97 kB / 0.6655 GB, free: 412 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007894/0.6235, allocations: 422.9 kB / 0.6659 GB, free: 15.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6236, allocations: 0 / 0.6659 GB, free: 15.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001616/0.6252, allocations: 390.9 kB / 0.6663 GB, free: 15.61 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: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.00442/0.6296, allocations: 2.68 MB / 0.6689 GB, free: 12.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.632, allocations: 1.175 MB / 0.67 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.632, allocations: 0 / 0.67 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.633, allocations: 0.6638 MB / 0.6707 GB, free: 11.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008304/0.6339, allocations: 124.7 kB / 0.6708 GB, free: 10.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.6413, allocations: 7.633 MB / 0.6782 GB, free: 3.074 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.6421, allocations: 1.042 MB / 0.6793 GB, free: 2.008 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006209/0.6427, allocations: 122.2 kB / 0.6794 GB, free: 1.887 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006151/0.6434, allocations: 395.3 kB / 0.6798 GB, free: 1.5 MB / 410.7 MB Notification: Performance of SimCode: time 4.128e-06/0.6434, allocations: 0 / 0.6798 GB, free: 1.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04333/0.6867, allocations: 20.16 MB / 0.6994 GB, free: 13.59 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003062/0.6871, allocations: 253.1 kB / 0.6997 GB, free: 13.25 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_Analytical_20160808.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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_Comax_Analytical_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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_Comax_Analytical_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_Comax_Analytical_20160808.o] Error 1