Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_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_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_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.006271/0.006271, allocations: 170.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.498/1.498, allocations: 223.2 MB / 239 MB, free: 1.812 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.0009143/0.0009141, allocations: 96.33 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.02501/0.02501, allocations: 5.399 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.1483/0.1483, allocations: 2.306 MB / 401.3 MB, free: 91.72 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004331, allocations: 12 kB / 465.4 MB, free: 42.17 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 52.19 MB / 0.5055 GB, free: 5.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3347/0.4407, allocations: 98.6 MB / 0.6018 GB, free: 2.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001635/0.4409, allocations: 71.17 kB / 0.6018 GB, free: 2.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09517/0.5361, allocations: 37.29 MB / 0.6383 GB, free: 2.855 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5361, allocations: 0 / 0.6383 GB, free: 2.855 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.858e-05/0.5362, allocations: 24 kB / 0.6383 GB, free: 2.832 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003455/0.5396, allocations: 1.483 MB / 0.6397 GB, free: 1.285 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.004e-05/0.5397, allocations: 12.03 kB / 0.6397 GB, free: 1.273 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002055/0.5399, allocations: 160.4 kB / 0.6399 GB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/0.5415, allocations: 298.3 kB / 0.6402 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.5426, allocations: 0.6566 MB / 0.6408 GB, free: 124 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.5427, allocations: 78 kB / 0.6409 GB, free: 44 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.5429, allocations: 112 kB / 0.641 GB, free: 15.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.5451, allocations: 1.15 MB / 0.6421 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.5451, allocations: 3.938 kB / 0.6421 GB, free: 14.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.5452, allocations: 44 kB / 0.6422 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.5452, allocations: 24 kB / 0.6422 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.5473, allocations: 1.034 MB / 0.6432 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006573/0.5539, allocations: 4.49 MB / 0.6476 GB, free: 8.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.5561, allocations: 1.739 MB / 0.6493 GB, free: 6.945 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.47e-05/0.5562, allocations: 93.52 kB / 0.6494 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007834/0.557, allocations: 474.5 kB / 0.6498 GB, free: 6.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 3.597e-06/0.557, allocations: 0 / 0.6498 GB, free: 6.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.007321/0.5643, allocations: 1.839 MB / 0.6516 GB, free: 4.445 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/0.5645, allocations: 281.5 kB / 0.6519 GB, free: 4.109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.5656, allocations: 0.6322 MB / 0.6525 GB, free: 3.477 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.273e-05/0.5657, allocations: 45.62 kB / 0.6525 GB, free: 3.426 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004439/0.5661, allocations: 0.514 MB / 0.653 GB, free: 2.902 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.5663, allocations: 217 kB / 0.6533 GB, free: 2.688 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/0.5664, allocations: 16 kB / 0.6533 GB, free: 2.672 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.5666, allocations: 386.8 kB / 0.6536 GB, free: 2.285 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005611/0.5671, allocations: 301.9 kB / 0.6539 GB, free: 1.988 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006979/0.5678, allocations: 0.5493 MB / 0.6545 GB, free: 1.328 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00072/0.5686, allocations: 422.7 kB / 0.6549 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.5686, allocations: 4 kB / 0.6549 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002171/0.5708, allocations: 1.11 MB / 0.656 GB, free: 15.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.604e-05/0.5708, allocations: 59.41 kB / 0.656 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.5709, allocations: 8 kB / 0.656 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005752/0.5714, allocations: 101 kB / 0.6561 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008738/0.5723, allocations: 215.6 kB / 0.6563 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.5743, allocations: 1.565 MB / 0.6578 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009902/0.5753, allocations: 111.3 kB / 0.658 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/0.5754, allocations: 43.97 kB / 0.658 GB, free: 13.52 MB / 426.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.0007272/0.5761, allocations: 335.6 kB / 0.6583 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.5763, allocations: 79.06 kB / 0.6584 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004329/0.5806, allocations: 1.268 MB / 0.6596 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.5806, allocations: 4 kB / 0.6596 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5806, allocations: 12.06 kB / 0.6596 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.5806, allocations: 3.984 kB / 0.6596 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003592/0.5842, allocations: 2.035 MB / 0.6616 GB, free: 9.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.5843, allocations: 3.953 kB / 0.6616 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/0.5847, allocations: 91.92 kB / 0.6617 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002678/0.5874, allocations: 0.5916 MB / 0.6623 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.5874, allocations: 27.97 kB / 0.6623 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.5886, allocations: 0.9171 MB / 0.6632 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5886, allocations: 0 / 0.6632 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.5911, allocations: 1.442 MB / 0.6646 GB, free: 6.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.5915, allocations: 251.8 kB / 0.6649 GB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.5917, allocations: 23.98 kB / 0.6649 GB, free: 6.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.5922, allocations: 39.98 kB / 0.6649 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.5923, allocations: 44.44 kB / 0.665 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/0.5924, allocations: 31.97 kB / 0.665 GB, free: 6.074 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007217/0.5932, allocations: 499 kB / 0.6655 GB, free: 5.594 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.893e-06/0.5932, allocations: 0 / 0.6655 GB, free: 5.594 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001299/0.5945, allocations: 370.9 kB / 0.6658 GB, free: 5.23 MB / 426.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.004457/0.5989, allocations: 2.808 MB / 0.6686 GB, free: 2.617 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.6011, allocations: 0.9976 MB / 0.6696 GB, free: 1.578 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.6011, allocations: 0 / 0.6696 GB, free: 1.578 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007887/0.6019, allocations: 497.8 kB / 0.67 GB, free: 1.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009598/0.6029, allocations: 163.2 kB / 0.6702 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006674/0.6096, allocations: 7.906 MB / 0.6779 GB, free: 8.797 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/0.6103, allocations: 1.033 MB / 0.6789 GB, free: 7.734 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006103/0.6109, allocations: 114.1 kB / 0.679 GB, free: 7.621 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/0.6115, allocations: 387.3 kB / 0.6794 GB, free: 7.242 MB / 442.7 MB Notification: Performance of SimCode: time 3.477e-06/0.6115, allocations: 0 / 0.6794 GB, free: 7.242 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0454/0.6569, allocations: 20.06 MB / 0.699 GB, free: 3.406 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002676/0.6572, allocations: 259.2 kB / 0.6992 GB, free: 3.066 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_Measurement_20160808.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_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_Measurement_20160808.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_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_Measurement_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_Measurement_20160808.o] Error 1