Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.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.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",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.001304/0.001304, allocations: 174.3 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0008623/0.0008624, allocations: 90.03 kB / 280.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02315/0.02315, allocations: 5.291 MB / 336.5 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.703e-05/2.736e-05, allocations: 1.031 kB / 394.5 MB, free: 50.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 51.61 MB / 446.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.2344, allocations: 91.57 MB / 0.525 GB, free: 1.113 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.2348, allocations: 71.97 kB / 0.5251 GB, free: 1.043 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4851/0.7199, allocations: 133.8 MB / 0.6557 GB, free: 11.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.72, allocations: 4 kB / 0.6557 GB, free: 11.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001901/0.7202, allocations: 83.88 kB / 0.6558 GB, free: 11.45 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1072 * Number of variables: 1072 Notification: Performance of Generate backend data structure: time 0.01304/0.7332, allocations: 3.754 MB / 0.6595 GB, free: 7.641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.7333, allocations: 12.03 kB / 0.6595 GB, free: 7.629 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005604/0.7389, allocations: 0.9439 MB / 0.6604 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005978/0.7449, allocations: 2.739 MB / 0.6631 GB, free: 3.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.7451, allocations: 120 kB / 0.6632 GB, free: 3.777 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007686/0.7458, allocations: 219.9 kB / 0.6634 GB, free: 3.562 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009703/0.7556, allocations: 4.557 MB / 0.6679 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01423/0.7698, allocations: 5.672 MB / 0.6734 GB, free: 9.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.77, allocations: 0 / 0.6734 GB, free: 9.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005831/0.7706, allocations: 4 kB / 0.6734 GB, free: 9.156 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000344/0.7709, allocations: 291.3 kB / 0.6737 GB, free: 8.871 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3141/1.085, allocations: 20.94 MB / 0.6941 GB, free: 76.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005658/1.091, allocations: 4.121 MB / 0.6982 GB, free: 74.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/1.092, allocations: 0.7576 MB / 0.6989 GB, free: 74.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/1.092, allocations: 104.7 kB / 0.699 GB, free: 74.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/1.092, allocations: 49.25 kB / 0.6991 GB, free: 74.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=93): time 2.705e-06/1.092, allocations: 0 / 0.6991 GB, free: 74.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=93): time 0.002418/1.095, allocations: 1.396 MB / 0.7004 GB, free: 74.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/1.095, allocations: 86.67 kB / 0.7005 GB, free: 74.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/1.096, allocations: 1.349 MB / 0.7018 GB, free: 74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/1.096, allocations: 25.7 kB / 0.7018 GB, free: 73.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000739/1.097, allocations: 1.769 MB / 0.7036 GB, free: 73.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/1.097, allocations: 334.6 kB / 0.7039 GB, free: 73.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.856e-05/1.098, allocations: 2.5 kB / 0.7039 GB, free: 73.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/1.098, allocations: 448.3 kB / 0.7043 GB, free: 72.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/1.099, allocations: 1.082 MB / 0.7054 GB, free: 72.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/1.1, allocations: 1.998 MB / 0.7073 GB, free: 71.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/1.103, allocations: 1.781 MB / 0.7091 GB, free: 71.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/1.103, allocations: 7.281 kB / 0.7091 GB, free: 71.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.004511/1.107, allocations: 3.207 MB / 0.7122 GB, free: 71.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/1.107, allocations: 22.66 kB / 0.7122 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-05/1.107, allocations: 33.12 kB / 0.7123 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.898e-05/1.107, allocations: 59 kB / 0.7123 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/1.109, allocations: 0.5728 MB / 0.7129 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.222e-05/1.109, allocations: 68.28 kB / 0.7129 GB, free: 71.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/1.111, allocations: 325.5 kB / 0.7133 GB, free: 71.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/1.112, allocations: 124.6 kB / 0.7134 GB, free: 71.18 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: converter.potentialSensor.plug_p.reference.gamma:VARIABLE(start = 0.0 unit = "rad" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 1 (converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000299/1.112, allocations: 196.8 kB / 0.7136 GB, free: 71.08 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002013/1.114, allocations: 1.404 MB / 0.7149 GB, free: 70.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/1.114, allocations: 126.1 kB / 0.7151 GB, free: 70.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/1.117, allocations: 1.603 MB / 0.7166 GB, free: 70.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001699/1.118, allocations: 1.281 MB / 0.7179 GB, free: 70.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/1.118, allocations: 0 / 0.7179 GB, free: 70.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/1.118, allocations: 11.28 kB / 0.7179 GB, free: 70.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0065/1.125, allocations: 3.911 MB / 0.7217 GB, free: 70.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-06/1.125, allocations: 3.969 kB / 0.7217 GB, free: 70.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009138/1.126, allocations: 204.5 kB / 0.7219 GB, free: 70.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/1.126, allocations: 7.625 kB / 0.7219 GB, free: 70.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.727e-05/1.126, allocations: 9.438 kB / 0.7219 GB, free: 70.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/1.126, allocations: 6.125 kB / 0.7219 GB, free: 70.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.126, allocations: 3.375 kB / 0.7219 GB, free: 70.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0029/1.129, allocations: 2.504 MB / 0.7244 GB, free: 69.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/1.129, allocations: 347.9 kB / 0.7247 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/1.13, allocations: 6.688 kB / 0.7247 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000817/1.13, allocations: 67.67 kB / 0.7248 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/1.131, allocations: 58.94 kB / 0.7248 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/1.131, allocations: 31.11 kB / 0.7249 GB, free: 69.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001361/1.132, allocations: 0.9939 MB / 0.7258 GB, free: 69.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.132, allocations: 0 / 0.7258 GB, free: 69.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002594/1.135, allocations: 0.8149 MB / 0.7266 GB, free: 69.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (converter.potentialSensor.plug_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00338/1.138, allocations: 3.449 MB / 0.73 GB, free: 68.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002857/1.141, allocations: 2.019 MB / 0.732 GB, free: 68.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.141, allocations: 2.375 kB / 0.732 GB, free: 68.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007073/1.142, allocations: 0.6282 MB / 0.7326 GB, free: 68.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/1.143, allocations: 247.4 kB / 0.7328 GB, free: 68.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009987/1.153, allocations: 5.93 MB / 0.7386 GB, free: 66.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.155, allocations: 2.956 MB / 0.7415 GB, free: 65.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001889/1.157, allocations: 0.7729 MB / 0.7422 GB, free: 65.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/1.159, allocations: 1.121 MB / 0.7433 GB, free: 64.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/1.159, allocations: 0 / 0.7433 GB, free: 64.69 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06893/1.228, allocations: 40.71 MB / 0.7831 GB, free: 41.53 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.228, allocations: 159 kB / 0.7832 GB, free: 41.34 MB / 426.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_FMU.o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_FMU.c In file included from PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c In file included from PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c:129:69: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'Complex_array' (aka 'struct base_array_s') data->localData[0]->realVars[96] /* converter.powerAC variable */ = tmp3; ^ ~~~~ 2 warnings and 1 error generated. make: *** [: PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.o] Error 1