Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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) 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.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",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.006012/0.006011, allocations: 171.4 kB / 15.12 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.313/1.313, 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.0009384/0.0009384, allocations: 108.2 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.02463/0.02463, allocations: 5.393 MB / 346.7 MB, free: 5.586 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003525, allocations: 8 kB / 412.2 MB, free: 90.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09517, allocations: 51.61 MB / 463.8 MB, free: 44.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3427/0.4379, allocations: 93.56 MB / 0.5443 GB, free: 19.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.4381, allocations: 81.09 kB / 0.5444 GB, free: 19.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06851/0.5067, allocations: 30.05 MB / 0.5738 GB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5067, allocations: 1.125 kB / 0.5738 GB, free: 12.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.049e-05/0.5068, allocations: 19.97 kB / 0.5738 GB, free: 12.63 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003271/0.51, allocations: 1.244 MB / 0.575 GB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5101, allocations: 9.5 kB / 0.575 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003174/0.5104, allocations: 145.7 kB / 0.5751 GB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.5121, allocations: 276.9 kB / 0.5754 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009483/0.5131, allocations: 0.5344 MB / 0.5759 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/0.5132, allocations: 68.41 kB / 0.576 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001718/0.5133, allocations: 95.48 kB / 0.5761 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002141/0.5155, allocations: 1.041 MB / 0.5771 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.5155, allocations: 3.844 kB / 0.5771 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.09e-05/0.5156, allocations: 35.91 kB / 0.5771 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.5157, allocations: 26.97 kB / 0.5772 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.5174, allocations: 0.9905 MB / 0.5781 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005197/0.5227, allocations: 4.03 MB / 0.5821 GB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.5241, allocations: 1.592 MB / 0.5836 GB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.595e-05/0.5242, allocations: 88.8 kB / 0.5837 GB, free: 7.098 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004825/0.5247, allocations: 357.8 kB / 0.584 GB, free: 6.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.494e-06/0.5247, allocations: 0 / 0.584 GB, free: 6.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.006394/0.5311, allocations: 1.576 MB / 0.5856 GB, free: 6.383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.5312, allocations: 143.8 kB / 0.5857 GB, free: 6.223 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004835/0.5317, allocations: 490.6 kB / 0.5862 GB, free: 6.051 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.5317, allocations: 37.45 kB / 0.5862 GB, free: 6.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/0.532, allocations: 468.8 kB / 0.5867 GB, free: 5.691 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.5321, allocations: 166.1 kB / 0.5868 GB, free: 5.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.5321, allocations: 14.62 kB / 0.5868 GB, free: 5.574 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.5322, allocations: 362.8 kB / 0.5872 GB, free: 5.246 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.5326, allocations: 275.1 kB / 0.5875 GB, free: 5.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.5331, allocations: 469.5 kB / 0.5879 GB, free: 4.926 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.5337, allocations: 357.6 kB / 0.5882 GB, free: 4.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.5337, allocations: 3.812 kB / 0.5882 GB, free: 4.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001538/0.5352, allocations: 0.9331 MB / 0.5892 GB, free: 4.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.5353, allocations: 33.33 kB / 0.5892 GB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.5353, allocations: 8.062 kB / 0.5892 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004821/0.5358, allocations: 92.83 kB / 0.5893 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006741/0.5365, allocations: 190 kB / 0.5895 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.5379, allocations: 1.572 MB / 0.591 GB, free: 19.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006704/0.5386, allocations: 92.91 kB / 0.5911 GB, free: 19.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-05/0.5387, allocations: 33.86 kB / 0.5911 GB, free: 19.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 1 * 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.0003354/0.539, allocations: 278.1 kB / 0.5914 GB, free: 18.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.003e-05/0.5391, allocations: 58.53 kB / 0.5914 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.5426, allocations: 1.057 MB / 0.5925 GB, free: 18.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5426, allocations: 3.969 kB / 0.5925 GB, free: 18.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.5426, allocations: 7.828 kB / 0.5925 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.5427, allocations: 0 / 0.5925 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.5449, allocations: 1.737 MB / 0.5942 GB, free: 17.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5449, allocations: 0 / 0.5942 GB, free: 17.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.5452, allocations: 81.58 kB / 0.5943 GB, free: 17.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/0.5476, allocations: 0.5855 MB / 0.5948 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.836e-05/0.5477, allocations: 22.8 kB / 0.5949 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008524/0.5485, allocations: 0.9281 MB / 0.5958 GB, free: 16.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5485, allocations: 7.969 kB / 0.5958 GB, free: 16.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.5501, allocations: 1.165 MB / 0.5969 GB, free: 16.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.5503, allocations: 191.6 kB / 0.5971 GB, free: 16.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.406e-05/0.5504, allocations: 14.56 kB / 0.5971 GB, free: 16.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.5509, allocations: 38.22 kB / 0.5971 GB, free: 16.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.5509, allocations: 34.95 kB / 0.5972 GB, free: 16.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/0.551, allocations: 19.05 kB / 0.5972 GB, free: 16.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003545/0.5513, allocations: 373.2 kB / 0.5975 GB, free: 16.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5513, allocations: 0 / 0.5975 GB, free: 16.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007193/0.5521, allocations: 280.5 kB / 0.5978 GB, free: 16.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.001998/0.5541, allocations: 1.935 MB / 0.5997 GB, free: 15.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.5553, allocations: 0.8224 MB / 0.6005 GB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5553, allocations: 7.156 kB / 0.6005 GB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005358/0.5559, allocations: 381 kB / 0.6009 GB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.5563, allocations: 83.17 kB / 0.601 GB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.5602, allocations: 6.052 MB / 0.6069 GB, free: 9.227 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.5607, allocations: 0.966 MB / 0.6078 GB, free: 8.395 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003272/0.561, allocations: 75.45 kB / 0.6079 GB, free: 8.355 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.5613, allocations: 298.7 kB / 0.6082 GB, free: 8.324 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5614, allocations: 0 / 0.6082 GB, free: 8.324 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.5907, allocations: 14.82 MB / 0.6226 GB, free: 12.75 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.591, allocations: 192.2 kB / 0.6228 GB, free: 12.51 MB / 394.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 -c -o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.c In file included from PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_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_PhotoVoltaics_Examples_SimpleModuleMP.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_model.h:24: ./PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_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_PhotoVoltaics_Examples_SimpleModuleMP_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_PhotoVoltaics_Examples_SimpleModuleMP.o] Error 1