Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.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_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629",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.001372/0.001372, allocations: 180.9 kB / 7.65 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.453/1.453, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.0008675/0.0008675, allocations: 89.69 kB / 280.5 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.02296/0.02296, allocations: 5.295 MB / 336.5 MB, free: 9.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008572/0.008572, allocations: 2.299 MB / 390.8 MB, free: 3.543 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.742e-05/1.716e-05, allocations: 0 / 450.1 MB, free: 48.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2884, allocations: 52.2 MB / 0.4905 GB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1404/0.4289, allocations: 95.64 MB / 0.5839 GB, free: 1.082 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.4292, allocations: 67.97 kB / 0.584 GB, free: 1.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09784/0.5271, allocations: 35.43 MB / 0.6186 GB, free: 13.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5271, allocations: 0 / 0.6186 GB, free: 13.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.63e-05/0.5272, allocations: 24 kB / 0.6186 GB, free: 13.24 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.003161/0.5304, allocations: 1.336 MB / 0.6199 GB, free: 11.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.5304, allocations: 11.97 kB / 0.6199 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.532, allocations: 294.4 kB / 0.6202 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.533, allocations: 0.5844 MB / 0.6208 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.866e-05/0.5331, allocations: 36 kB / 0.6208 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.5332, allocations: 64 kB / 0.6209 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001783/0.535, allocations: 0.9412 MB / 0.6218 GB, free: 9.867 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.5368, allocations: 0.9608 MB / 0.6227 GB, free: 8.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.764e-05/0.5369, allocations: 7.938 kB / 0.6227 GB, free: 8.844 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.08e-05/0.537, allocations: 4 kB / 0.6227 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.537, allocations: 24 kB / 0.6228 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006741/0.5437, allocations: 4.367 MB / 0.627 GB, free: 4.262 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.546, allocations: 1.75 MB / 0.6287 GB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004861/0.5465, allocations: 316.2 kB / 0.629 GB, free: 1.957 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.5467, allocations: 174.7 kB / 0.6292 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007198/0.5474, allocations: 0.5096 MB / 0.6297 GB, free: 1.195 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.705e-06/0.5474, allocations: 3.938 kB / 0.6297 GB, free: 1.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004157/0.5516, allocations: 1.096 MB / 0.6308 GB, free: 84 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/0.5518, allocations: 307.5 kB / 0.6311 GB, free: 15.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008311/0.5526, allocations: 0.4942 MB / 0.6315 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.659e-05/0.5527, allocations: 29.7 kB / 0.6316 GB, free: 15.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004971/0.5532, allocations: 490.6 kB / 0.632 GB, free: 14.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.5535, allocations: 244.5 kB / 0.6323 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.5536, allocations: 0 / 0.6323 GB, free: 14.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.5538, allocations: 382.8 kB / 0.6326 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005028/0.5543, allocations: 278.6 kB / 0.6329 GB, free: 13.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007031/0.555, allocations: 0.5159 MB / 0.6334 GB, free: 13.18 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.01376/0.5688, allocations: 2.512 MB / 0.6359 GB, free: 10.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.861e-05/0.5688, allocations: 4 kB / 0.6359 GB, free: 10.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003076/0.5719, allocations: 1.094 MB / 0.6369 GB, free: 9.539 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.5721, allocations: 94.34 kB / 0.637 GB, free: 9.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.5721, allocations: 8 kB / 0.637 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005428/0.5727, allocations: 97.09 kB / 0.6371 GB, free: 9.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.5738, allocations: 251.5 kB / 0.6374 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.5755, allocations: 1.498 MB / 0.6388 GB, free: 7.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.5765, allocations: 99.12 kB / 0.6389 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.996e-05/0.5767, allocations: 47.97 kB / 0.639 GB, free: 7.316 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.0004632/0.5771, allocations: 258.3 kB / 0.6392 GB, free: 7.039 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004181/0.5813, allocations: 1.162 MB / 0.6404 GB, free: 5.867 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/0.5816, allocations: 79.11 kB / 0.6404 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004497/0.5861, allocations: 1.34 MB / 0.6417 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.5861, allocations: 12 kB / 0.6417 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5862, allocations: 0 / 0.6417 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.5862, allocations: 7.938 kB / 0.6418 GB, free: 4.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.5903, allocations: 2.122 MB / 0.6438 GB, free: 2.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.5903, allocations: 4 kB / 0.6438 GB, free: 2.227 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005942/0.5909, allocations: 135.8 kB / 0.644 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/0.5933, allocations: 0.541 MB / 0.6445 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.353e-05/0.5934, allocations: 23.97 kB / 0.6445 GB, free: 1.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009/0.5943, allocations: 0.8491 MB / 0.6453 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5943, allocations: 64 / 0.6453 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2816/0.8759, allocations: 1.46 MB / 0.6468 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005168/0.8765, allocations: 251.2 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.8767, allocations: 11.19 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006228/0.8773, allocations: 35.8 kB / 0.647 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.8775, allocations: 61.39 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-05/0.8776, allocations: 38.84 kB / 0.6471 GB, free: 113.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005303/0.8781, allocations: 377.8 kB / 0.6475 GB, free: 113.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8781, allocations: 0.5469 kB / 0.6475 GB, free: 113.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001329/0.8795, allocations: 359.5 kB / 0.6478 GB, free: 113.4 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.003621/0.8831, allocations: 2.439 MB / 0.6502 GB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.885, allocations: 1.033 MB / 0.6512 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.885, allocations: 2.281 kB / 0.6512 GB, free: 112.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009016/0.8859, allocations: 0.6107 MB / 0.6518 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008491/0.8868, allocations: 98.34 kB / 0.6519 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.8902, allocations: 1.404 MB / 0.6533 GB, free: 111.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.8908, allocations: 1.036 MB / 0.6543 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005847/0.8914, allocations: 110.9 kB / 0.6544 GB, free: 110.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005535/0.8919, allocations: 398.4 kB / 0.6548 GB, free: 110.8 MB / 426.7 MB Notification: Performance of SimCode: time 8.61e-07/0.8919, allocations: 0 / 0.6548 GB, free: 110.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/0.9387, allocations: 18.66 MB / 0.673 GB, free: 109.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.939, allocations: 172.2 kB / 0.6732 GB, free: 109.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.478/3.417, allocations: 0 / 0.6732 GB, free: 109.6 MB / 426.7 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160629.pipe 2>&1)