Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_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_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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.006237/0.006237, allocations: 169.5 kB / 15.11 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.349/1.349, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008786/0.0008786, allocations: 108.5 kB / 290.2 MB, free: 13.91 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.386 MB / 346.7 MB, free: 5.543 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1765/0.1765, allocations: 2.29 MB / 401.3 MB, free: 91.66 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003973, allocations: 16 kB / 465.4 MB, free: 42.11 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08676, allocations: 52.19 MB / 0.5055 GB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3163/0.4031, allocations: 96.36 MB / 0.5996 GB, free: 5.559 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.4034, allocations: 73.84 kB / 0.5996 GB, free: 5.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09215/0.4955, allocations: 35.89 MB / 0.6347 GB, free: 6.562 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4956, allocations: 0 / 0.6347 GB, free: 6.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.499e-05/0.4957, allocations: 27.94 kB / 0.6347 GB, free: 6.535 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.004329/0.5, allocations: 1.438 MB / 0.6361 GB, free: 5.027 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.5001, allocations: 8.031 kB / 0.6361 GB, free: 5.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004672/0.5005, allocations: 164.7 kB / 0.6363 GB, free: 4.848 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.5024, allocations: 290.4 kB / 0.6366 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.5037, allocations: 0.5977 MB / 0.6371 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.83e-05/0.5038, allocations: 86.02 kB / 0.6372 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002689/0.5041, allocations: 104 kB / 0.6373 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002601/0.5067, allocations: 1.187 MB / 0.6385 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.5068, allocations: 7.906 kB / 0.6385 GB, free: 2.484 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.5069, allocations: 44 kB / 0.6385 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.5069, allocations: 24 kB / 0.6386 GB, free: 2.418 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.5093, allocations: 1.124 MB / 0.6397 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007461/0.5168, allocations: 4.547 MB / 0.6441 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/0.5194, allocations: 1.833 MB / 0.6459 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001778/0.5196, allocations: 174.8 kB / 0.6461 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009545/0.5206, allocations: 0.5596 MB / 0.6466 GB, free: 9.668 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.388e-06/0.5206, allocations: 4 kB / 0.6466 GB, free: 9.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.00757/0.5282, allocations: 2.065 MB / 0.6486 GB, free: 7.516 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.5284, allocations: 281.7 kB / 0.6489 GB, free: 7.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009221/0.5293, allocations: 0.5293 MB / 0.6494 GB, free: 6.645 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.994e-05/0.5294, allocations: 45.7 kB / 0.6495 GB, free: 6.594 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.5298, allocations: 482.9 kB / 0.6499 GB, free: 6.113 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.5301, allocations: 256.3 kB / 0.6502 GB, free: 5.859 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.5302, allocations: 24 kB / 0.6502 GB, free: 5.836 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5304, allocations: 386.7 kB / 0.6505 GB, free: 5.449 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007071/0.5311, allocations: 338.5 kB / 0.6509 GB, free: 5.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008283/0.532, allocations: 0.5755 MB / 0.6514 GB, free: 4.449 MB / 410.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.01744/0.5494, allocations: 2.837 MB / 0.6542 GB, free: 1.562 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.5495, allocations: 4 kB / 0.6542 GB, free: 1.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003006/0.5525, allocations: 1.229 MB / 0.6554 GB, free: 316 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/0.5526, allocations: 93.09 kB / 0.6555 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.5526, allocations: 11.94 kB / 0.6555 GB, free: 192 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005435/0.5532, allocations: 97 kB / 0.6556 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.5544, allocations: 251.5 kB / 0.6558 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.5561, allocations: 1.565 MB / 0.6574 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.5572, allocations: 115.2 kB / 0.6575 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.5573, allocations: 59.94 kB / 0.6575 GB, free: 13.97 MB / 426.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.0007037/0.558, allocations: 367 kB / 0.6579 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.5583, allocations: 79.14 kB / 0.658 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004718/0.563, allocations: 1.541 MB / 0.6595 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.563, allocations: 11.98 kB / 0.6595 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.563, allocations: 0 / 0.6595 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.5631, allocations: 3.984 kB / 0.6595 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004745/0.5678, allocations: 2.342 MB / 0.6618 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5678, allocations: 0 / 0.6618 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/0.5686, allocations: 139.8 kB / 0.6619 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003026/0.5716, allocations: 0.5917 MB / 0.6625 GB, free: 8.746 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.5718, allocations: 35.97 kB / 0.6625 GB, free: 8.711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.5729, allocations: 0.926 MB / 0.6634 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5729, allocations: 0 / 0.6634 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.5757, allocations: 1.689 MB / 0.6651 GB, free: 6.008 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004765/0.5762, allocations: 251.8 kB / 0.6653 GB, free: 5.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.5764, allocations: 28 kB / 0.6653 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.5771, allocations: 51.86 kB / 0.6654 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.5772, allocations: 64.91 kB / 0.6654 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.5773, allocations: 35.97 kB / 0.6655 GB, free: 5.566 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005998/0.5779, allocations: 422.8 kB / 0.6659 GB, free: 5.156 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5779, allocations: 0 / 0.6659 GB, free: 5.156 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001235/0.5792, allocations: 387 kB / 0.6663 GB, free: 4.777 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: 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.003847/0.583, allocations: 2.685 MB / 0.6689 GB, free: 2.109 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.5852, allocations: 1.177 MB / 0.67 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5852, allocations: 0 / 0.67 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.5862, allocations: 0.6599 MB / 0.6707 GB, free: 192 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007578/0.587, allocations: 120.1 kB / 0.6708 GB, free: 72 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0067/0.5937, allocations: 7.631 MB / 0.6782 GB, free: 8.242 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007874/0.5946, allocations: 1.038 MB / 0.6792 GB, free: 7.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.5952, allocations: 114.2 kB / 0.6794 GB, free: 7.066 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006178/0.5958, allocations: 403.2 kB / 0.6797 GB, free: 6.672 MB / 442.7 MB Notification: Performance of SimCode: time 4.459e-06/0.5958, allocations: 0 / 0.6797 GB, free: 6.672 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04195/0.6378, allocations: 20.16 MB / 0.6994 GB, free: 2.758 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002569/0.6381, allocations: 245.6 kB / 0.6997 GB, free: 2.426 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_Comax_Analytical_20160629.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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_Analytical_20160629.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_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_Analytical_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_Analytical_20160629.o] Error 1