Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004.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_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004",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.005691/0.005691, allocations: 172 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.404/1.404, allocations: 223.2 MB / 239 MB, free: 1.805 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.0008644/0.0008646, allocations: 99.67 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02486/0.02486, allocations: 5.395 MB / 346.7 MB, free: 5.574 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.1674/0.1674, allocations: 2.288 MB / 401.3 MB, free: 91.62 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004383, allocations: 16 kB / 465.4 MB, free: 42.15 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1109, allocations: 52.19 MB / 0.5055 GB, free: 5.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3705/0.4815, allocations: 98.59 MB / 0.6018 GB, free: 3.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.4818, allocations: 76.53 kB / 0.6018 GB, free: 3.328 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09418/0.576, allocations: 37.29 MB / 0.6382 GB, free: 2.949 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.576, allocations: 0 / 0.6382 GB, free: 2.949 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.771e-05/0.5761, allocations: 24 kB / 0.6383 GB, free: 2.926 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.003347/0.5794, allocations: 1.49 MB / 0.6397 GB, free: 1.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5795, allocations: 12.03 kB / 0.6397 GB, free: 1.359 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.5797, allocations: 152.4 kB / 0.6399 GB, free: 1.203 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.5812, allocations: 302.3 kB / 0.6402 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.5823, allocations: 0.6605 MB / 0.6408 GB, free: 212 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-05/0.5824, allocations: 78 kB / 0.6409 GB, free: 132 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.5826, allocations: 103.9 kB / 0.641 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.5847, allocations: 1.146 MB / 0.6421 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.5848, allocations: 7.875 kB / 0.6421 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.5849, allocations: 47.94 kB / 0.6422 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.5849, allocations: 27.98 kB / 0.6422 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001997/0.5869, allocations: 1.036 MB / 0.6432 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006632/0.5936, allocations: 4.486 MB / 0.6476 GB, free: 9.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.5958, allocations: 1.733 MB / 0.6493 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-05/0.5959, allocations: 93.53 kB / 0.6494 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007772/0.5967, allocations: 470.5 kB / 0.6498 GB, free: 6.438 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 5.33e-06/0.5967, allocations: 3.984 kB / 0.6498 GB, free: 6.434 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.007077/0.6038, allocations: 1.836 MB / 0.6516 GB, free: 4.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.6039, allocations: 277.5 kB / 0.6519 GB, free: 4.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.605, allocations: 0.64 MB / 0.6525 GB, free: 3.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.888e-05/0.6051, allocations: 37.7 kB / 0.6525 GB, free: 3.527 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.6055, allocations: 0.5179 MB / 0.653 GB, free: 3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.6057, allocations: 221 kB / 0.6533 GB, free: 2.781 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-05/0.6058, allocations: 24.03 kB / 0.6533 GB, free: 2.758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.606, allocations: 386.8 kB / 0.6536 GB, free: 2.371 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005545/0.6066, allocations: 297.8 kB / 0.6539 GB, free: 2.078 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006999/0.6073, allocations: 0.5415 MB / 0.6545 GB, free: 1.426 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006895/0.608, allocations: 430.7 kB / 0.6549 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.608, allocations: 4 kB / 0.6549 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002186/0.6102, allocations: 1.098 MB / 0.6559 GB, free: 15.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.825e-05/0.6103, allocations: 67.41 kB / 0.656 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6103, allocations: 8.312 kB / 0.656 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00055/0.6108, allocations: 92.78 kB / 0.6561 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008465/0.6117, allocations: 223.9 kB / 0.6563 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.6135, allocations: 1.569 MB / 0.6578 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008493/0.6143, allocations: 103.1 kB / 0.6579 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.13e-05/0.6144, allocations: 47.97 kB / 0.658 GB, free: 13.61 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.0006752/0.6151, allocations: 335.5 kB / 0.6583 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.6153, allocations: 79.06 kB / 0.6584 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004229/0.6195, allocations: 1.276 MB / 0.6596 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.6195, allocations: 4 kB / 0.6596 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6195, allocations: 4 kB / 0.6596 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.6195, allocations: 3.984 kB / 0.6596 GB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.6227, allocations: 2.043 MB / 0.6616 GB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.6227, allocations: 3.953 kB / 0.6616 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.6231, allocations: 83.91 kB / 0.6617 GB, free: 9.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.6257, allocations: 0.5961 MB / 0.6623 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-05/0.6258, allocations: 23.98 kB / 0.6623 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.6268, allocations: 0.9102 MB / 0.6632 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.6268, allocations: 4.156 kB / 0.6632 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.6291, allocations: 1.453 MB / 0.6646 GB, free: 6.566 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003831/0.6295, allocations: 247.8 kB / 0.6649 GB, free: 6.305 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.6296, allocations: 20 kB / 0.6649 GB, free: 6.285 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005327/0.6302, allocations: 43.97 kB / 0.6649 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.6303, allocations: 44.5 kB / 0.665 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.254e-05/0.6303, allocations: 35.97 kB / 0.665 GB, free: 6.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006401/0.631, allocations: 495 kB / 0.6655 GB, free: 5.684 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.631, allocations: 0 / 0.6655 GB, free: 5.684 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00113/0.6321, allocations: 374.9 kB / 0.6658 GB, free: 5.316 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.003974/0.6361, allocations: 2.804 MB / 0.6686 GB, free: 2.703 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.638, allocations: 0.989 MB / 0.6695 GB, free: 1.672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.638, allocations: 0 / 0.6695 GB, free: 1.672 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007518/0.6387, allocations: 0.4952 MB / 0.67 GB, free: 1.156 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000788/0.6395, allocations: 148.6 kB / 0.6702 GB, free: 1.012 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007103/0.6466, allocations: 7.913 MB / 0.6779 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007808/0.6475, allocations: 1.045 MB / 0.6789 GB, free: 7.812 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006106/0.6481, allocations: 102.2 kB / 0.679 GB, free: 7.711 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005992/0.6487, allocations: 395.3 kB / 0.6794 GB, free: 7.324 MB / 442.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6487, allocations: 0 / 0.6794 GB, free: 7.324 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04518/0.6939, allocations: 20.06 MB / 0.699 GB, free: 3.516 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002612/0.6942, allocations: 274.2 kB / 0.6992 GB, free: 3.148 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_20160626_to_20161004.o PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004.c In file included from PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004_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_20160626_to_20161004.c:7: In file included from ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004_model.h:24: ./PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160626_to_20161004_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_20160626_to_20161004_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_20160626_to_20161004.o] Error 1