Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.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) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",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.00727/0.00727, allocations: 170.2 kB / 15.11 MB, free: 5.969 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.373/1.373, allocations: 223.2 MB / 239 MB, free: 1.773 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.0008361/0.0008361, allocations: 95.27 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02428/0.02428, allocations: 5.383 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.1665/0.1665, allocations: 2.301 MB / 401.3 MB, free: 91.64 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005063/0.0005064, allocations: 16 kB / 468.8 MB, free: 38.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 52.19 MB / 0.5087 GB, free: 2.566 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3297/0.4324, allocations: 96.37 MB / 0.6028 GB, free: 6.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4326, allocations: 73.84 kB / 0.6029 GB, free: 6.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09579/0.5284, allocations: 35.89 MB / 0.638 GB, free: 4.141 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5285, allocations: 0 / 0.638 GB, free: 4.141 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.991e-05/0.5285, allocations: 20 kB / 0.638 GB, free: 4.121 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.003707/0.5323, allocations: 1.43 MB / 0.6394 GB, free: 2.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.5323, allocations: 12.03 kB / 0.6394 GB, free: 2.609 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003601/0.5327, allocations: 160.7 kB / 0.6395 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001659/0.5343, allocations: 302.4 kB / 0.6398 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.5356, allocations: 0.586 MB / 0.6404 GB, free: 1.516 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.898e-05/0.5357, allocations: 82.02 kB / 0.6405 GB, free: 1.434 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.5359, allocations: 108 kB / 0.6406 GB, free: 1.328 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/0.5384, allocations: 1.195 MB / 0.6418 GB, free: 80 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.5384, allocations: 3.906 kB / 0.6418 GB, free: 76 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.5385, allocations: 48 kB / 0.6418 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.5386, allocations: 32.05 kB / 0.6418 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002413/0.541, allocations: 1.112 MB / 0.6429 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007731/0.5488, allocations: 4.544 MB / 0.6474 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002715/0.5515, allocations: 1.828 MB / 0.6491 GB, free: 8.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001714/0.5517, allocations: 174.8 kB / 0.6493 GB, free: 7.863 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008966/0.5526, allocations: 0.5636 MB / 0.6499 GB, free: 7.258 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.715e-06/0.5526, allocations: 4 kB / 0.6499 GB, free: 7.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.00758/0.5602, allocations: 2.061 MB / 0.6519 GB, free: 5.109 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.5604, allocations: 277.7 kB / 0.6521 GB, free: 4.777 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009436/0.5613, allocations: 0.5293 MB / 0.6527 GB, free: 4.242 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.5614, allocations: 41.7 kB / 0.6527 GB, free: 4.195 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000496/0.5619, allocations: 490.9 kB / 0.6532 GB, free: 3.707 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002756/0.5622, allocations: 260.3 kB / 0.6534 GB, free: 3.449 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.601e-05/0.5623, allocations: 20 kB / 0.6534 GB, free: 3.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.5625, allocations: 394.7 kB / 0.6538 GB, free: 3.035 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007608/0.5633, allocations: 338.4 kB / 0.6541 GB, free: 2.707 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009004/0.5642, allocations: 0.5717 MB / 0.6547 GB, free: 2.039 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.0205/0.5847, allocations: 2.841 MB / 0.6575 GB, free: 15.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-05/0.5848, allocations: 4 kB / 0.6575 GB, free: 15.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004445/0.5892, allocations: 1.229 MB / 0.6587 GB, free: 13.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.737e-05/0.5893, allocations: 89.05 kB / 0.6588 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/0.5894, allocations: 12 kB / 0.6588 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007808/0.5902, allocations: 101 kB / 0.6589 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.592, allocations: 247.6 kB / 0.6591 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/0.5947, allocations: 1.573 MB / 0.6606 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.5963, allocations: 111 kB / 0.6607 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002568/0.5966, allocations: 55.95 kB / 0.6608 GB, free: 11.56 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.00125/0.5979, allocations: 365.2 kB / 0.6611 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/0.5983, allocations: 79.19 kB / 0.6612 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006141/0.6044, allocations: 1.549 MB / 0.6627 GB, free: 9.512 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.6045, allocations: 8 kB / 0.6627 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6045, allocations: 0 / 0.6627 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.6045, allocations: 3.984 kB / 0.6627 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/0.6109, allocations: 2.33 MB / 0.665 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.611, allocations: 0 / 0.665 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000883/0.6119, allocations: 135.8 kB / 0.6651 GB, free: 6.949 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003389/0.6153, allocations: 0.5956 MB / 0.6657 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.6155, allocations: 39.95 kB / 0.6658 GB, free: 6.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.6171, allocations: 0.922 MB / 0.6667 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.6171, allocations: 64 / 0.6667 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004589/0.6217, allocations: 1.689 MB / 0.6683 GB, free: 3.605 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007872/0.6225, allocations: 251.8 kB / 0.6686 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003248/0.6229, allocations: 27.94 kB / 0.6686 GB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.6239, allocations: 51.92 kB / 0.6686 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.6241, allocations: 60.91 kB / 0.6687 GB, free: 3.203 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.6243, allocations: 39.97 kB / 0.6687 GB, free: 3.164 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009848/0.6253, allocations: 414.8 kB / 0.6691 GB, free: 2.762 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6253, allocations: 0 / 0.6691 GB, free: 2.762 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002048/0.6273, allocations: 391 kB / 0.6695 GB, free: 2.379 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 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * 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.006274/0.6336, allocations: 2.684 MB / 0.6721 GB, free: 15.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003315/0.637, allocations: 1.173 MB / 0.6733 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.637, allocations: 0 / 0.6733 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.6386, allocations: 0.6648 MB / 0.6739 GB, free: 13.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.6398, allocations: 122.2 kB / 0.674 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/0.6508, allocations: 7.634 MB / 0.6815 GB, free: 5.848 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009273/0.6519, allocations: 1.03 MB / 0.6825 GB, free: 4.793 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007553/0.6526, allocations: 118.2 kB / 0.6826 GB, free: 4.676 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006381/0.6533, allocations: 403.2 kB / 0.683 GB, free: 4.281 MB / 442.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6533, allocations: 0 / 0.683 GB, free: 4.281 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0534/0.7067, allocations: 20.16 MB / 0.7027 GB, free: 376 kB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003092/0.707, allocations: 247.9 kB / 0.7029 GB, free: 88 kB / 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_2016.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_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_2016.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_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_2016_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_2016.o] Error 1