Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",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.001043/0.001043, allocations: 180.9 kB / 7.651 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.454/1.454, allocations: 221.5 MB / 229.6 MB, free: 7.59 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.0008045/0.0008045, allocations: 80.06 kB / 280.4 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.02339/0.02339, allocations: 5.292 MB / 336.5 MB, free: 9.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008438/0.008438, allocations: 2.294 MB / 390.8 MB, free: 3.547 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.121e-05/1.122e-05, allocations: 0 / 450.1 MB, free: 48.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2791, allocations: 52.2 MB / 0.4905 GB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.4212, allocations: 95.64 MB / 0.5839 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.4215, allocations: 71.95 kB / 0.584 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09894/0.5205, allocations: 35.43 MB / 0.6186 GB, free: 13.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5205, allocations: 4 kB / 0.6186 GB, free: 13.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.5206, allocations: 16 kB / 0.6186 GB, free: 13.15 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003008/0.5236, allocations: 1.34 MB / 0.6199 GB, free: 11.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.5237, allocations: 8.031 kB / 0.6199 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/0.5252, allocations: 294.4 kB / 0.6202 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009333/0.5262, allocations: 0.5882 MB / 0.6208 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.583e-05/0.5263, allocations: 36 kB / 0.6208 GB, free: 10.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.5264, allocations: 67.95 kB / 0.6209 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001742/0.5282, allocations: 0.9335 MB / 0.6218 GB, free: 9.777 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.5299, allocations: 0.9647 MB / 0.6227 GB, free: 8.758 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.988e-05/0.5299, allocations: 3.938 kB / 0.6227 GB, free: 8.754 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.763e-05/0.53, allocations: 4 kB / 0.6227 GB, free: 8.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.129e-05/0.53, allocations: 24 kB / 0.6227 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006754/0.5368, allocations: 4.375 MB / 0.627 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002298/0.5391, allocations: 1.746 MB / 0.6287 GB, free: 2.176 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005137/0.5397, allocations: 308.2 kB / 0.629 GB, free: 1.871 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001848/0.5399, allocations: 174.8 kB / 0.6292 GB, free: 1.664 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007278/0.5406, allocations: 0.5173 MB / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.408e-06/0.5406, allocations: 0 / 0.6297 GB, free: 1.102 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004132/0.5448, allocations: 1.1 MB / 0.6308 GB, free: 15.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002166/0.545, allocations: 315.4 kB / 0.6311 GB, free: 15.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008927/0.5459, allocations: 498.1 kB / 0.6315 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.546, allocations: 29.7 kB / 0.6316 GB, free: 15.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004814/0.5465, allocations: 490.6 kB / 0.632 GB, free: 14.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002695/0.5468, allocations: 244.5 kB / 0.6323 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.5468, allocations: 4 kB / 0.6323 GB, free: 14.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.547, allocations: 378.8 kB / 0.6326 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004987/0.5476, allocations: 282.6 kB / 0.6329 GB, free: 13.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/0.5482, allocations: 0.512 MB / 0.6334 GB, free: 13.09 MB / 426.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.01332/0.5616, allocations: 2.512 MB / 0.6359 GB, free: 10.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.5616, allocations: 4 kB / 0.6359 GB, free: 10.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002474/0.5641, allocations: 1.09 MB / 0.6369 GB, free: 9.449 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-05/0.5642, allocations: 93.09 kB / 0.637 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.5642, allocations: 12.06 kB / 0.637 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004766/0.5647, allocations: 92.78 kB / 0.6371 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.5657, allocations: 255.5 kB / 0.6374 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.5672, allocations: 1.506 MB / 0.6388 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008066/0.568, allocations: 94.97 kB / 0.6389 GB, free: 7.266 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/0.5681, allocations: 51.97 kB / 0.639 GB, free: 7.215 MB / 426.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.0003083/0.5684, allocations: 255.8 kB / 0.6392 GB, free: 6.941 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003929/0.5724, allocations: 1.155 MB / 0.6403 GB, free: 5.777 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.5725, allocations: 79.11 kB / 0.6404 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004176/0.5767, allocations: 1.348 MB / 0.6417 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.5767, allocations: 8 kB / 0.6417 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.5767, allocations: 0 / 0.6417 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.5768, allocations: 11.94 kB / 0.6418 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003488/0.5802, allocations: 2.122 MB / 0.6438 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.5803, allocations: 4.031 kB / 0.6438 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.5809, allocations: 131.8 kB / 0.644 GB, free: 2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002322/0.5832, allocations: 0.5371 MB / 0.6445 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.18e-05/0.5833, allocations: 27.97 kB / 0.6445 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008784/0.5842, allocations: 0.853 MB / 0.6453 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.5842, allocations: 3.953 kB / 0.6453 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2497/0.8339, allocations: 1.455 MB / 0.6468 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004267/0.8343, allocations: 252.3 kB / 0.647 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.8345, allocations: 13.48 kB / 0.647 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006307/0.8351, allocations: 33.97 kB / 0.647 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.8353, allocations: 60.69 kB / 0.6471 GB, free: 113.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.468e-05/0.8354, allocations: 37.88 kB / 0.6471 GB, free: 113.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004902/0.8358, allocations: 380.5 kB / 0.6475 GB, free: 113.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.8359, allocations: 1 kB / 0.6475 GB, free: 113.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001279/0.8371, allocations: 351.1 kB / 0.6478 GB, free: 113.1 MB / 426.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.003473/0.8406, allocations: 2.45 MB / 0.6502 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.8424, allocations: 1.03 MB / 0.6512 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.8424, allocations: 0 / 0.6512 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008381/0.8433, allocations: 0.6136 MB / 0.6518 GB, free: 111.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007919/0.8441, allocations: 96.28 kB / 0.6519 GB, free: 111.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003437/0.8475, allocations: 1.396 MB / 0.6533 GB, free: 111.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.8482, allocations: 1.035 MB / 0.6543 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005809/0.8488, allocations: 114.9 kB / 0.6544 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005161/0.8493, allocations: 397.6 kB / 0.6548 GB, free: 110.6 MB / 426.7 MB Notification: Performance of SimCode: time 6.81e-07/0.8493, allocations: 3.906 kB / 0.6548 GB, free: 110.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04454/0.8938, allocations: 18.66 MB / 0.673 GB, free: 109.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/0.894, allocations: 167.6 kB / 0.6732 GB, free: 109.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.452, allocations: 7.047 kB / 0.6732 GB, free: 109.3 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)