Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.006028/0.006028, allocations: 169.8 kB / 15.11 MB, free: 5.973 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.458/1.458, allocations: 223.2 MB / 239 MB, free: 88 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.001164/0.001165, allocations: 93.67 kB / 290.2 MB, free: 4.492 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02573/0.02573, allocations: 5.399 MB / 346.7 MB, free: 7.684 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00899/0.00899, allocations: 2.312 MB / 401.3 MB, free: 1.059 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005624/0.0005625, allocations: 16 kB / 468.7 MB, free: 102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.113, allocations: 52.2 MB / 0.5087 GB, free: 49.78 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.5071, allocations: 96.37 MB / 0.6028 GB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.5074, allocations: 72.22 kB / 0.6029 GB, free: 10.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09523/0.6027, allocations: 35.9 MB / 0.638 GB, free: 12.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.6027, allocations: 0 / 0.638 GB, free: 12.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.727e-05/0.6028, allocations: 20 kB / 0.638 GB, free: 12.58 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.003897/0.6067, allocations: 1.435 MB / 0.6394 GB, free: 11.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.6068, allocations: 8.031 kB / 0.6394 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002266/0.607, allocations: 161.1 kB / 0.6396 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.6085, allocations: 304.9 kB / 0.6398 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009791/0.6095, allocations: 0.582 MB / 0.6404 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.227e-05/0.6096, allocations: 84.56 kB / 0.6405 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.6097, allocations: 110.3 kB / 0.6406 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/0.6121, allocations: 1.194 MB / 0.6418 GB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/0.6121, allocations: 7.844 kB / 0.6418 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.6122, allocations: 42.56 kB / 0.6418 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-05/0.6123, allocations: 24 kB / 0.6418 GB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002414/0.6147, allocations: 1.118 MB / 0.6429 GB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007926/0.6226, allocations: 4.549 MB / 0.6474 GB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.6254, allocations: 1.832 MB / 0.6492 GB, free: 2.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/0.6256, allocations: 170.8 kB / 0.6493 GB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/0.6268, allocations: 0.5597 MB / 0.6499 GB, free: 1.355 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 4.028e-06/0.6268, allocations: 0 / 0.6499 GB, free: 1.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=80): time 0.008714/0.6355, allocations: 2.069 MB / 0.6519 GB, free: 15.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.6357, allocations: 281.7 kB / 0.6522 GB, free: 14.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009453/0.6366, allocations: 0.5293 MB / 0.6527 GB, free: 14.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.779e-05/0.6367, allocations: 41.7 kB / 0.6527 GB, free: 14.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004911/0.6372, allocations: 491 kB / 0.6532 GB, free: 13.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.6375, allocations: 268.3 kB / 0.6534 GB, free: 13.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.6376, allocations: 20 kB / 0.6535 GB, free: 13.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.6378, allocations: 382.7 kB / 0.6538 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006833/0.6385, allocations: 338.5 kB / 0.6541 GB, free: 12.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008163/0.6393, allocations: 0.5716 MB / 0.6547 GB, free: 12.13 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.01716/0.6565, allocations: 2.841 MB / 0.6575 GB, free: 9.242 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.6565, allocations: 3.938 kB / 0.6575 GB, free: 9.238 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002608/0.6591, allocations: 1.229 MB / 0.6587 GB, free: 7.988 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.6592, allocations: 101.2 kB / 0.6588 GB, free: 7.871 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.6593, allocations: 8 kB / 0.6588 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005322/0.6598, allocations: 92.77 kB / 0.6589 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.6609, allocations: 255.6 kB / 0.6591 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/0.6629, allocations: 1.565 MB / 0.6606 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.664, allocations: 114.9 kB / 0.6608 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.6641, allocations: 55.95 kB / 0.6608 GB, free: 5.652 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.0008666/0.665, allocations: 366.1 kB / 0.6612 GB, free: 5.266 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.6652, allocations: 75.16 kB / 0.6612 GB, free: 5.191 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/0.6699, allocations: 1.545 MB / 0.6627 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.6699, allocations: 8 kB / 0.6627 GB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.6699, allocations: 8 kB / 0.6627 GB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.6699, allocations: 3.984 kB / 0.6628 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003892/0.6738, allocations: 2.327 MB / 0.665 GB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.6739, allocations: 4.031 kB / 0.665 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006165/0.6745, allocations: 143.7 kB / 0.6652 GB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/0.6771, allocations: 0.5845 MB / 0.6657 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.6772, allocations: 35.97 kB / 0.6658 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.6783, allocations: 0.9239 MB / 0.6667 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.6783, allocations: 4.031 kB / 0.6667 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.6812, allocations: 1.685 MB / 0.6683 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.6817, allocations: 255.7 kB / 0.6686 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.6819, allocations: 32 kB / 0.6686 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.6825, allocations: 43.97 kB / 0.6686 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.6827, allocations: 64.88 kB / 0.6687 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.572e-05/0.6827, allocations: 35.95 kB / 0.6687 GB, free: 13.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005934/0.6833, allocations: 422.8 kB / 0.6691 GB, free: 12.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6834, allocations: 0 / 0.6691 GB, free: 12.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001303/0.6847, allocations: 391 kB / 0.6695 GB, free: 12.47 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 (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.003819/0.6885, allocations: 2.693 MB / 0.6721 GB, free: 9.789 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002158/0.6907, allocations: 1.17 MB / 0.6733 GB, free: 8.566 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6907, allocations: 1.5 kB / 0.6733 GB, free: 8.566 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.6917, allocations: 0.6639 MB / 0.6739 GB, free: 7.867 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008047/0.6925, allocations: 110.2 kB / 0.674 GB, free: 7.758 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.6996, allocations: 7.641 MB / 0.6815 GB, free: 15.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.7002, allocations: 1.03 MB / 0.6825 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006437/0.7008, allocations: 114.2 kB / 0.6826 GB, free: 14.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005963/0.7014, allocations: 403.2 kB / 0.683 GB, free: 14.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7015, allocations: 0 / 0.683 GB, free: 14.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.7423, allocations: 20.16 MB / 0.7027 GB, free: 10.45 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.7425, allocations: 249 kB / 0.7029 GB, free: 10.16 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_Trina_Analytical_2016.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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_Trina_Analytical_2016.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_2016_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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_Trina_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_Trina_Analytical_2016.o] Error 1