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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 182.7 kB / 7.457 MB, free: 2.508 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.07/1.07, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0008147/0.0008147, allocations: 92.98 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02214/0.02214, allocations: 5.299 MB / 336.2 MB, free: 9.242 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.643e-06/6.673e-06, allocations: 4 kB / 395.7 MB, free: 69.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06806/0.06807, allocations: 51.61 MB / 447.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.2902, allocations: 98.11 MB / 0.5326 GB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.2905, allocations: 73.22 kB / 0.5327 GB, free: 2.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.3908/0.6813, allocations: 145.1 MB / 0.6744 GB, free: 82.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001504/0.6815, allocations: 98.48 kB / 0.6745 GB, free: 82.71 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.01054/0.692, allocations: 4.124 MB / 0.6785 GB, free: 81.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.692, allocations: 10.62 kB / 0.6785 GB, free: 81.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004777/0.6968, allocations: 0.9657 MB / 0.6795 GB, free: 81.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004755/0.7016, allocations: 2.929 MB / 0.6823 GB, free: 80.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.7017, allocations: 132.4 kB / 0.6825 GB, free: 80.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000495/0.7022, allocations: 231.9 kB / 0.6827 GB, free: 80.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00631/0.7085, allocations: 4.958 MB / 0.6875 GB, free: 80.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007708/0.7163, allocations: 6.007 MB / 0.6934 GB, free: 79.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-05/0.7163, allocations: 5.969 kB / 0.6934 GB, free: 79.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003464/0.7167, allocations: 7.188 kB / 0.6934 GB, free: 79.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002782/0.717, allocations: 312.7 kB / 0.6937 GB, free: 79.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.7452, allocations: 22.12 MB / 0.7153 GB, free: 68.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.7474, allocations: 1.656 MB / 0.7169 GB, free: 67.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.7488, allocations: 0.9334 MB / 0.7178 GB, free: 67.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.7489, allocations: 105.1 kB / 0.7179 GB, free: 67.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.7501, allocations: 0.9567 MB / 0.7189 GB, free: 66.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=115): time 2.835e-06/0.7501, allocations: 0 / 0.7189 GB, free: 66.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.004941/0.7551, allocations: 2.055 MB / 0.7209 GB, free: 64.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.7551, allocations: 202.3 kB / 0.7211 GB, free: 64.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.757, allocations: 1.608 MB / 0.7226 GB, free: 63.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.672e-05/0.7571, allocations: 25.7 kB / 0.7227 GB, free: 63.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009293/0.758, allocations: 1.819 MB / 0.7244 GB, free: 61.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/0.7583, allocations: 407.3 kB / 0.7248 GB, free: 61.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.7584, allocations: 3.938 kB / 0.7248 GB, free: 61.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.7585, allocations: 414.8 kB / 0.7252 GB, free: 60.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.7598, allocations: 1.192 MB / 0.7264 GB, free: 59.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.7613, allocations: 2.274 MB / 0.7286 GB, free: 57.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.7633, allocations: 1.78 MB / 0.7304 GB, free: 55.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.7634, allocations: 12 kB / 0.7304 GB, free: 55.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=325) (initialization): time 0.004577/0.7679, allocations: 3.537 MB / 0.7338 GB, free: 52.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.768, allocations: 4 kB / 0.7338 GB, free: 52.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/0.768, allocations: 39.91 kB / 0.7339 GB, free: 52.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000519/0.7685, allocations: 142 kB / 0.734 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/0.7709, allocations: 0.6472 MB / 0.7346 GB, free: 51.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.7722, allocations: 1.552 MB / 0.7361 GB, free: 50.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.7744, allocations: 332.9 kB / 0.7365 GB, free: 50.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.7746, allocations: 140.3 kB / 0.7366 GB, free: 49.94 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.0003033/0.7749, allocations: 246.8 kB / 0.7368 GB, free: 49.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.7751, allocations: 162.5 kB / 0.737 GB, free: 49.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005238/0.7803, allocations: 2.299 MB / 0.7392 GB, free: 47.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004168/0.7845, allocations: 1.887 MB / 0.7411 GB, free: 45.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7845, allocations: 0 / 0.7411 GB, free: 45.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.7846, allocations: 15.97 kB / 0.7411 GB, free: 45.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008659/0.7932, allocations: 5.26 MB / 0.7462 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.7932, allocations: 0 / 0.7462 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.7943, allocations: 231.8 kB / 0.7465 GB, free: 40.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.7966, allocations: 0.5489 MB / 0.747 GB, free: 39.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.951e-05/0.7967, allocations: 23.95 kB / 0.747 GB, free: 39.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006153/0.7973, allocations: 0.8372 MB / 0.7478 GB, free: 38.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7973, allocations: 7.938 kB / 0.7478 GB, free: 38.59 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005425/0.8028, allocations: 3.477 MB / 0.7512 GB, free: 35.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006223/0.8034, allocations: 442.6 kB / 0.7517 GB, free: 34.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.8036, allocations: 8.062 kB / 0.7517 GB, free: 34.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8047, allocations: 83.97 kB / 0.7517 GB, free: 34.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.8049, allocations: 76.73 kB / 0.7518 GB, free: 34.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.431e-05/0.8049, allocations: 39.97 kB / 0.7519 GB, free: 34.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001223/0.8062, allocations: 1.194 MB / 0.753 GB, free: 33.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002151/0.8083, allocations: 0.9209 MB / 0.7539 GB, free: 32.25 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.0003155/0.8087, allocations: 217.8 kB / 0.7541 GB, free: 32.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00274/0.8114, allocations: 2.655 MB / 0.7567 GB, free: 29.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.8114, allocations: 0 / 0.7567 GB, free: 29.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/0.8124, allocations: 0.9171 MB / 0.7576 GB, free: 28.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.8136, allocations: 303.7 kB / 0.7579 GB, free: 28.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007709/0.8213, allocations: 5.389 MB / 0.7632 GB, free: 22.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002514/0.8238, allocations: 3.257 MB / 0.7663 GB, free: 19.4 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/0.8238, allocations: 0 / 0.7663 GB, free: 19.4 MB / 442.7 MB Notification: Performance of Templates: time 0.03971/0.8635, allocations: 27.66 MB / 0.7934 GB, free: 8.137 MB / 458.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP3.makefile clang -fPIC -O0 -falign-functions -march=native -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:156:70: 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