Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) 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_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",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.001695/0.001695, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.381/1.381, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008766/0.0008765, allocations: 88.41 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02442/0.02442, allocations: 5.285 MB / 341.8 MB, free: 4.812 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008475/0.008475, allocations: 2.294 MB / 396.2 MB, free: 70.47 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.322e-05, allocations: 0 / 457.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2733, allocations: 52.2 MB / 0.4975 GB, free: 41.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.383, allocations: 96.3 MB / 0.5916 GB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.3832, allocations: 71.97 kB / 0.5917 GB, free: 10.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3697/0.7529, allocations: 35.83 MB / 0.6267 GB, free: 93.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.753, allocations: 0 / 0.6267 GB, free: 93.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.008e-05/0.753, allocations: 22.78 kB / 0.6267 GB, free: 93.94 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003521/0.7566, allocations: 1.338 MB / 0.628 GB, free: 93.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.7566, allocations: 10.59 kB / 0.628 GB, free: 93.17 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004446/0.7571, allocations: 162.4 kB / 0.6281 GB, free: 93.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002003/0.7591, allocations: 302.1 kB / 0.6284 GB, free: 93.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.7605, allocations: 0.5877 MB / 0.629 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.7606, allocations: 83.56 kB / 0.6291 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003378/0.761, allocations: 108.1 kB / 0.6292 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.7634, allocations: 1.13 MB / 0.6303 GB, free: 92.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.7635, allocations: 3.781 kB / 0.6303 GB, free: 92.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.7636, allocations: 42.31 kB / 0.6303 GB, free: 92.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.7636, allocations: 25.81 kB / 0.6304 GB, free: 92.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.7656, allocations: 1.005 MB / 0.6313 GB, free: 92.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006679/0.7722, allocations: 4.545 MB / 0.6358 GB, free: 90.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.7742, allocations: 1.781 MB / 0.6375 GB, free: 89.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000481/0.7747, allocations: 331.5 kB / 0.6378 GB, free: 89.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.7748, allocations: 172.5 kB / 0.638 GB, free: 88.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006172/0.7755, allocations: 0.5361 MB / 0.6385 GB, free: 88.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 2.836e-06/0.7755, allocations: 4 kB / 0.6385 GB, free: 88.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003488/0.779, allocations: 1.165 MB / 0.6397 GB, free: 88.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.7791, allocations: 309.2 kB / 0.64 GB, free: 87.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006655/0.7798, allocations: 0.5287 MB / 0.6405 GB, free: 87.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.7798, allocations: 39.3 kB / 0.6405 GB, free: 87.49 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003172/0.7802, allocations: 489.5 kB / 0.641 GB, free: 87.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.7804, allocations: 253.2 kB / 0.6412 GB, free: 86.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.564e-05/0.7804, allocations: 22.78 kB / 0.6412 GB, free: 86.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7805, allocations: 390.1 kB / 0.6416 GB, free: 86.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004912/0.781, allocations: 304.3 kB / 0.6419 GB, free: 86.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005329/0.7816, allocations: 0.545 MB / 0.6424 GB, free: 86.02 MB / 394.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01986/0.8015, allocations: 2.735 MB / 0.6451 GB, free: 85.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.8015, allocations: 3.5 kB / 0.6451 GB, free: 85.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004104/0.8056, allocations: 1.159 MB / 0.6462 GB, free: 84.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.976e-05/0.8057, allocations: 94.78 kB / 0.6463 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/0.8058, allocations: 9.188 kB / 0.6463 GB, free: 84.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008138/0.8066, allocations: 97.09 kB / 0.6464 GB, free: 84.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.8085, allocations: 254.6 kB / 0.6467 GB, free: 84.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.8106, allocations: 1.548 MB / 0.6482 GB, free: 83.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.8122, allocations: 118.8 kB / 0.6483 GB, free: 83.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.8124, allocations: 57.7 kB / 0.6484 GB, free: 83.1 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * 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.0004315/0.8128, allocations: 275.3 kB / 0.6486 GB, free: 82.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.8131, allocations: 82.53 kB / 0.6487 GB, free: 82.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007065/0.8202, allocations: 1.451 MB / 0.6501 GB, free: 81.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.8202, allocations: 8 kB / 0.6501 GB, free: 81.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.8203, allocations: 0.6562 kB / 0.6501 GB, free: 81.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.8203, allocations: 10.89 kB / 0.6501 GB, free: 81.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005146/0.8255, allocations: 2.351 MB / 0.6524 GB, free: 79.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.8255, allocations: 0 / 0.6524 GB, free: 79.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.8265, allocations: 140 kB / 0.6526 GB, free: 79.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003223/0.8298, allocations: 0.5408 MB / 0.6531 GB, free: 78.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.8299, allocations: 30.75 kB / 0.6531 GB, free: 78.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.831, allocations: 0.8804 MB / 0.654 GB, free: 78.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.831, allocations: 0 / 0.654 GB, free: 78.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003388/0.8344, allocations: 1.574 MB / 0.6555 GB, free: 76.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005225/0.835, allocations: 248.9 kB / 0.6558 GB, free: 76.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/0.8352, allocations: 24 kB / 0.6558 GB, free: 76.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.8363, allocations: 46.84 kB / 0.6558 GB, free: 76.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.8365, allocations: 64.41 kB / 0.6559 GB, free: 76.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.8366, allocations: 34.98 kB / 0.6559 GB, free: 76.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000761/0.8374, allocations: 417.9 kB / 0.6563 GB, free: 75.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8374, allocations: 0 / 0.6563 GB, free: 75.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001628/0.839, allocations: 390.4 kB / 0.6567 GB, free: 75.39 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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.004817/0.8439, allocations: 2.585 MB / 0.6592 GB, free: 72.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.8466, allocations: 1.099 MB / 0.6603 GB, free: 71.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.8466, allocations: 4.062 kB / 0.6603 GB, free: 71.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.8479, allocations: 0.6402 MB / 0.6609 GB, free: 71.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.8491, allocations: 109.6 kB / 0.661 GB, free: 71.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.8541, allocations: 1.484 MB / 0.6625 GB, free: 69.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006369/0.8548, allocations: 1.034 MB / 0.6635 GB, free: 68.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009883/0.8558, allocations: 119.3 kB / 0.6636 GB, free: 68.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008278/0.8566, allocations: 402.2 kB / 0.664 GB, free: 68.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.493e-06/0.8567, allocations: 4 kB / 0.664 GB, free: 68.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05587/0.9126, allocations: 20.83 MB / 0.6843 GB, free: 48.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/0.9128, allocations: 217.2 kB / 0.6845 GB, free: 48.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.658/3.57, allocations: 0 / 0.6845 GB, free: 48.07 MB / 394.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)