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: translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") translateModel(PhotoVoltaics.Examples.SimpleModuleMP3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 169.3 kB / 7.64 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.518/1.518, allocations: 221.5 MB / 229.6 MB, free: 7.531 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.00104/0.00104, allocations: 83.48 kB / 280.5 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02347/0.02347, allocations: 5.285 MB / 336.5 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.443e-05/1.446e-05, allocations: 0 / 396.3 MB, free: 51.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 51.62 MB / 447.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4274/0.5395, allocations: 98.19 MB / 0.5333 GB, free: 34.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.5399, allocations: 71.33 kB / 0.5334 GB, free: 34.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2944/0.8343, allocations: 145.8 MB / 0.6757 GB, free: 13.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.8343, allocations: 4 kB / 0.6757 GB, free: 13.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003849/0.8347, allocations: 91.94 kB / 0.6758 GB, free: 13.01 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.01849/0.8532, allocations: 4.116 MB / 0.6798 GB, free: 8.824 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.8533, allocations: 8.031 kB / 0.6798 GB, free: 8.816 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006235/0.8595, allocations: 0.9825 MB / 0.6808 GB, free: 7.828 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007546/0.8671, allocations: 2.931 MB / 0.6837 GB, free: 4.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002803/0.8674, allocations: 128 kB / 0.6838 GB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001478/0.8689, allocations: 235.9 kB / 0.684 GB, free: 4.484 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.302/1.171, allocations: 4.861 MB / 0.6888 GB, free: 81.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01981/1.191, allocations: 5.928 MB / 0.6945 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-05/1.191, allocations: 5.938 kB / 0.6945 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004172/1.191, allocations: 7.094 kB / 0.6946 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003582/1.192, allocations: 300.9 kB / 0.6948 GB, free: 80.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03406/1.226, allocations: 22.12 MB / 0.7164 GB, free: 76.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005941/1.232, allocations: 4.716 MB / 0.721 GB, free: 73.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/1.233, allocations: 0.8787 MB / 0.7219 GB, free: 73.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/1.233, allocations: 101.2 kB / 0.722 GB, free: 73.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/1.234, allocations: 0.8622 MB / 0.7228 GB, free: 73.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=115): time 3.085e-06/1.234, allocations: 0 / 0.7228 GB, free: 73.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.00497/1.239, allocations: 1.987 MB / 0.7248 GB, free: 73.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/1.239, allocations: 199.5 kB / 0.725 GB, free: 72.85 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/1.242, allocations: 1.582 MB / 0.7265 GB, free: 72.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/1.242, allocations: 25.7 kB / 0.7265 GB, free: 72.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/1.244, allocations: 1.95 MB / 0.7284 GB, free: 71.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/1.244, allocations: 403.2 kB / 0.7288 GB, free: 71.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/1.244, allocations: 0 / 0.7288 GB, free: 71.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/1.244, allocations: 419.4 kB / 0.7292 GB, free: 71.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/1.246, allocations: 1.092 MB / 0.7303 GB, free: 71.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/1.247, allocations: 2.167 MB / 0.7324 GB, free: 69.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/1.25, allocations: 1.897 MB / 0.7343 GB, free: 69.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.899e-05/1.25, allocations: 15 kB / 0.7343 GB, free: 69.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.005269/1.255, allocations: 3.567 MB / 0.7378 GB, free: 69.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.271e-05/1.255, allocations: 52.12 kB / 0.7378 GB, free: 69.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.46e-05/1.255, allocations: 37.66 kB / 0.7379 GB, free: 69.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/1.256, allocations: 142.1 kB / 0.738 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/1.258, allocations: 0.6438 MB / 0.7386 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/1.259, allocations: 1.559 MB / 0.7401 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/1.262, allocations: 365 kB / 0.7405 GB, free: 68.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/1.262, allocations: 140.9 kB / 0.7406 GB, free: 68.34 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.000415/1.263, allocations: 242.8 kB / 0.7409 GB, free: 68.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/1.263, allocations: 154.8 kB / 0.741 GB, free: 68.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005197/1.268, allocations: 2.215 MB / 0.7432 GB, free: 67.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004315/1.273, allocations: 1.857 MB / 0.745 GB, free: 67.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.273, allocations: 0 / 0.745 GB, free: 67.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/1.273, allocations: 6.328 kB / 0.745 GB, free: 67.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007632/1.28, allocations: 4.709 MB / 0.7496 GB, free: 65.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/1.28, allocations: 0 / 0.7496 GB, free: 65.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009057/1.281, allocations: 228.1 kB / 0.7498 GB, free: 65.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002275/1.284, allocations: 0.5422 MB / 0.7503 GB, free: 65.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.802e-05/1.284, allocations: 17.77 kB / 0.7503 GB, free: 65.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000741/1.284, allocations: 0.8604 MB / 0.7512 GB, free: 64.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.284, allocations: 3.625 kB / 0.7512 GB, free: 64.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/1.288, allocations: 2.974 MB / 0.7541 GB, free: 63.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008113/1.289, allocations: 419.5 kB / 0.7545 GB, free: 62.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/1.289, allocations: 15.83 kB / 0.7545 GB, free: 62.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/1.29, allocations: 88.23 kB / 0.7546 GB, free: 62.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/1.291, allocations: 73.28 kB / 0.7547 GB, free: 62.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.237e-05/1.291, allocations: 42.73 kB / 0.7547 GB, free: 62.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001693/1.292, allocations: 1.162 MB / 0.7558 GB, free: 62.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.292, allocations: 4 kB / 0.7558 GB, free: 62.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002918/1.295, allocations: 0.916 MB / 0.7567 GB, free: 62.09 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.0004068/1.296, allocations: 227.1 kB / 0.757 GB, free: 61.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003246/1.299, allocations: 2.456 MB / 0.7594 GB, free: 61.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/1.299, allocations: 4.062 kB / 0.7594 GB, free: 61.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/1.3, allocations: 0.8405 MB / 0.7602 GB, free: 60.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/1.302, allocations: 312.2 kB / 0.7605 GB, free: 60.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00908/1.311, allocations: 5.195 MB / 0.7655 GB, free: 58.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/1.313, allocations: 3.093 MB / 0.7686 GB, free: 57.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002184/1.315, allocations: 0.8086 MB / 0.7694 GB, free: 57.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004123/1.316, allocations: 141.2 kB / 0.7695 GB, free: 57 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.316, allocations: 0 / 0.7695 GB, free: 57 MB / 442.7 MB Notification: Performance of Templates: time 0.03506/1.351, allocations: 22.59 MB / 0.7916 GB, free: 49.72 MB / 442.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -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 PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.c:159: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 */ = tmp4; ^ ~~~~ 1 error generated. make: *** [: PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.o] Error 1