Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.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.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",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.001842/0.001842, allocations: 180.2 kB / 7.65 MB, free: 1.414 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.62/1.62, allocations: 221.5 MB / 229.6 MB, free: 3.113 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.0008968/0.0008967, allocations: 96.47 kB / 280.5 MB, free: 1.121 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02422/0.02422, allocations: 5.297 MB / 336.6 MB, free: 9.082 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.2e-05/1.203e-05, allocations: 0 / 396.4 MB, free: 68.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0832/0.08323, allocations: 51.61 MB / 448 MB, free: 17.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.4228, allocations: 98.19 MB / 0.5334 GB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.4232, allocations: 75.78 kB / 0.5335 GB, free: 1.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5786/1.002, allocations: 145.8 MB / 0.6758 GB, free: 103.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/1.002, allocations: 0 / 0.6758 GB, free: 103.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000164/1.002, allocations: 90.7 kB / 0.6759 GB, free: 103.3 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01186/1.014, allocations: 4.115 MB / 0.6799 GB, free: 101.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/1.014, allocations: 7.219 kB / 0.6799 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005503/1.019, allocations: 0.9858 MB / 0.6809 GB, free: 101.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005656/1.025, allocations: 2.926 MB / 0.6838 GB, free: 101.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/1.025, allocations: 136.7 kB / 0.6839 GB, free: 101.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008778/1.026, allocations: 239.2 kB / 0.6841 GB, free: 101.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009878/1.036, allocations: 4.861 MB / 0.6889 GB, free: 99.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/1.048, allocations: 5.933 MB / 0.6947 GB, free: 96.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-05/1.048, allocations: 3.438 kB / 0.6947 GB, free: 96.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/1.049, allocations: 7.812 kB / 0.6947 GB, free: 96.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002244/1.049, allocations: 299 kB / 0.6949 GB, free: 96.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02943/1.078, allocations: 22.12 MB / 0.7166 GB, free: 83.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005728/1.084, allocations: 4.717 MB / 0.7212 GB, free: 78.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/1.085, allocations: 0.8712 MB / 0.722 GB, free: 77.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/1.085, allocations: 110 kB / 0.7221 GB, free: 77.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009731/1.086, allocations: 0.8543 MB / 0.7229 GB, free: 76.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=115): time 2.755e-06/1.086, allocations: 0 / 0.7229 GB, free: 76.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.005015/1.091, allocations: 1.995 MB / 0.7249 GB, free: 74.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/1.092, allocations: 201.2 kB / 0.7251 GB, free: 74.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/1.094, allocations: 1.584 MB / 0.7266 GB, free: 72.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001941/1.094, allocations: 29.55 kB / 0.7267 GB, free: 72.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/1.096, allocations: 1.952 MB / 0.7286 GB, free: 70.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000413/1.097, allocations: 402.4 kB / 0.729 GB, free: 70.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/1.097, allocations: 0 / 0.729 GB, free: 70.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/1.097, allocations: 415.1 kB / 0.7293 GB, free: 70.04 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/1.098, allocations: 1.09 MB / 0.7304 GB, free: 68.94 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/1.1, allocations: 2.17 MB / 0.7325 GB, free: 66.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/1.102, allocations: 1.899 MB / 0.7344 GB, free: 64.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/1.102, allocations: 15.94 kB / 0.7344 GB, free: 64.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.005379/1.108, allocations: 3.567 MB / 0.7379 GB, free: 60.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.393e-05/1.108, allocations: 57.69 kB / 0.7379 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.754e-05/1.108, allocations: 36 kB / 0.738 GB, free: 60.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005092/1.108, allocations: 141 kB / 0.7381 GB, free: 60.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/1.11, allocations: 0.6434 MB / 0.7387 GB, free: 59.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/1.112, allocations: 1.553 MB / 0.7403 GB, free: 58.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002406/1.114, allocations: 360.8 kB / 0.7406 GB, free: 57.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/1.114, allocations: 143.9 kB / 0.7407 GB, free: 57.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (319): * Single equations (assignments): 313 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.000342/1.115, allocations: 237.6 kB / 0.741 GB, free: 57.46 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004496/1.119, allocations: 2.041 MB / 0.743 GB, free: 55.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/1.119, allocations: 154 kB / 0.7431 GB, free: 55.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00487/1.124, allocations: 2.209 MB / 0.7453 GB, free: 53.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004068/1.128, allocations: 1.861 MB / 0.7471 GB, free: 51.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.128, allocations: 4 kB / 0.7471 GB, free: 51.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/1.128, allocations: 7.969 kB / 0.7471 GB, free: 51.15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0077/1.136, allocations: 4.701 MB / 0.7517 GB, free: 46.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.136, allocations: 4 kB / 0.7517 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/1.137, allocations: 227.7 kB / 0.7519 GB, free: 46.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/1.139, allocations: 0.5412 MB / 0.7524 GB, free: 45.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-05/1.139, allocations: 19.97 kB / 0.7524 GB, free: 45.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007319/1.14, allocations: 0.8607 MB / 0.7533 GB, free: 44.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.14, allocations: 0 / 0.7533 GB, free: 44.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003723/1.144, allocations: 2.975 MB / 0.7562 GB, free: 41.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008363/1.145, allocations: 422.6 kB / 0.7566 GB, free: 41.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/1.145, allocations: 12 kB / 0.7566 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/1.146, allocations: 83.88 kB / 0.7567 GB, free: 41.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/1.146, allocations: 77.22 kB / 0.7568 GB, free: 41.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.21e-05/1.146, allocations: 43.97 kB / 0.7568 GB, free: 41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001852/1.148, allocations: 1.163 MB / 0.7579 GB, free: 39.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.148, allocations: 3.938 kB / 0.7579 GB, free: 39.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003337/1.152, allocations: 0.9131 MB / 0.7588 GB, free: 38.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (converter.integrator.y,converter.potentialSensor.plug_p.reference.gamma) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 106 * 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: 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.004083/1.156, allocations: 4.113 MB / 0.7629 GB, free: 34.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003776/1.159, allocations: 2.464 MB / 0.7653 GB, free: 32.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/1.159, allocations: 0 / 0.7653 GB, free: 32.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009546/1.16, allocations: 0.846 MB / 0.7661 GB, free: 31.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.162, allocations: 298.1 kB / 0.7664 GB, free: 31.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/1.173, allocations: 6.37 MB / 0.7726 GB, free: 24.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/1.175, allocations: 3.094 MB / 0.7756 GB, free: 21.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002098/1.178, allocations: 0.8032 MB / 0.7764 GB, free: 20.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.179, allocations: 1.272 MB / 0.7776 GB, free: 19.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.282e-06/1.179, allocations: 0 / 0.7776 GB, free: 19.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3427/1.522, allocations: 48.2 MB / 0.8247 GB, free: 91.86 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/1.522, allocations: 125.4 kB / 0.8248 GB, free: 91.66 MB / 442.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_Examples_SimpleModuleMP3 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_FMU.o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_FMU.c In file included from PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_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_Examples_SimpleModuleMP3_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_Examples_SimpleModuleMP3 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.c In file included from PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_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_Examples_SimpleModuleMP3.c:153:69: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'Complex_array' (aka 'struct base_array_s') data->localData[0]->realVars[97] /* converter.powerAC variable */ = tmp3; ^ ~~~~ 2 warnings and 1 error generated. make: *** [: PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.o] Error 1